diff mbox

[testsuite] : Fix g++.dg/ext/mv[14,15].C spurious failure on corei7

Message ID CAFULd4Z3mSmH3uT2zjHzPm=vDmCq9rFsZdVBjCN8e=bdLg-e7Q@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak June 3, 2014, 6:05 p.m. UTC
Hello!

When configured with "--with-arch=core-avx-i --with-cpu=core-avx-i",
g++.dg/ext/mv[14,15].C tests fail on corei7 [1] since the default CPU
is the same as the checked cpu in the test. The patch compiles the
testcase with -march=x86-64 as the generic CPU

2014-06-03  Uros Bizjak  <ubizjak@gmail.com>

    * g++.dg/ext/mv14.C (dg-options): Add -march=x86-64.
    * g++.dg/ext/mv15.C (dg-options): Ditto.

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

[1] https://gcc.gnu.org/ml/gcc-testresults/2014-06/msg00243.html

Uros.
diff mbox

Patch

Index: g++.dg/ext/mv14.C
===================================================================
--- g++.dg/ext/mv14.C	(revision 211188)
+++ g++.dg/ext/mv14.C	(working copy)
@@ -1,7 +1,7 @@ 
 /* Test case to check if Multiversioning works.  */
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
 /* { dg-require-ifunc "" }  */
-/* { dg-options "-O2 -fPIC" } */
+/* { dg-options "-O2 -fPIC -march=x86-64" } */
 
 #include <assert.h>
 
Index: g++.dg/ext/mv15.C
===================================================================
--- g++.dg/ext/mv15.C	(revision 211188)
+++ g++.dg/ext/mv15.C	(working copy)
@@ -1,7 +1,7 @@ 
 /* Test case to check if Multiversioning works.  */
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
 /* { dg-require-ifunc "" }  */
-/* { dg-options "-O2 -fPIC" } */
+/* { dg-options "-O2 -fPIC -march=x86-64" } */
 
 #include <assert.h>