[PATCH 3/6] x86: add another IAMCU testcase
H.J. Lu
hjl.tools@gmail.com
Wed May 18 17:46:02 GMT 2022
On Wed, Mar 16, 2022 at 1:46 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> 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.
>
> --- 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
> --- 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
>
OK.
Thanks.
--
H.J.
More information about the Binutils
mailing list