From fa2c7effe700e9bd50092557403e118c702ffde8 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 5 Dec 2002 23:20:40 +0000 Subject: * 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 .. (ia64_force_relocation): True for LTOFF22X and LDXMOV. * gas/ia64/ltoff22x-1.[ds]: New. * gas/ia64/ia64.exp: Run it. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/ia64/ia64.exp | 1 + gas/testsuite/gas/ia64/ltoff22x-1.d | 10 ++++++++++ gas/testsuite/gas/ia64/ltoff22x-1.s | 4 ++++ 4 files changed, 20 insertions(+) create mode 100644 gas/testsuite/gas/ia64/ltoff22x-1.d create mode 100644 gas/testsuite/gas/ia64/ltoff22x-1.s (limited to 'gas/testsuite') 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 + + * gas/ia64/ltoff22x-1.[ds]: New. + * gas/ia64/ia64.exp: Run it. + 2002-12-05 Jim Wilson * 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 -- cgit v1.1