This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Revise new e500 invalid opcode test
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 30 Sep 2015 18:45:56 +0930
- Subject: Revise new e500 invalid opcode test
- Authentication-results: sourceware.org; auth=none
.machine isn't available on all powerpc targets.
* gas/ppc/ppc.exp (e500-ill): Pass -me500.
* gas/ppc/e500-ill.s: Remove .machine.
* gas/ppc/e500-ill.l: Remove line numbers.
diff --git a/gas/testsuite/gas/ppc/e500-ill.l b/gas/testsuite/gas/ppc/e500-ill.l
index f62f762..60f055d 100644
--- a/gas/testsuite/gas/ppc/e500-ill.l
+++ b/gas/testsuite/gas/ppc/e500-ill.l
@@ -1,8 +1,8 @@
.*: Assembler messages:
-.*:5: Error: unrecognized opcode: `eciwx'
-.*:6: Error: unrecognized opcode: `ecowx'
-.*:7: Error: unrecognized opcode: `mfapidi'
-.*:8: Error: unrecognized opcode: `mfdcr'
-.*:9: Error: unrecognized opcode: `mtdcr'
-.*:10: Error: unrecognized opcode: `tlbia'
-.*:11: Error: unrecognized opcode: `tlbie'
+.*: Error: unrecognized opcode: `eciwx'
+.*: Error: unrecognized opcode: `ecowx'
+.*: Error: unrecognized opcode: `mfapidi'
+.*: Error: unrecognized opcode: `mfdcr'
+.*: Error: unrecognized opcode: `mtdcr'
+.*: Error: unrecognized opcode: `tlbia'
+.*: Error: unrecognized opcode: `tlbie'
diff --git a/gas/testsuite/gas/ppc/e500-ill.s b/gas/testsuite/gas/ppc/e500-ill.s
index 890faf6..e9e90bc 100644
--- a/gas/testsuite/gas/ppc/e500-ill.s
+++ b/gas/testsuite/gas/ppc/e500-ill.s
@@ -1,6 +1,5 @@
# Motorola PowerPC e500 illegal instructions
.text
- .machine e500
start:
eciwx 3,4,5
ecowx 3,4,5
diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp
index df91f36..06d061b 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -72,7 +72,7 @@ if { [istarget powerpc*-*-*] } then {
run_dump_test "altivec_and_spe"
run_dump_test "booke"
run_dump_test "e500"
- run_list_test "e500-ill"
+ run_list_test "e500-ill" "-me500"
run_list_test "range" "-a32"
run_dump_test "ppc750ps"
run_dump_test "e500mc"
--
Alan Modra
Australia Development Lab, IBM