mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
reloc64.[sd]: New testcase.
This commit is contained in:
@ -33,6 +33,8 @@ prefetch.d
|
|||||||
prefetch.s
|
prefetch.s
|
||||||
rdpr.d
|
rdpr.d
|
||||||
rdpr.s
|
rdpr.s
|
||||||
|
reloc64.d
|
||||||
|
reloc64.s
|
||||||
set64.d
|
set64.d
|
||||||
set64.s
|
set64.s
|
||||||
splet.d
|
splet.d
|
||||||
|
63
gas/testsuite/gas/sparc/reloc64.d
Normal file
63
gas/testsuite/gas/sparc/reloc64.d
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
#as: -Av9
|
||||||
|
#objdump: -dr
|
||||||
|
#name: sparc64 reloc64
|
||||||
|
|
||||||
|
.*: +file format .*sparc.*
|
||||||
|
|
||||||
|
Disassembly of section .text:
|
||||||
|
|
||||||
|
0+ <foo>:
|
||||||
|
0: 03 04 8d 15 sethi %hi\(0x12345400\), %g1
|
||||||
|
4: 82 10 62 78 or %g1, 0x278, %g1.*
|
||||||
|
8: 01 00 00 00 nop
|
||||||
|
c: 03 00 00 00 sethi %hi\(0x0\), %g1
|
||||||
|
c: R_SPARC_HH22 .text
|
||||||
|
10: 82 10 60 00 mov %g1, %g1 ! 0 <foo>
|
||||||
|
10: R_SPARC_HM10 .text
|
||||||
|
14: 01 00 00 00 nop
|
||||||
|
18: 03 00 00 00 sethi %hi\(0x0\), %g1
|
||||||
|
18: R_SPARC_HH22 .text\+0x1234567800000000
|
||||||
|
1c: 82 10 60 00 mov %g1, %g1 ! 0 <foo>
|
||||||
|
1c: R_SPARC_HM10 .text\+0x1234567800000000
|
||||||
|
20: 01 00 00 00 nop
|
||||||
|
24: 03 3f b7 2e sethi %hi\(0xfedcb800\), %g1
|
||||||
|
28: 82 10 62 98 or %g1, 0x298, %g1.*
|
||||||
|
2c: 05 1d 95 0c sethi %hi\(0x76543000\), %g2
|
||||||
|
30: 84 10 62 10 or %g1, 0x210, %g2
|
||||||
|
34: 01 00 00 00 nop
|
||||||
|
38: 03 00 00 00 sethi %hi\(0x0\), %g1
|
||||||
|
38: R_SPARC_HH22 .text
|
||||||
|
3c: 82 10 60 00 mov %g1, %g1 ! 0 <foo>
|
||||||
|
3c: R_SPARC_HM10 .text
|
||||||
|
40: 05 00 00 00 sethi %hi\(0x0\), %g2
|
||||||
|
40: R_SPARC_LM22 .text
|
||||||
|
44: 84 10 60 00 mov %g1, %g2
|
||||||
|
44: R_SPARC_LO10 .text
|
||||||
|
48: 01 00 00 00 nop
|
||||||
|
4c: 03 00 00 00 sethi %hi\(0x0\), %g1
|
||||||
|
4c: R_SPARC_HH22 .text\+0xfedcba9876543210
|
||||||
|
50: 82 10 60 00 mov %g1, %g1 ! 0 <foo>
|
||||||
|
50: R_SPARC_HM10 .text\+0xfedcba9876543210
|
||||||
|
54: 05 00 00 00 sethi %hi\(0x0\), %g2
|
||||||
|
54: R_SPARC_LM22 .text\+0xfedcba9876543210
|
||||||
|
58: 84 10 60 00 mov %g1, %g2
|
||||||
|
58: R_SPARC_LO10 .text\+0xfedcba9876543210
|
||||||
|
5c: 01 00 00 00 nop
|
||||||
|
60: 03 2a 61 d9 sethi %hi\(0xa9876400\), %g1
|
||||||
|
64: 82 10 61 43 or %g1, 0x143, %g1.*
|
||||||
|
68: 82 10 62 10 or %g1, 0x210, %g1
|
||||||
|
6c: 01 00 00 00 nop
|
||||||
|
70: 03 00 00 00 sethi %hi\(0x0\), %g1
|
||||||
|
70: R_SPARC_H44 .text
|
||||||
|
74: 82 10 60 00 mov %g1, %g1 ! 0 <foo>
|
||||||
|
74: R_SPARC_M44 .text
|
||||||
|
78: 82 10 60 00 mov %g1, %g1
|
||||||
|
78: R_SPARC_L44 .text
|
||||||
|
7c: 01 00 00 00 nop
|
||||||
|
80: 03 00 00 00 sethi %hi\(0x0\), %g1
|
||||||
|
80: R_SPARC_H44 .text\+0xa9876543210
|
||||||
|
84: 82 10 60 00 mov %g1, %g1 ! 0 <foo>
|
||||||
|
84: R_SPARC_M44 .text\+0xa9876543210
|
||||||
|
88: 82 10 60 00 mov %g1, %g1
|
||||||
|
88: R_SPARC_L44 .text\+0xa9876543210
|
||||||
|
8c: 01 00 00 00 nop
|
39
gas/testsuite/gas/sparc/reloc64.s
Normal file
39
gas/testsuite/gas/sparc/reloc64.s
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# sparc64 special relocs
|
||||||
|
|
||||||
|
foo:
|
||||||
|
sethi %uhi(0x1234567800000000),%g1
|
||||||
|
or %g1,%ulo(0x1234567800000000),%g1
|
||||||
|
nop
|
||||||
|
sethi %uhi(foo),%g1
|
||||||
|
or %g1,%ulo(foo),%g1
|
||||||
|
nop
|
||||||
|
sethi %uhi(foo+0x1234567800000000),%g1
|
||||||
|
or %g1,%ulo(foo+0x1234567800000000),%g1
|
||||||
|
nop
|
||||||
|
sethi %hh(0xfedcba9876543210),%g1
|
||||||
|
or %g1,%hm(0xfedcba9876543210),%g1
|
||||||
|
sethi %lm(0xfedcba9876543210),%g2
|
||||||
|
or %g1,%lo(0xfedcba9876543210),%g2
|
||||||
|
nop
|
||||||
|
sethi %hh(foo),%g1
|
||||||
|
or %g1,%hm(foo),%g1
|
||||||
|
sethi %lm(foo),%g2
|
||||||
|
or %g1,%lo(foo),%g2
|
||||||
|
nop
|
||||||
|
sethi %hh(foo+0xfedcba9876543210),%g1
|
||||||
|
or %g1,%hm(foo+0xfedcba9876543210),%g1
|
||||||
|
sethi %lm(foo+0xfedcba9876543210),%g2
|
||||||
|
or %g1,%lo(foo+0xfedcba9876543210),%g2
|
||||||
|
nop
|
||||||
|
sethi %h44(0xa9876543210),%g1
|
||||||
|
or %g1,%m44(0xa9876543210),%g1
|
||||||
|
or %g1,%l44(0xa9876543210),%g1
|
||||||
|
nop
|
||||||
|
sethi %h44(foo),%g1
|
||||||
|
or %g1,%m44(foo),%g1
|
||||||
|
or %g1,%l44(foo),%g1
|
||||||
|
nop
|
||||||
|
sethi %h44(foo+0xa9876543210),%g1
|
||||||
|
or %g1,%m44(foo+0xa9876543210),%g1
|
||||||
|
or %g1,%l44(foo+0xa9876543210),%g1
|
||||||
|
nop
|
Reference in New Issue
Block a user