diff options
author | Richard Henderson <rth@redhat.com> | 2002-12-05 23:20:40 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2002-12-05 23:20:40 +0000 |
commit | fa2c7effe700e9bd50092557403e118c702ffde8 (patch) | |
tree | 216d40ae5195369b62bf527d47d1b3594c1540f5 /gas/testsuite | |
parent | a9a9bd0f6672cfb4a9131288759bb0dd60ec0738 (diff) | |
download | gdb-fa2c7effe700e9bd50092557403e118c702ffde8.zip gdb-fa2c7effe700e9bd50092557403e118c702ffde8.tar.gz gdb-fa2c7effe700e9bd50092557403e118c702ffde8.tar.bz2 |
* config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
(ia64_gen_real_reloc_type): Handle it.
(pseudo_func): Add @ltoffx.
(md_begin): Build .<ltoffx>.
(ia64_force_relocation): True for LTOFF22X and LDXMOV.
* gas/ia64/ltoff22x-1.[ds]: New.
* gas/ia64/ia64.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/ia64/ia64.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/ia64/ltoff22x-1.d | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/ia64/ltoff22x-1.s | 4 |
4 files changed, 20 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d28d961..61ad4c2 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-12-05 Richard Henderson <rth@redhat.com> + + * gas/ia64/ltoff22x-1.[ds]: New. + * gas/ia64/ia64.exp: Run it. + 2002-12-05 Jim Wilson <wilson@redhat.com> * gas/ia64/opc-x.d: Regenerate. diff --git a/gas/testsuite/gas/ia64/ia64.exp b/gas/testsuite/gas/ia64/ia64.exp index 6c44468..3a672a7 100644 --- a/gas/testsuite/gas/ia64/ia64.exp +++ b/gas/testsuite/gas/ia64/ia64.exp @@ -38,4 +38,5 @@ if [istarget "ia64-*"] then { run_dump_test "tls" run_dump_test "ldxmov-1" run_list_test "ldxmov-2" "" + run_dump_test "ltoff22x-1" } diff --git a/gas/testsuite/gas/ia64/ltoff22x-1.d b/gas/testsuite/gas/ia64/ltoff22x-1.d new file mode 100644 index 0000000..6eef416 --- /dev/null +++ b/gas/testsuite/gas/ia64/ltoff22x-1.d @@ -0,0 +1,10 @@ +# objdump: -r +# name: ia64 ltoff22x-1 + +.*: +file format .* + +RELOCATION RECORDS FOR \[\.text\]: +OFFSET TYPE VALUE +0000000000000000 LTOFF22X foo + + diff --git a/gas/testsuite/gas/ia64/ltoff22x-1.s b/gas/testsuite/gas/ia64/ltoff22x-1.s new file mode 100644 index 0000000..d7be940 --- /dev/null +++ b/gas/testsuite/gas/ia64/ltoff22x-1.s @@ -0,0 +1,4 @@ + .text + addl r3 = @ltoffx(foo#), gp + nop.i 0 + nop.i 0 |