aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongyu Wang <hongyu.wang@intel.com>2023-10-08 09:23:19 +0800
committerHongyu Wang <hongyu.wang@intel.com>2023-10-08 09:33:57 +0800
commite067e894d62150b3ab4baca4653b4267fd7e0dc1 (patch)
tree89d912dad796d648c172f9adc5e8356b7dc22a3e
parentb20e59f49b51b7baf05e1b727be5da947e617496 (diff)
downloadgcc-e067e894d62150b3ab4baca4653b4267fd7e0dc1.zip
gcc-e067e894d62150b3ab4baca4653b4267fd7e0dc1.tar.gz
gcc-e067e894d62150b3ab4baca4653b4267fd7e0dc1.tar.bz2
[i386] Fix apx test fails on 32bit target
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.
-rw-r--r--gcc/testsuite/gcc.target/i386/apx-egprs-names.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/apx-inline-gpr-norex2.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/apx-interrupt-1.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2-asm.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/gcc/testsuite/gcc.target/i386/apx-egprs-names.c b/gcc/testsuite/gcc.target/i386/apx-egprs-names.c
index 445bcf2..f0517e4 100644
--- a/gcc/testsuite/gcc.target/i386/apx-egprs-names.c
+++ b/gcc/testsuite/gcc.target/i386/apx-egprs-names.c
@@ -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" } } */
diff --git a/gcc/testsuite/gcc.target/i386/apx-inline-gpr-norex2.c b/gcc/testsuite/gcc.target/i386/apx-inline-gpr-norex2.c
index ffd8f95..208d53d 100644
--- a/gcc/testsuite/gcc.target/i386/apx-inline-gpr-norex2.c
+++ b/gcc/testsuite/gcc.target/i386/apx-inline-gpr-norex2.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -mapxf -m64" } */
typedef unsigned int u32;
diff --git a/gcc/testsuite/gcc.target/i386/apx-interrupt-1.c b/gcc/testsuite/gcc.target/i386/apx-interrupt-1.c
index 441dbf0..dc1fc3f 100644
--- a/gcc/testsuite/gcc.target/i386/apx-interrupt-1.c
+++ b/gcc/testsuite/gcc.target/i386/apx-interrupt-1.c
@@ -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));
diff --git a/gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2-asm.c b/gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2-asm.c
index 7ecc861..fb0f62e 100644
--- a/gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2-asm.c
+++ b/gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2-asm.c
@@ -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"
diff --git a/gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2.c b/gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2.c
index 771bcb0..641feaf 100644
--- a/gcc/testsuite/gcc.target/i386/apx-legacy-insn-check-norex2.c
+++ b/gcc/testsuite/gcc.target/i386/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>