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]

[testsuite] use AltiVec testsuite for vect tests on powerpc


Using -maltivec without the AltiVec ABI can result in stomped-upon
registers in functions that use AltiVec instructions.  This patch
forces the AltiVec ABI to be used for powerpc targets in the vect
testsuite.  I'll check this in tomorrow unless there are objections.

Tested on powerpc64-linux with -m32/-m64.

2007-12-18  Janis Johnson  <janis187@us.ibm.com>

	* gcc.dg/vect/vect.exp: Force use of AltiVec ABI for powerpc.

Index: gcc/testsuite/gcc.dg/vect/vect.exp
===================================================================
--- gcc/testsuite/gcc.dg/vect/vect.exp	(revision 131004)
+++ gcc/testsuite/gcc.dg/vect/vect.exp	(working copy)
@@ -49,7 +49,7 @@
 	return
     }
 
-    lappend DEFAULT_VECTCFLAGS "-maltivec"
+    lappend DEFAULT_VECTCFLAGS "-maltivec" "-mabi=altivec"
     if [check_vmx_hw_available] {
 	set dg-do-what-default run
     } else {



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