2006-04-29 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 30 Apr 2006 00:21:26 +0000 (00:21 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 30 Apr 2006 00:21:26 +0000 (00:21 +0000)
* gas/i386/fp.d: New file.
* gas/i386/fp.s: Likewise.

* gas/i386/i386.exp: Run "fp".

gas/testsuite/ChangeLog
gas/testsuite/gas/i386/fp.d [new file with mode: 0644]
gas/testsuite/gas/i386/fp.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp

index a26aee9..52a1a5c 100644 (file)
@@ -1,3 +1,10 @@
+2006-04-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gas/i386/fp.d: New file.
+       * gas/i386/fp.s: Likewise.
+
+       * gas/i386/i386.exp: Run "fp".
+
 2006-04-28  Thiemo Seufer  <ths@mips.com>
             David Ung  <davidu@mips.com>
            Nigel Stephens  <nigel@mips.com>
diff --git a/gas/testsuite/gas/i386/fp.d b/gas/testsuite/gas/i386/fp.d
new file mode 100644 (file)
index 0000000..21838e2
--- /dev/null
@@ -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 (file)
index 0000000..4187d4e
--- /dev/null
@@ -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
index a12bc91..337ce51 100644 (file)
@@ -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.