]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[i386] Fix apx test fails on 32bit target
authorHongyu Wang <hongyu.wang@intel.com>
Sun, 8 Oct 2023 01:23:19 +0000 (09:23 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Sun, 8 Oct 2023 01:33:57 +0000 (09:33 +0800)
Since -mapxf works similar as -muintr that will emit error for 32bit
target, add !ia32 target guard for apx related tests.

gcc/testsuite/ChangeLog:

* gcc.target/i386/apx-egprs-names.c: Compile for non-ia32.
* gcc.target/i386/apx-inline-gpr-norex2.c: Likewise.
* gcc.target/i386/apx-interrupt-1.c: Likewise.
* gcc.target/i386/apx-legacy-insn-check-norex2-asm.c: Likewise.
* gcc.target/i386/apx-legacy-insn-check-norex2.c: Likewise.

gcc/testsuite/gcc.target/i386/apx-egprs-names.c
gcc/testsuite/gcc.target/i386/apx-inline-gpr-norex2.c
gcc/testsuite/gcc.target/i386/apx-interrupt-1.c
gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2-asm.c
gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2.c

index 445bcf2c250057498952c1f12018c3965e00e336..f0517e47c334c67cfc5c7f93eff30a658475f1d1 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! ia32 } } } */
 /* { dg-options "-mapxf -m64" } */
 /* { dg-final { scan-assembler "r31" } } */
 /* { dg-final { scan-assembler "r30" } } */
index ffd8f9545000016a5e9fbf08cc8ddfd6186f8ebb..208d53dc774004b09b28ce06eb54f12e34a47c0b 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! ia32 } } } */
 /* { dg-options "-O2 -mapxf -m64" } */
 
 typedef unsigned int u32;
index 441dbf04bf2943b96366fdba05ebc66398a9fd56..dc1fc3fe37385d2e212845aa8a12e3d37206d5f3 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! ia32 } } } */
 /* { dg-options "-mapxf -m64 -O2 -mgeneral-regs-only -mno-cld -mno-push-args -maccumulate-outgoing-args" } */
 
 extern void foo (void *) __attribute__ ((interrupt));
index 7ecc861435f48e6e186194369ae7b5733ca1d282..fb0f62e83e853e534d65187e4aa78d3ac70a7515 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do assemble { target apxf } } */
+/* { dg-do assemble { target { apxf && { ! ia32 } } } } */
 /* { dg-options "-O1 -mapxf -m64 -DDTYPE32" } */
 
 #include "apx-legacy-insn-check-norex2.c"
index 771bcb078e1b9549f726f8a072b0cc77c6d1c1c2..641feafa27fe50aa873ab2f70aac804dc7e6a8d0 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! ia32 } } } */
 /* { dg-options "-O3 -mapxf -m64 -DDTYPE32" } */
 
 #include <immintrin.h>