From: Jan Beulich Date: Thu, 17 Mar 2022 10:03:22 +0000 (+0100) Subject: x86: add another IAMCU testcase X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1f8a900fdd64dee497912276c9f176169444219;p=binutils-gdb.git 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. --- diff --git a/gas/testsuite/gas/i386/iamcu-inval-1.l b/gas/testsuite/gas/i386/iamcu-inval-1.l index 7bbbc2daf9a..b07058c9dd3 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 4e2588037f9..c944836d165 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