This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Revise new e500 invalid opcode test


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2ec6d9e621ca468d56ac92df8ec2ec510d21f6da

commit 2ec6d9e621ca468d56ac92df8ec2ec510d21f6da
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Sep 30 18:26:12 2015 +0930

    Revise new e500 invalid opcode test
    
    .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:
---
 gas/testsuite/ChangeLog          |  6 ++++++
 gas/testsuite/gas/ppc/e500-ill.l | 14 +++++++-------
 gas/testsuite/gas/ppc/e500-ill.s |  1 -
 gas/testsuite/gas/ppc/ppc.exp    |  2 +-
 4 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 555f3f4..f4c2dad 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2015-09-30  Alan Modra  <amodra@gmail.com>
+
+	* gas/ppc/ppc.exp (e500-ill): Pass -me500.
+	* gas/ppc/e500-ill.s: Remove .machine.
+	* gas/ppc/e500-ill.l: Remove line numbers.
+
 2015-09-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
 
 	* gas/s390/s390.exp: Add new tests.
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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]