aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2019-10-31 10:42:04 -0700
committerH.J. Lu <hjl.tools@gmail.com>2019-10-31 10:42:04 -0700
commitf78d04905a457abde48c8f521ec2303e84683100 (patch)
tree0689590c531499a167fcab277b82f28c392f1576 /gas
parent3d11e68e4b0a557bf2f2fdaad188667215ec5aaa (diff)
downloadgdb-f78d04905a457abde48c8f521ec2303e84683100.zip
gdb-f78d04905a457abde48c8f521ec2303e84683100.tar.gz
gdb-f78d04905a457abde48c8f521ec2303e84683100.tar.bz2
i386; Add .code16gcc fldenv tests
* testsuite/gas/i386/general.s: Add .code16gcc fldenv tests. * testsuite/gas/i386/general.l: Updated.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/testsuite/gas/i386/general.l11
-rw-r--r--gas/testsuite/gas/i386/general.s6
3 files changed, 20 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 25a504b..fc99adc 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2019-10-31 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/gas/i386/general.s: Add .code16gcc fldenv tests.
+ * testsuite/gas/i386/general.l: Updated.
+
2019-10-31 Mihail Ionescu <mihail.ionescu@arm.com>
* config/tc-arm.c (selected_ctx_ext_table) New static variable.
diff --git a/gas/testsuite/gas/i386/general.l b/gas/testsuite/gas/i386/general.l
index 17bf88f..ac17096 100644
--- a/gas/testsuite/gas/i386/general.l
+++ b/gas/testsuite/gas/i386/general.l
@@ -282,5 +282,12 @@
216 0226 660FB6F8 movzb %al,%di
217 022a 0FB6C8 movzb %al,%ecx
218
- 219 # Force a good alignment.
- 220 022d 000000 .p2align 4,0
+ 219 .code16gcc
+ 220 # Use 16-bit layout by default for fldenv.
+ 221 022d 67D920 fldenv \(%eax\)
+ 222 0230 67D920 fldenvs \(%eax\)
+ 223 0233 6766D920 fldenvl \(%eax\)
+ 224
+ 225 # Force a good alignment.
+ 226 0237 00000000 00000000 .p2align 4,0
+ 226 00
diff --git a/gas/testsuite/gas/i386/general.s b/gas/testsuite/gas/i386/general.s
index a0ea660..e4b2530 100644
--- a/gas/testsuite/gas/i386/general.s
+++ b/gas/testsuite/gas/i386/general.s
@@ -216,5 +216,11 @@
movzb %al,%di
movzb %al,%ecx
+.code16gcc
+# Use 16-bit layout by default for fldenv.
+ fldenv (%eax)
+ fldenvs (%eax)
+ fldenvl (%eax)
+
# Force a good alignment.
.p2align 4,0