This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] use AltiVec testsuite for vect tests on powerpc
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 17 Dec 2007 17:31:32 -0800
- Subject: [testsuite] use AltiVec testsuite for vect tests on powerpc
- Reply-to: janis187 at us dot ibm dot com
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 {