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] Fix more powerpc testsuite source errors


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

commit a48cda7f860584f98825ee6715b0da2adf65bb1a
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Feb 16 15:13:56 2017 +1030

    Fix more powerpc testsuite source errors
    
    	* testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
    	* testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.

Diff:
---
 ld/ChangeLog                            | 5 +++++
 ld/testsuite/ld-powerpc/vxworks1-lib.dd | 2 +-
 ld/testsuite/ld-powerpc/vxworks1-lib.s  | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index f875a8b..f0b0b0e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-16  Alan Modra  <amodra@gmail.com>
+
+	* testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
+	* testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
+
 2017-02-15  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/21168
diff --git a/ld/testsuite/ld-powerpc/vxworks1-lib.dd b/ld/testsuite/ld-powerpc/vxworks1-lib.dd
index 1c1861e..23440eb 100644
--- a/ld/testsuite/ld-powerpc/vxworks1-lib.dd
+++ b/ld/testsuite/ld-powerpc/vxworks1-lib.dd
@@ -39,7 +39,7 @@ Disassembly of section \.text:
    80c14:	83 de 00 00 	lwz     r30,0\(r30\)
    80c18:	80 3e 00 14 	lwz     r1,20\(r30\)
    80c1c:	80 01 00 00 	lwz     r0,0\(r1\)
-   80c20:	38 00 00 01 	li      r0,1
+   80c20:	30 00 00 01 	addic   r0,r0,1
    80c24:	90 01 00 00 	stw     r0,0\(r1\)
    80c28:	48 00 00 1d 	bl      80c44 <slocal>
    80c2c:	4b ff fc 15 	bl      80840 <_PROCEDURE_LINKAGE_TABLE_\+0x40>
diff --git a/ld/testsuite/ld-powerpc/vxworks1-lib.s b/ld/testsuite/ld-powerpc/vxworks1-lib.s
index 9dfcb0f..99ec472 100644
--- a/ld/testsuite/ld-powerpc/vxworks1-lib.s
+++ b/ld/testsuite/ld-powerpc/vxworks1-lib.s
@@ -10,7 +10,7 @@ foo:
 	lwz	r30,__GOTT_INDEX__(r30)
 	lwz	r1,x@got(r30)
 	lwz	r0,0(r1)
-	addi	r0,r0,1
+	addic	r0,r0,1
 	stw	r0,0(r1)
 	bl	slocal
 	bl	sglobal@plt


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