diff mbox series

[testsuite] : Remove -m32 from x86 tests

Message ID CAFULd4aedxBdrrLirfgHbLPD5ewkLuheXKAZj16-OCfvTPAcSg@mail.gmail.com
State New
Headers show
Series [testsuite] : Remove -m32 from x86 tests | expand

Commit Message

Uros Bizjak March 24, 2019, 7:44 p.m. UTC
2019-03-24  Uroš Bizjak  <ubizjak@gmail.com>

    * gcc.target/i386/pr82281.c: Compile only for ia32 effective target.
    (dg-options): Remove -m32. Add -msse2 -mtune=znver1.
    * gcc.target/i386/pr89676.c: Compile only for ia32 effective target.
    (dg-options): Remove -m32 and -march=i686. Add -mno-stv.

Tested on x86_64-linux-gnu {,-m32} and committed to mainline SVN.

Uros.
diff mbox series

Patch

Index: gcc.target/i386/pr82281.c
===================================================================
--- gcc.target/i386/pr82281.c	(revision 269894)
+++ gcc.target/i386/pr82281.c	(working copy)
@@ -1,6 +1,9 @@ 
-/* { dg-do compile } */
-/* { dg-options "-O3 -m32" } */
+/* PR target/82281 */
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "-O2 -msse2 -mtune=znver1" } */
+
 long long test_and(long long x) {
 	return x & 0x77ffffffffULL;
 }
+
 /* { dg-final { scan-assembler-not "xmm" } } */
Index: gcc.target/i386/pr89676.c
===================================================================
--- gcc.target/i386/pr89676.c	(revision 269894)
+++ gcc.target/i386/pr89676.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* PR rtl-optimization/89676 */
-/* { dg-do compile } */
-/* { dg-options "-O2 -m32 -march=i686" } */
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "-O2 -mno-stv" } */
+
 unsigned long long
 foo (unsigned long long i)
 {