diff mbox

[testsuite] : Fix g++.dg/mv[1,6].C failure with non-default architecture

Message ID CAFULd4bVaKUXM=50ateNW1i=X5=yYovNtNNjmYdpqW2kpe_DLw@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Nov. 16, 2012, 11:48 a.m. UTC
Hello!

2012-11-16  Uros Bizjak  <ubizjak@gmail.com>

	* g++.dg/mv1.C (dg-options): Add -march=x86-64.
	* g++.dg/mv6.C (dg-options): Ditto.

Tested on x86_64-linux-gnu {,-m32} configured --with-arch=corei7-avx
and committed to mainline SVN.

Uros.
diff mbox

Patch

Index: g++.dg/mv1.C
===================================================================
--- g++.dg/mv1.C        (revision 193549)
+++ g++.dg/mv1.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 -mno-avx -mno-popcnt" } */
+/* { dg-options "-O2 -fPIC -march=x86-64 -mno-avx -mno-popcnt" } */

 #include <assert.h>

Index: g++.dg/mv6.C
===================================================================
--- g++.dg/mv6.C        (revision 193549)
+++ g++.dg/mv6.C        (working copy)
@@ -2,6 +2,7 @@ 

 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
 /* { dg-require-ifunc "" }  */
+/* { dg-options "-march=x86-64" } */

 class Foo
 {