This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

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
 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]