Patchwork [x32] PATCH: Also check x32 for vect_cmdline_needed target.

login
register
mail settings
Submitter H.J. Lu
Date March 16, 2011, 3:31 a.m.
Message ID <20110316033119.GA16719@intel.com>
Download mbox | patch
Permalink /patch/87154/
State New
Headers show

Comments

H.J. Lu - March 16, 2011, 3:31 a.m.
x32 is similar to x86-64.  I checked this patch into x32 branch.


H.J.
---

Patch

diff --git a/gcc/testsuite/ChangeLog.x32 b/gcc/testsuite/ChangeLog.x32
index 32c3e34..9bcf223 100644
--- a/gcc/testsuite/ChangeLog.x32
+++ b/gcc/testsuite/ChangeLog.x32
@@ -1,5 +1,10 @@ 
 2011-03-15  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* lib/target-supports.exp (check_effective_target_vect_cmdline_needed): 
+	Also check x32.
+
+2011-03-15  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* gcc.dg/20050503-1.c: Check ia32 instead of ilp32.
 	* gcc.dg/builtin-apply4.c: Likewise.
 	* gcc.dg/pr35045.c: Likewise.
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index f46c734..01f7a65 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -1715,7 +1715,8 @@  proc check_effective_target_vect_cmdline_needed { } {
 	if { [istarget alpha*-*-*]
 	     || [istarget ia64-*-*]
 	     || (([istarget x86_64-*-*] || [istarget i?86-*-*])
-		 && [check_effective_target_lp64])
+		 && ([check_effective_target_x32]
+		     || [check_effective_target_lp64]))
 	     || ([istarget powerpc*-*-*]
 		 && ([check_effective_target_powerpc_spe]
 		     || [check_effective_target_powerpc_altivec]))