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,committed] Enable VMX testing on AIX


	The appended patch updates the testsuite library to enable testing
VMX and vectorization on AIX 5.3 and above.

David


	lib/target-supports.exp (check_vmx_hw_available): Add -maltivec
	flag for AIX.
	(check_effective_target_powerpc_altivec_ok): Only skip before AIX 5.3.

Index: target-supports.exp
===================================================================
--- target-supports.exp	(revision 129348)
+++ target-supports.exp	(working copy)
@@ -943,7 +943,8 @@
 
 	# Most targets don't require special flags for this test case, but
 	# Darwin does.
-	if [istarget *-*-darwin*] {
+	if { [istarget *-*-darwin*] 
+	     || [istarget *-*-aix*] } {
 	  set opts "additional_flags=-maltivec"
 	} else {
 	  set opts ""
@@ -1620,8 +1621,10 @@
 proc check_effective_target_powerpc_altivec_ok { } {
     if { [istarget powerpc*-*-*]
 	 || [istarget rs6000-*-*] } {
-	# AltiVec is not supported on Aix.
-	if { [istarget powerpc*-*-aix*] } {
+	# AltiVec is not supported on AIX before 5.3.
+	if { [istarget powerpc*-*-aix4*]
+	     || [istarget powerpc*-*-aix5.1*] 
+	     || [istarget powerpc*-*-aix5.2*] } {
 	    return 0
 	}
 	return [check_no_compiler_messages powerpc_altivec_ok object {


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