aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-08-17 05:28:30 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-08-17 05:28:30 -0700
commitfaca1a42d3f5fd123945a367d190cac15926b15c (patch)
tree2d55ab97703b8d0f206bab9bd43262c84a616c2a /gas
parentc6b8e532812a81389fb31fdc4bd4987f12aaba87 (diff)
downloadgdb-faca1a42d3f5fd123945a367d190cac15926b15c.zip
gdb-faca1a42d3f5fd123945a367d190cac15926b15c.tar.gz
gdb-faca1a42d3f5fd123945a367d190cac15926b15c.tar.bz2
x86: Always run fp tests
Always run fp tests since the size of .tfloat, .ds.x, .dc.x and .dcb.x directive outputs is always 10 bytes. There is no need for fp-elf32 nor fp-elf64. PR gas/28230 * testsuite/gas/i386/fp-elf32.d: Removed. * testsuite/gas/i386/fp-elf64.d: Likewise. * testsuite/gas/i386/fp.s: Remove NO_TFLOAT_PADDING codes. * testsuite/gas/i386/i386.exp: Don't run fp-elf32 nor fp-elf64. Always run fp.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/i386/fp-elf32.d41
-rw-r--r--gas/testsuite/gas/i386/fp-elf64.d41
-rw-r--r--gas/testsuite/gas/i386/fp.s119
-rw-r--r--gas/testsuite/gas/i386/i386.exp8
4 files changed, 1 insertions, 208 deletions
diff --git a/gas/testsuite/gas/i386/fp-elf32.d b/gas/testsuite/gas/i386/fp-elf32.d
deleted file mode 100644
index ac67c2a..0000000
--- a/gas/testsuite/gas/i386/fp-elf32.d
+++ /dev/null
@@ -1,41 +0,0 @@
-#objdump: -s -j .data
-#name: i386 fp (ELF)
-#source: fp.s
-
-.*: file format .*
-
-Contents of section .data:
- 0000 00881bcd 4b789ad4 00400000 71a37909 .*
- 0010 4f930a40 789a5440 789a5440 00000000 .*
- 0020 e65e1710 20395e3b e65e1710 20395e3b .*
- 0030 00000000 0000a044 01000000 0000a044 .*
- 0040 00000000 0000f03f 00000000 00000000 .*
- 0050 ffffffff ffffffff ffffffff cccccccc .*
- 0060 00000000 00000080 fe3f0000 00000000 .*
- 0070 00000080 fdbf0000 00000000 00000080 .*
- 0080 ff030000 aaaaaaaa aaaaaaaa aaaaaaaa .*
- 0090 003c00c0 003c803f 00c0803f 55555555 .*
- 00a0 007c807f 0000807f 00000000 0000f07f .*
- 00b0 00000000 00000080 ff7f0000 44444444 .*
- 00c0 007c807f 0000807f 00000000 0000f07f .*
- 00d0 00000000 00000080 ff7f0000 33333333 .*
- 00e0 00fc80ff 000080ff 00000000 0000f0ff .*
- 00f0 00000000 00000080 ffff0000 22222222 .*
- 0100 ff7fff7f ffffff7f ffffffff ffffff7f .*
- 0110 ffffffff ffffffff ff7f0000 44444444 .*
- 0120 ff7fff7f ffffff7f ffffffff ffffff7f .*
- 0130 ffffffff ffffffff ff7f0000 33333333 .*
- 0140 ffffffff ffffffff ffffffff ffffffff .*
- 0150 ffffffff ffffffff ffff0000 22222222 .*
- 0160 ff7fff7f ffffff7f ffffffff ffffff7f .*
- 0170 ffffffff ffffffff ff7f0000 44444444 .*
- 0180 ff7fff7f ffffff7f ffffffff ffffff7f .*
- 0190 ffffffff ffffffff ff7f0000 33333333 .*
- 01a0 ffffffff ffffffff ffffffff ffffffff .*
- 01b0 ffffffff ffffffff ffff0000 22222222 .*
- 01c0 ff7dbf7f ffffbf7f ffffffff fffff77f .*
- 01d0 ffffffff ffffffbf ff7f0000 44444444 .*
- 01e0 ff7dbf7f ffffbf7f ffffffff fffff77f .*
- 01f0 ffffffff ffffffbf ff7f0000 33333333 .*
- 0200 fffdbfff ffffbfff ffffffff fffff7ff .*
- 0210 ffffffff ffffffbf ffff0000 22222222 .*
diff --git a/gas/testsuite/gas/i386/fp-elf64.d b/gas/testsuite/gas/i386/fp-elf64.d
deleted file mode 100644
index 2b3b6b8..0000000
--- a/gas/testsuite/gas/i386/fp-elf64.d
+++ /dev/null
@@ -1,41 +0,0 @@
-#objdump: -s -j .data
-#name: x86-64 fp (ELF)
-#source: fp.s
-
-.*: file format .*
-
-Contents of section .data:
- 0000 00881bcd 4b789ad4 00400000 00000000 .*
- 0010 71a37909 4f930a40 789a5440 789a5440 .*
- 0020 e65e1710 20395e3b e65e1710 20395e3b .*
- 0030 00000000 0000a044 01000000 0000a044 .*
- 0040 00000000 0000f03f 00000000 00000000 .*
- 0050 ffffffff ffffffff ffffffff ffffffff .*
- 0060 00000000 00000080 fe3f0000 00000000 .*
- 0070 00000000 00000080 fdbf0000 00000000 .*
- 0080 00000000 00000080 ff030000 00000000 .*
- 0090 003c00c0 003c803f 00c0803f 55555555 .*
- 00a0 007c807f 0000807f 00000000 0000f07f .*
- 00b0 00000000 00000080 ff7f0000 00000000 .*
- 00c0 007c807f 0000807f 00000000 0000f07f .*
- 00d0 00000000 00000080 ff7f0000 00000000 .*
- 00e0 00fc80ff 000080ff 00000000 0000f0ff .*
- 00f0 00000000 00000080 ffff0000 00000000 .*
- 0100 ff7fff7f ffffff7f ffffffff ffffff7f .*
- 0110 ffffffff ffffffff ff7f0000 00000000 .*
- 0120 ff7fff7f ffffff7f ffffffff ffffff7f .*
- 0130 ffffffff ffffffff ff7f0000 00000000 .*
- 0140 ffffffff ffffffff ffffffff ffffffff .*
- 0150 ffffffff ffffffff ffff0000 00000000 .*
- 0160 ff7fff7f ffffff7f ffffffff ffffff7f .*
- 0170 ffffffff ffffffff ff7f0000 00000000 .*
- 0180 ff7fff7f ffffff7f ffffffff ffffff7f .*
- 0190 ffffffff ffffffff ff7f0000 00000000 .*
- 01a0 ffffffff ffffffff ffffffff ffffffff .*
- 01b0 ffffffff ffffffff ffff0000 00000000 .*
- 01c0 ff7dbf7f ffffbf7f ffffffff fffff77f .*
- 01d0 ffffffff ffffffbf ff7f0000 00000000 .*
- 01e0 ff7dbf7f ffffbf7f ffffffff fffff77f .*
- 01f0 ffffffff ffffffbf ff7f0000 00000000 .*
- 0200 fffdbfff ffffbfff ffffffff fffff7ff .*
- 0210 ffffffff ffffffbf ffff0000 00000000 .*
diff --git a/gas/testsuite/gas/i386/fp.s b/gas/testsuite/gas/i386/fp.s
index 90854b7..a63464b 100644
--- a/gas/testsuite/gas/i386/fp.s
+++ b/gas/testsuite/gas/i386/fp.s
@@ -1,13 +1,6 @@
.data
# .tfloat is 80-bit floating point format.
.tfloat 3.32192809488736218171e0
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
# .byte 0x0, 0x88, 0x1b, 0xcd, 0x4b, 0x78, 0x9a, 0xd4, 0x0, 0x40
# .double is 64-bit floating point format.
.double 3.32192809488736218171e0
@@ -30,39 +23,11 @@
.p2align 4,0
.ds.x 1, -1
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte -1, -1, -1, -1, -1, -1
- .else
- .byte -1, -1
- .endif
-.endif
.p2align 4,0xcc
.tfloat 0x:3ffe80
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.dc.x 0x:bffd80
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.dcb.x 1, 0x:03ff80
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0xaa
.hfloat 1, -2, 0x:3c00
@@ -74,13 +39,6 @@
.single Inf
.double Inf
.tfloat Inf
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x44
.hfloat +Inf
@@ -88,13 +46,6 @@
.single +Inf
.double +Inf
.tfloat +Inf
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x33
.hfloat -Inf
@@ -102,13 +53,6 @@
.single -Inf
.double -Inf
.tfloat -Inf
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x22
.hfloat NaN
@@ -116,13 +60,6 @@
.single NaN
.double NaN
.tfloat NaN
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x44
.hfloat +NaN
@@ -130,13 +67,6 @@
.single +NaN
.double +NaN
.tfloat +NaN
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x33
.hfloat -NaN
@@ -144,13 +74,6 @@
.single -NaN
.double -NaN
.tfloat -NaN
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x22
.hfloat QNaN
@@ -158,13 +81,6 @@
.single QNaN
.double QNaN
.tfloat QNaN
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x44
.hfloat +QNaN
@@ -172,13 +88,6 @@
.single +QNaN
.double +QNaN
.tfloat +QNaN
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x33
.hfloat -QNaN
@@ -186,13 +95,6 @@
.single -QNaN
.double -QNaN
.tfloat -QNaN
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x22
.hfloat SNaN
@@ -200,13 +102,6 @@
.single SNaN
.double SNaN
.tfloat SNaN
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x44
.hfloat +SNaN
@@ -214,13 +109,6 @@
.single +SNaN
.double +SNaN
.tfloat +SNaN
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x33
.hfloat -SNaN
@@ -228,11 +116,4 @@
.single -SNaN
.double -SNaN
.tfloat -SNaN
-.ifndef NO_TFLOAT_PADDING
- .ifdef x86_64
- .byte 0, 0, 0, 0, 0, 0
- .else
- .byte 0, 0
- .endif
-.endif
.p2align 4,0x22
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 189121f..f5eda2c 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -623,7 +623,6 @@ if [gas_32_check] then {
run_dump_test "intel-movs16"
run_dump_test "intel-cmps32"
run_dump_test "intel-cmps16"
- run_dump_test "fp-elf32"
run_list_test "inval-equ-1" "-al"
run_list_test "inval-equ-2" "-al"
run_dump_test "ifunc"
@@ -697,11 +696,6 @@ if [gas_32_check] then {
run_dump_test "iamcu-5"
run_list_test "iamcu-inval-1" "-march=iamcu -al"
}
- } else {
- set saved_ASFLAGS "$ASFLAGS"
- append ASFLAGS " --defsym NO_TFLOAT_PADDING=1"
- run_dump_test "fp"
- set $ASFLAGS "$saved_ASFLAGS"
}
# This is a PE specific test.
@@ -730,6 +724,7 @@ run_dump_test rept
run_dump_test pr19498
run_list_test "nop-bad-1" ""
run_list_test "unspec" ""
+run_dump_test "fp"
if {[is_elf_format] || [istarget "*-*-vxworks*"]} then {
run_list_test_stdin "list-1" "-al"
run_list_test_stdin "list-2" "-al"
@@ -1279,7 +1274,6 @@ if [gas_64_check] then {
run_list_test "reloc64" "--defsym _bad_=1"
run_dump_test "mixed-mode-reloc64"
run_dump_test "rela"
- run_dump_test "fp-elf64"
run_dump_test "x86-64-ifunc"
run_dump_test "x86-64-opcode-inval"
run_dump_test "x86-64-opcode-inval-intel"