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] MIPS/LD/testsuite: Use wildcard address matching in `undefweak-overflow'


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

commit 4041bc9b02df6404d7b2b3ff04d4e9f8bcfd43af
Author: Maciej W. Rozycki <macro@imgtec.com>
Date:   Thu Jun 23 00:41:34 2016 +0100

    MIPS/LD/testsuite: Use wildcard address matching in `undefweak-overflow'
    
    So that test case updates result in legible dump pattern changes.
    
    	ld/
    	* testsuite/ld-mips-elf/undefweak-overflow.d: Use wildcard
    	address matching.

Diff:
---
 ld/ChangeLog                                  |  5 ++++
 ld/testsuite/ld-mips-elf/undefweak-overflow.d | 40 +++++++++++++--------------
 2 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 3cd7296..da0c79c 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
 2016-06-22  Maciej W. Rozycki  <macro@imgtec.com>
 
+	* testsuite/ld-mips-elf/undefweak-overflow.d: Use wildcard
+	address matching.
+
+2016-06-22  Maciej W. Rozycki  <macro@imgtec.com>
+
 	* testsuite/ld-mips-elf/mips-elf.exp: Uniquely identify
 	`undefweak-overflow' tests.
 
diff --git a/ld/testsuite/ld-mips-elf/undefweak-overflow.d b/ld/testsuite/ld-mips-elf/undefweak-overflow.d
index 4dc5814..f3334d3 100644
--- a/ld/testsuite/ld-mips-elf/undefweak-overflow.d
+++ b/ld/testsuite/ld-mips-elf/undefweak-overflow.d
@@ -3,25 +3,25 @@
 #ld: -Ttext=0x20000000 -e start
 #objdump: -dr --show-raw-insn
 #...
-0*20000000 <_ftext>:
- *20000000:	d85fffff 	beqzc	v0,20000000 <_ftext>
- *20000004:	00000000 	nop
- *20000008:	f85ffffd 	bnezc	v0,20000000 <_ftext>
- *2000000c:	ec4ffffd 	lwpc	v0,20000000 <_ftext>
- *20000010:	ec5bfffe 	ldpc	v0,20000000 <_ftext>
- *20000014:	cbfffffa 	bc	20000000 <_ftext>
- *20000018:	ec9ee000 	auipc	a0,0xe000
- *2000001c:	2484ffe8 	addiu	a0,a0,-24
- *20000020:	1000fff7 	b	20000000 <_ftext>
- *20000024:	00000000 	nop
- *20000028:	0411fff5 	bal	20000000 <_ftext>
- *2000002c:	3c...... 	lui	a0,0x....
+[0-9a-f]+ <_ftext>:
+[ 0-9a-f]+:	d85fffff 	beqzc	v0,20000000 <_ftext>
+[ 0-9a-f]+:	00000000 	nop
+[ 0-9a-f]+:	f85ffffd 	bnezc	v0,20000000 <_ftext>
+[ 0-9a-f]+:	ec4ffffd 	lwpc	v0,20000000 <_ftext>
+[ 0-9a-f]+:	ec5bfffe 	ldpc	v0,20000000 <_ftext>
+[ 0-9a-f]+:	cbfffffa 	bc	20000000 <_ftext>
+[ 0-9a-f]+:	ec9ee000 	auipc	a0,0xe000
+[ 0-9a-f]+:	2484ffe8 	addiu	a0,a0,-24
+[ 0-9a-f]+:	1000fff7 	b	20000000 <_ftext>
+[ 0-9a-f]+:	00000000 	nop
+[ 0-9a-f]+:	0411fff5 	bal	20000000 <_ftext>
+[ 0-9a-f]+:	3c...... 	lui	a0,0x....
 
-0*20000030 <micro>:
- *20000030:	8e67      	beqz	a0,20000000 <_ftext>
- *20000032:	0c00      	nop
- *20000034:	cfe5      	b	20000000 <_ftext>
- *20000036:	0c00      	nop
- *20000038:	9400 ffe2 	b	20000000 <_ftext>
- *2000003c:	0c00      	nop
+[0-9a-f]+ <micro>:
+[ 0-9a-f]+:	8e67      	beqz	a0,20000000 <_ftext>
+[ 0-9a-f]+:	0c00      	nop
+[ 0-9a-f]+:	cfe5      	b	20000000 <_ftext>
+[ 0-9a-f]+:	0c00      	nop
+[ 0-9a-f]+:	9400 ffe2 	b	20000000 <_ftext>
+[ 0-9a-f]+:	0c00      	nop
 #pass


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