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/binutils-2_28-branch] Fix powerpc testsuite source errors


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

commit ce45602b476d30f2ca354691374a092886b64951
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Feb 14 20:30:27 2017 +1030

    Fix powerpc testsuite source errors
    
    PR 21118 work exposed these errors in the testsuite.
    
    	* testsuite/gas/ppc/cell.s: Correct invalid registers.
    	* testsuite/gas/ppc/vle-simple-1.s: Likewise.
    	* testsuite/gas/ppc/vle-simple-2.s: Likewise.

Diff:
---
 gas/ChangeLog                        |  6 ++++++
 gas/testsuite/gas/ppc/cell.s         | 32 ++++++++++++++++----------------
 gas/testsuite/gas/ppc/vle-simple-1.s |  4 ++--
 gas/testsuite/gas/ppc/vle-simple-2.s |  8 ++++----
 4 files changed, 28 insertions(+), 22 deletions(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4edacf2..7b6c99c 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2017-02-14  Alan Modra  <amodra@gmail.com>
+
+	* testsuite/gas/ppc/cell.s: Correct invalid registers.
+	* testsuite/gas/ppc/vle-simple-1.s: Likewise.
+	* testsuite/gas/ppc/vle-simple-2.s: Likewise.
+
 2017-02-10  Nicholas Piggin  <npiggin@gmail.com>
 
 	* testsuite/gas/ppc/power9.d <scv, rfscv>: New tests.
diff --git a/gas/testsuite/gas/ppc/cell.s b/gas/testsuite/gas/ppc/cell.s
index b294299..dd6e15f 100644
--- a/gas/testsuite/gas/ppc/cell.s
+++ b/gas/testsuite/gas/ppc/cell.s
@@ -1,21 +1,21 @@
 	.text
-	lvlx %r0, %r1, %r2
-	lvlx %r0, 0, %r2
-	lvlxl %r0, %r1, %r2
-	lvlxl %r0, 0, %r2
-	lvrx %r0, %r1, %r2
-	lvrx %r0, 0, %r2
-	lvrxl %r0, %r1, %r2
-	lvrxl %r0, 0, %r2
+	lvlx %v0, %r1, %r2
+	lvlx %v0, 0, %r2
+	lvlxl %v0, %r1, %r2
+	lvlxl %v0, 0, %r2
+	lvrx %v0, %r1, %r2
+	lvrx %v0, 0, %r2
+	lvrxl %v0, %r1, %r2
+	lvrxl %v0, 0, %r2
 
-	stvlx %r0, %r1, %r2
-	stvlx %r0, 0, %r2
-	stvlxl %r0, %r1, %r2
-	stvlxl %r0, 0, %r2
-	stvrx %r0, %r1, %r2
-	stvrx %r0, 0, %r2
-	stvrxl %r0, %r1, %r2
-	stvrxl %r0, 0, %r2
+	stvlx %v0, %r1, %r2
+	stvlx %v0, 0, %r2
+	stvlxl %v0, %r1, %r2
+	stvlxl %v0, 0, %r2
+	stvrx %v0, %r1, %r2
+	stvrx %v0, 0, %r2
+	stvrxl %v0, %r1, %r2
+	stvrxl %v0, 0, %r2
 
 	ldbrx %r0, 0, %r1
 	ldbrx %r0, %r1, %r2
diff --git a/gas/testsuite/gas/ppc/vle-simple-1.s b/gas/testsuite/gas/ppc/vle-simple-1.s
index 074cc0f..713fb90 100644
--- a/gas/testsuite/gas/ppc/vle-simple-1.s
+++ b/gas/testsuite/gas/ppc/vle-simple-1.s
@@ -4,7 +4,7 @@ target0:
 	se_beq	target3
 
 target1:
-	se_bf cr1, target4
+	se_bf gt, target4
 
 target2:
 	se_bge  target2
@@ -29,6 +29,6 @@ target8:
 	se_bso target8
 
 target9:
-	se_bt cr2, target6
+	se_bt eq, target6
 	se_bun target9
 
diff --git a/gas/testsuite/gas/ppc/vle-simple-2.s b/gas/testsuite/gas/ppc/vle-simple-2.s
index 8f95dc2..cad3ca5 100644
--- a/gas/testsuite/gas/ppc/vle-simple-2.s
+++ b/gas/testsuite/gas/ppc/vle-simple-2.s
@@ -13,10 +13,10 @@ target1:
 target2:
 	e_beql cr0, target1
 	e_beql target6
-	e_bf cr1, target3
+	e_bf 4*cr0+gt, target3
 
 target3:
-	e_bfl cr3, target0
+	e_bfl cr0*4+un, target0
 	e_bge cr1, target1
 	e_bge target5
 
@@ -69,8 +69,8 @@ target8:
 target9:
 	e_bsol cr0, target8
 	e_bsol target8
-	e_bt cr1, target7
-	e_btl cr0, target5
+	e_bt gt+cr0*4, target7
+	e_btl lt+4*cr0, target5
 	e_bun cr1, target4
 	e_bun target4
 	e_bunl cr2, target0


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