From b1f8a900fdd64dee497912276c9f176169444219 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 17 Mar 2022 11:03:22 +0100 Subject: [PATCH] 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. --- gas/testsuite/gas/i386/iamcu-inval-1.l | 5 ++++- gas/testsuite/gas/i386/iamcu-inval-1.s | 4 +++- 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 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 -- 2.30.2