]> gcc.gnu.org Git - gcc.git/commitdiff
[Committed] Tweak new test case gcc.target/i386/dec-cmov-2.c
authorRoger Sayle <roger@nextmovesoftware.com>
Sat, 31 Jul 2021 10:06:22 +0000 (11:06 +0100)
committerRoger Sayle <roger@nextmovesoftware.com>
Sat, 31 Jul 2021 10:09:31 +0000 (11:09 +0100)
With -m32, this test case is sensitive to the instruction timings of
the target (for ifcvt to normalize bar() to foo() during the ce1 pass,
prior to the transformations actually being tested here).  Specifying
-march=core2 prevents these failures.  Committed as obvious.

2021-07-31  Roger Sayle  <roger@nextmovesoftware.com>

gcc/testsuite/ChangeLog
* gcc.target/i386/dec-cmov-2.c: Require -march=core2 with -m32.

gcc/testsuite/gcc.target/i386/dec-cmov-2.c

index 115db992f395c56d9367e9cd5d9c5f658cc6f170..9fbccc36f8291f0074d0253c22b72d57513ff8ac 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
-/* { dg-additional-options "-march=pentiumpro -mregparm=3" { target ia32 } } */
+/* { dg-additional-options "-march=core2 -mregparm=3" { target ia32 } } */
 
 int foo(int x)
 {
This page took 0.081732 seconds and 5 git commands to generate.