diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-05-01 01:00:30 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-05-01 01:00:30 +0000 |
commit | 10a9829174397471ff95856c94aac352190ca7b9 (patch) | |
tree | 32c48436c2c1c8d23edbb4644ff72de0d9bbec50 /gas/testsuite | |
parent | bf57c3c94d00c3b1780c45f763870334d6dd8556 (diff) | |
download | binutils-10a9829174397471ff95856c94aac352190ca7b9.zip binutils-10a9829174397471ff95856c94aac352190ca7b9.tar.gz binutils-10a9829174397471ff95856c94aac352190ca7b9.tar.bz2 |
gas/
2003-04-30 H.J. Lu <hjl@gnu.org>
* config/tc-ia64.c (ia64_number_to_chars): New function pointer.
(ia64_float_to_chars): Likewise.
(dot_byteorder): Set target_big_endian, ia64_number_to_chars
and ia64_float_to_chars by tc_segment_info_data.endian from
the current segment if byteorder == -1.
(md_begin): Call dot_byteorder to set target_big_endian.
(md_atof): Call ia64_float_to_chars to convert floating point.
(ia64_float_to_chars_bigendian): New function.
(ia64_float_to_chars_littleendian): Likewise.
(ia64_elf_section_change_hook): Likewise.
* config/tc-ia64.h (ia64_number_to_chars): New.
(md_number_to_chars): Changed to (*ia64_number_to_chars)
(ia64_elf_section_change_hook): New.
(md_elf_section_change_hook): Defined.
(ia64_segment_info_type): New struct.
(TC_SEGMENT_INFO_TYPE): Defined.
gas/testsuite/
2003-04-30 H.J. Lu <hjl@gnu.org>
* gas/ia64/ia64.exp: Add order.
* gas/ia64/order.s: New file.
* gas/ia64/order.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/ia64/ia64.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/ia64/order.d | 36 | ||||
-rw-r--r-- | gas/testsuite/gas/ia64/order.s | 37 |
4 files changed, 81 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f8adc49..54f489d 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2003-04-30 H.J. Lu <hjl@gnu.org> + + * gas/ia64/ia64.exp: Add order. + + * gas/ia64/order.s: New file. + * gas/ia64/order.d: Likewise. + 2003-04-29 H.J. Lu <hjl@gnu.org> * gas/ia64/ia64.exp: Add align. diff --git a/gas/testsuite/gas/ia64/ia64.exp b/gas/testsuite/gas/ia64/ia64.exp index deae264..2e66eb7 100644 --- a/gas/testsuite/gas/ia64/ia64.exp +++ b/gas/testsuite/gas/ia64/ia64.exp @@ -44,4 +44,5 @@ if [istarget "ia64-*"] then { run_dump_test "real" run_dump_test "align" + run_dump_test "order" } diff --git a/gas/testsuite/gas/ia64/order.d b/gas/testsuite/gas/ia64/order.d new file mode 100644 index 0000000..4522ddf --- /dev/null +++ b/gas/testsuite/gas/ia64/order.d @@ -0,0 +1,36 @@ +#objdump: -j .foo -j .bar -rs +#name: ia64 byte order + +.*: +file format .* + +RELOCATION RECORDS FOR \[.foo\]: +OFFSET TYPE VALUE +0000000000000008 DIR64MSB foo +0000000000000018 DIR64MSB foo +0000000000000028 DIR64LSB foo +0000000000000038 DIR64LSB foo + + +RELOCATION RECORDS FOR \[.bar\]: +OFFSET TYPE VALUE +0000000000000010 DIR64LSB foo +0000000000000040 DIR64LSB foo +0000000000000058 DIR64MSB foo +0000000000000080 DIR64MSB foo + + +Contents of section .foo: + 0000 12340000 12345678 00000000 00000000 ................ + 0010 01234567 89abcdef 00000000 00000000 ................ + 0020 34120000 78563412 00000000 00000000 ................ + 0030 efcdab89 67452301 00000000 00000000 ................ +Contents of section .bar: + 0000 cdcccc3d 00000000 9a999999 9999c93f ................ + 0010 00000000 00000000 00000000 00000000 ................ + 0020 cdcccccc cccccccc fd3f0000 00000000 ................ + 0030 cdcccccc cccccccc fe3f0000 00000000 ................ + 0040 00000000 00000000 3dcccccd 00000000 ................ + 0050 3fc99999 9999999a 00000000 00000000 ................ + 0060 3ffdcccc cccccccc cccd0000 00000000 ................ + 0070 3ffecccc cccccccc cccd0000 00000000 ................ + 0080 00000000 00000000 ........ diff --git a/gas/testsuite/gas/ia64/order.s b/gas/testsuite/gas/ia64/order.s new file mode 100644 index 0000000..2867ce0 --- /dev/null +++ b/gas/testsuite/gas/ia64/order.s @@ -0,0 +1,37 @@ + .global foo# + .section .foo,"aw","progbits" + .msb + data2 0x1234 + data4 0x12345678 + data8 foo# + .section .bar,"aw","progbits" + .lsb + real4 0.1 + real8 0.2 + data8 foo# + .section .foo,"aw","progbits" + data8 0x123456789abcdef +// data16 0x123456789abcdef + data8 foo# + .section .bar,"aw","progbits" + real10 0.4 + real16 0.8 + data8 foo# + .section .foo,"aw","progbits" + .lsb + data2 0x1234 + data4 0x12345678 + data8 foo# + .section .bar,"aw","progbits" + .msb + real4 0.1 + real8 0.2 + data8 foo# + .section .foo,"aw","progbits" + data8 0x123456789abcdef +// data16 0x123456789abcdef + data8 foo# + .section .bar,"aw","progbits" + real10 0.4 + real16 0.8 + data8 foo# |