aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-03-17 11:03:22 +0100
committerJan Beulich <jbeulich@suse.com>2022-03-17 11:03:22 +0100
commitb1f8a900fdd64dee497912276c9f176169444219 (patch)
tree55c84ddeefb024739e08772028b37f803ee6665a /gas
parentc085ab00c7b2877e35420ee196d24f9eeb9233f4 (diff)
downloadfsf-binutils-gdb-b1f8a900fdd64dee497912276c9f176169444219.zip
fsf-binutils-gdb-b1f8a900fdd64dee497912276c9f176169444219.tar.gz
fsf-binutils-gdb-b1f8a900fdd64dee497912276c9f176169444219.tar.bz2
x86: add another IAMCU testcase
Now that {L,K}1OM support is gone, and with it the brokenness in check_cpu_arch_compatible(), put in place a test making sure that only extensions can be enabled via .arch for IAMCU, and that the base architecture cannot be changed.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/i386/iamcu-inval-1.l5
-rw-r--r--gas/testsuite/gas/i386/iamcu-inval-1.s4
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/testsuite/gas/i386/iamcu-inval-1.l b/gas/testsuite/gas/i386/iamcu-inval-1.l
index 7bbbc2d..b07058c 100644
--- a/gas/testsuite/gas/i386/iamcu-inval-1.l
+++ b/gas/testsuite/gas/i386/iamcu-inval-1.l
@@ -5,10 +5,11 @@
.*:8: Error: .*
.*:10: Error: .*
.*:11: Error: .*
+.*:13: Error: .*
GAS LISTING .*
-[ ]*1[ ]+\# Invalid Intel MCU instructions
+[ ]*1[ ]+\# Invalid Intel MCU instructions / directives
[ ]*2[ ]+\.text
[ ]*3[ ]+
[ ]*4[ ]+fnstsw
@@ -19,3 +20,5 @@ GAS LISTING .*
[ ]*9[ ]+
[ ]*10[ ]+movq %xmm1, \(%eax\)
[ ]*11[ ]+movnti %eax, \(%eax\)
+[ ]*12[ ]+
+[ ]*13[ ]+\.arch generic32
diff --git a/gas/testsuite/gas/i386/iamcu-inval-1.s b/gas/testsuite/gas/i386/iamcu-inval-1.s
index 4e25880..c944836 100644
--- a/gas/testsuite/gas/i386/iamcu-inval-1.s
+++ b/gas/testsuite/gas/i386/iamcu-inval-1.s
@@ -1,4 +1,4 @@
-# Invalid Intel MCU instructions
+# Invalid Intel MCU instructions / directives
.text
fnstsw
@@ -9,3 +9,5 @@
movq %xmm1, (%eax)
movnti %eax, (%eax)
+
+ .arch generic32