From: H.J. Lu Date: Sun, 30 Apr 2006 00:21:26 +0000 (+0000) Subject: 2006-04-29 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5645cf1e514c7d76858685695a341b5e3511f9c8;p=binutils-gdb.git 2006-04-29 H.J. Lu * gas/i386/fp.d: New file. * gas/i386/fp.s: Likewise. * gas/i386/i386.exp: Run "fp". --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index a26aee9ce1b..52a1a5c2946 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2006-04-29 H.J. Lu + + * gas/i386/fp.d: New file. + * gas/i386/fp.s: Likewise. + + * gas/i386/i386.exp: Run "fp". + 2006-04-28 Thiemo Seufer David Ung Nigel Stephens diff --git a/gas/testsuite/gas/i386/fp.d b/gas/testsuite/gas/i386/fp.d new file mode 100644 index 00000000000..21838e262bc --- /dev/null +++ b/gas/testsuite/gas/i386/fp.d @@ -0,0 +1,8 @@ +#objdump: -s -j .data +#name: i386 fp + +.*: file format .* + +Contents of section .data: + 0000 00881bcd 4b789ad4 004071a3 79094f93 ....Kx...@q.y.O. + 0010 0a40789a 5440789a 54400000 00000000 .@x.T@x.T@...... diff --git a/gas/testsuite/gas/i386/fp.s b/gas/testsuite/gas/i386/fp.s new file mode 100644 index 00000000000..4187d4e55c3 --- /dev/null +++ b/gas/testsuite/gas/i386/fp.s @@ -0,0 +1,13 @@ + .data +# .tfloat is 80-bit floating point format. + .tfloat 3.32192809488736218171e0 +# .byte 0x0, 0x88, 0x1b, 0xcd, 0x4b, 0x78, 0x9a, 0xd4, 0x0, 0x40 +# .double is 64-bit floating point format. + .double 3.32192809488736218171e0 +# .byte 0x71, 0xa3, 0x79, 0x09, 0x4f, 0x93, 0x0a, 0x40 +# The next two are 32-bit floating point format. + .float 3.32192809488736218171e0 +# .byte 0x78, 0x9a, 0x54, 0x40, 0, 0, 0, 0 + .single 3.32192809488736218171e0 +# .byte 0x78, 0x9a, 0x54, 0x40, 0, 0, 0, 0 + .byte 0, 0, 0, 0, 0, 0 diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index a12bc91fb21..337ce514597 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -71,6 +71,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "merom" run_dump_test "rep" run_dump_test "rep-suffix" + run_dump_test "fp" # These tests require support for 8 and 16 bit relocs, # so we only run them for ELF and COFF targets.