arc: Fix got-weak linker test

Use regular expressions to fix the got-weak linker test.

ld/
	* testsuite/got-weak.d: Update test.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
This commit is contained in:
Claudiu Zissulescu 2021-09-15 13:43:40 +03:00
parent b4745472b6
commit 720f6ee095
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
* testsuite/ld-arc/got-weak.d: Update file.
2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
* ld-arc/got-weak.d: New file.

View File

@ -3,10 +3,10 @@
#ld: -Bstatic
#objdump: -d
[^:]*: file format elf32-.*arc
[^:]*:\s+file format elf32-.*arc
Disassembly of section \.text:
00000100 <.*>:
100: 2730 7f80 0000 2014 ld r0,\[pcl,0x2014\].*
[0-9a-f]+ <.*>:
^\s+[0-9a-f]+:\s+2730\s7f80\s[0-9a-f]+\s[0-9a-f]+\s+ld\s+r\d+,\[pcl,.*