From f78d04905a457abde48c8f521ec2303e84683100 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 31 Oct 2019 10:42:04 -0700 Subject: [PATCH] i386; Add .code16gcc fldenv tests * testsuite/gas/i386/general.s: Add .code16gcc fldenv tests. * testsuite/gas/i386/general.l: Updated. --- gas/ChangeLog | 5 +++++ gas/testsuite/gas/i386/general.l | 11 +++++++++-- gas/testsuite/gas/i386/general.s | 6 ++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 25a504b3748..fc99adce7f3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2019-10-31 H.J. Lu + + * testsuite/gas/i386/general.s: Add .code16gcc fldenv tests. + * testsuite/gas/i386/general.l: Updated. + 2019-10-31 Mihail Ionescu * 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 17bf88f12d5..ac170960207 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 a0ea660842a..e4b2530e0d1 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 -- 2.30.2