[i386] Fix apx test fails on 32bit target
Checks
Commit Message
Since -mapxf works similar as -muintr that will emit error for 32bit
target, add !ia32 target guard for apx related tests.
Committed as obvious fix after test.
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 | 2 +-
gcc/testsuite/gcc.target/i386/apx-inline-gpr-norex2.c | 2 +-
gcc/testsuite/gcc.target/i386/apx-interrupt-1.c | 2 +-
.../gcc.target/i386/apx-legacy-insn-check-norex2-asm.c | 2 +-
gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
@@ -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" } } */
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -mapxf -m64" } */
typedef unsigned int u32;
@@ -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));
@@ -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"
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O3 -mapxf -m64 -DDTYPE32" } */
#include <immintrin.h>