]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
x86: Don't compile pr82735-[345].c for x32
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 7 Jun 2021 18:43:25 +0000 (11:43 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 7 Jun 2021 19:05:15 +0000 (12:05 -0700)
Since -mabi=ms isn't compatible with x32, skip pr82735-[345].c for x32.

PR target/82735
* gcc.target/i386/pr82735-3.c: Don't compile for x32.
* gcc.target/i386/pr82735-4.c: Likewise.
* gcc.target/i386/pr82735-5.c: Likewise.

gcc/testsuite/gcc.target/i386/pr82735-3.c
gcc/testsuite/gcc.target/i386/pr82735-4.c
gcc/testsuite/gcc.target/i386/pr82735-5.c

index e3f801e69243798f55d7f6bbfa3018d421248719..854087d81a096f35e6c06495caeca32156ee4ed2 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! x32 } } } */
 /* { dg-options "-mavx -O2 -mabi=ms" } */
 /* { dg-final { scan-assembler-not {(?n)xmm([6-9]|1[0-5])} } } */
 
index 78c0a6cb2c8cbe3fafa8781da90d688ebf38ae14..2218ffc08ab05fb7a5ee9bb7241eef548fc6e5f3 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { ! ia32 } } }  */
+/* { dg-do compile { target { lp64 } } }  */
 /* { dg-options "-mavx -O2 -mabi=ms -mno-avx512f -masm=att" } */
 /* { dg-final { scan-assembler-times {(?n)(?:vmovdqa[1-9]*|vmovap[sd])[\t ]*%xmm[0-9]+, [0-9]*\(%rsp\)} 10 } } */
 /* { dg-final { scan-assembler-times {(?n)(?:vmovdqa[1-9]*|vmovap[sd])[\t ]*[0-9]*\(%rsp\), %xmm[0-9]+} 10 } } */
index 2a58cbe52d0c4c3b149a015a0a8ef35148b0e933..a9ef05f4e7b48d3175fe9164883c7389147aeffc 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { ! ia32 } } }  */
+/* { dg-do compile { target { lp64 } } }  */
 /* { dg-options "-mavx -O2 -mabi=ms -mno-avx512f -masm=att" } */
 /* { dg-final { scan-assembler-times {(?n)(?:vmovdqa[1-9]*|vmovap[sd])[\t ]*%xmm[0-9]+, [0-9]*\(%rsp\)} 10 } } */
 /* { dg-final { scan-assembler-times {(?n)(?:vmovdqa[1-9]*|vmovap[sd])[\t ]*[0-9]*\(%rsp\), %xmm[0-9]+} 10 } } */