public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH: Support -mx32 in GCC tests
@ 2011-07-07 17:38 H.J. Lu
  2011-07-07 18:07 ` Mike Stump
  2011-07-10  9:34 ` PATCH: Check ia32 " H.J. Lu
  0 siblings, 2 replies; 16+ messages in thread
From: H.J. Lu @ 2011-07-07 17:38 UTC (permalink / raw)
  To: gcc-patches; +Cc: Uros Bizjak, ro, mikestump

Hi,

On Linux/x86-64, when we pass

RUNTESTFLAGS="--target_board='unix{-mx32}'"

to GCC tests, we can't check lp64/ilp32 for availability of 64bit x86
instructions.  This patch adds ia32 and x32 effetive targets.  OK for
trunk?

Thanks.


H.J.
---
2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>

	* lib/target-supports.exp (check_effective_target_ia32): New.
	(check_effective_target_x32): Likewise.
	(check_effective_target_vect_cmdline_needed): Also check x32.

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 7db156f..b5b8782 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -1512,6 +1512,28 @@ proc check_effective_target_ilp32 { } {
     }]
 }
 
+# Return 1 if we're generating ia32 code using default options, 0
+# otherwise.
+
+proc check_effective_target_ia32 { } {
+    return [check_no_compiler_messages ia32 object {
+	int dummy[sizeof (int) == 4
+		  && sizeof (void *) == 4
+		  && sizeof (long) == 4 ? 1 : -1] = { __i386__ };
+    }]
+}
+
+# Return 1 if we're generating x32 code using default options, 0
+# otherwise.
+
+proc check_effective_target_x32 { } {
+    return [check_no_compiler_messages x32 object {
+	int dummy[sizeof (int) == 4
+		  && sizeof (void *) == 4
+		  && sizeof (long) == 4 ? 1 : -1] = { __x86_64__ };
+    }]
+}
+
 # Return 1 if we're generating 32-bit or larger integers using default
 # options, 0 otherwise.
 
@@ -1713,7 +1735,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]))

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 17:38 PATCH: Support -mx32 in GCC tests H.J. Lu
@ 2011-07-07 18:07 ` Mike Stump
  2011-07-07 18:33   ` H.J. Lu
  2011-07-10  9:34 ` PATCH: Check ia32 " H.J. Lu
  1 sibling, 1 reply; 16+ messages in thread
From: Mike Stump @ 2011-07-07 18:07 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches, Uros Bizjak, ro

On Jul 7, 2011, at 10:29 AM, H.J. Lu wrote:
> On Linux/x86-64, when we pass
> 
> RUNTESTFLAGS="--target_board='unix{-mx32}'"
> 
> to GCC tests, we can't check lp64/ilp32 for availability of 64bit x86
> instructions.  This patch adds ia32 and x32 effetive targets.  OK for
> trunk?

Ok.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 18:07 ` Mike Stump
@ 2011-07-07 18:33   ` H.J. Lu
  2011-07-07 20:33     ` Mike Stump
  0 siblings, 1 reply; 16+ messages in thread
From: H.J. Lu @ 2011-07-07 18:33 UTC (permalink / raw)
  To: Mike Stump; +Cc: gcc-patches, Uros Bizjak, ro

[-- Attachment #1: Type: text/plain, Size: 17322 bytes --]

On Thu, Jul 7, 2011 at 10:57 AM, Mike Stump <mikestump@comcast.net> wrote:
> On Jul 7, 2011, at 10:29 AM, H.J. Lu wrote:
>> On Linux/x86-64, when we pass
>>
>> RUNTESTFLAGS="--target_board='unix{-mx32}'"
>>
>> to GCC tests, we can't check lp64/ilp32 for availability of 64bit x86
>> instructions.  This patch adds ia32 and x32 effetive targets.  OK for
>> trunk?
>
> Ok.
>

Checked in.

This is the followup patch to use ia32 and x32 effective targets.  It
uses ia32 effective target for 32bit x86 instructions and x32 for 64bit
x86 instructions.  OK for trunk?

Thanks.

-- 
H.J.
---
2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>

	* c-c++-common/dfp/func-vararg-alternate-d128-2.c: Support x32.
	* c-c++-common/dfp/func-vararg-mixed-2.c: Likewise.
	* g++.dg/abi/bitfield3.C: Likewise.
	* g++.dg/eh/pr38662.C: Likewise.
	* g++.dg/ext/attrib36.C: Likewise.
	* g++.dg/ext/attrib37.C: Likewise.
	* g++.dg/ext/attrib8.C: Likewise.
	* g++.dg/ext/tmplattr1.C: Likewise.
	* g++.dg/inherit/override-attribs.C: Likewise.
	* g++.dg/opt/inline9.C: Likewise.
	* g++.dg/opt/life1.C: Likewise.
	* g++.dg/opt/longbranch2.C: Likewise.
	* g++.dg/opt/nrv12.C: Likewise.
	* g++.dg/opt/reg-stack4.C: Likewise.
	* g++.dg/other/pr35504.C: Likewise.
	* g++.dg/other/pr39496.C: Likewise.
	* g++.dg/torture/stackalign/eh-fastcall-1.C: Likewise.
	* g++.dg/torture/stackalign/eh-thiscall-1.C: Likewise.
	* g++.dg/torture/stackalign/stdcall-1.C: Likewise.
	* g++.dg/torture/stackalign/unwind-0.C: Likewise.
	* g++.dg/torture/stackalign/unwind-1.C: Likewise.
	* g++.dg/torture/stackalign/unwind-2.C: Likewise.
	* g++.dg/torture/stackalign/unwind-3.C: Likewise.
	* g++.dg/torture/stackalign/unwind-4.C: Likewise.
	* g++.dg/torture/stackalign/unwind-5.C: Likewise.
	* g++.dg/torture/stackalign/unwind-6.C: Likewise.
	* g++.dg/warn/pr15774-1.C: Likewise.
	* g++.dg/warn/pr15774-2.C: Likewise.
	* g++.old-deja/g++.ext/attrib1.C: Likewise.
	* g++.old-deja/g++.ext/attrib2.C: Likewise.
	* g++.old-deja/g++.ext/attrib3.C: Likewise.
	* g++.old-deja/g++.pt/asm2.C: Likewise.
	* gcc.c-torture/compile/20000804-1.c: Likewise.
	* gcc.c-torture/compile/pr16566-2.c: Likewise.
	* gcc.c-torture/execute/ieee/ieee.exp: Likewise.
	* gcc.dg/20020103-1.c: Likewise.
	* gcc.dg/20020108-1.c: Likewise.
	* gcc.dg/20020122-2.c: Likewise.
	* gcc.dg/20020122-3.c: Likewise.
	* gcc.dg/20020206-1.c: Likewise.
	* gcc.dg/20020219-1.c: Likewise.
	* gcc.dg/20020310-1.c: Likewise.
	* gcc.dg/20020411-1.c: Likewise.
	* gcc.dg/20020418-2.c: Likewise.
	* gcc.dg/20020426-2.c: Likewise.
	* gcc.dg/20020517-1.c: Likewise.
	* gcc.dg/20030204-1.c: Likewise.
	* gcc.dg/20030826-2.c: Likewise.
	* gcc.dg/20031102-1.c: Likewise.
	* gcc.dg/20031202-1.c: Likewise.
	* gcc.dg/20050111-1.c: Likewise.
	* gcc.dg/20050503-1.c: Likewise.
	* gcc.dg/array-init-1.c: Likewise.
	* gcc.dg/builtin-apply4.c: Likewise.
	* gcc.dg/dfp/pr31344.c: Likewise.
	* gcc.dg/gomp/atomic-11.c: Likewise.
	* gcc.dg/graphite/pr40281.c: Likewise.
	* gcc.dg/ia64-sync-1.c: Likewise.
	* gcc.dg/ia64-sync-2.c: Likewise.
	* gcc.dg/ia64-sync-3.c: Likewise.
	* gcc.dg/ia64-sync-4.c: Likewise.
	* gcc.dg/ifcvt-fabs-1.c: Likewise.
	* gcc.dg/invalid-call-1.c: Likewise.
	* gcc.dg/loop-3.c: Likewise.
	* gcc.dg/lower-subreg-1.c: Likewise.
	* gcc.dg/lto/pr47259_0.c: Likewise.
	* gcc.dg/nested-calls-1.c: Likewise.
	* gcc.dg/pr20017.c: Likewise.
	* gcc.dg/pr25023.c: Likewise.
	* gcc.dg/pr27671-2.c: Likewise.
	* gcc.dg/pr32176.c: Likewise.
	* gcc.dg/pr33676.c: Likewise.
	* gcc.dg/pr35045.c: Likewise.
	* gcc.dg/pr36015.c: Likewise.
	* gcc.dg/pr36584.c: Likewise.
	* gcc.dg/pr36998.c: Likewise.
	* gcc.dg/pr37438.c: Likewise.
	* gcc.dg/pr37908.c: Likewise.
	* gcc.dg/pr41241.c: Likewise.
	* gcc.dg/pr41340.c: Likewise.
	* gcc.dg/pr44136.c: Likewise.
	* gcc.dg/pr44194-1.c: Likewise.
	* gcc.dg/pr46212.c: Likewise.
	* gcc.dg/prefetch-loop-arrays-1.c: Likewise.
	* gcc.dg/setjmp-2.c: Likewise.
	* gcc.dg/short-compare-1.c: Likewise.
	* gcc.dg/short-compare-2.c: Likewise.
	* gcc.dg/smod-1.c: Likewise.
	* gcc.dg/sync-2.c: Likewise.
	* gcc.dg/sync-3.c: Likewise.
	* gcc.dg/tls/opt-1.c: Likewise.
	* gcc.dg/tls/opt-2.c: Likewise.
	* gcc.dg/tls/opt-3.c: Likewise.
	* gcc.dg/torture/badshift.c: Likewise.
	* gcc.dg/torture/fp-int-convert-float80-timode.c: Likewise.
	* gcc.dg/torture/pr20314-2.c: Likewise.
	* gcc.dg/torture/pr36891.c: Likewise.
	* gcc.dg/torture/pr38774.c: Likewise.
	* gcc.dg/torture/stackalign/alloca-2.c: Likewise.
	* gcc.dg/torture/stackalign/alloca-4.c: Likewise.
	* gcc.dg/torture/stackalign/alloca-5.c: Likewise.
	* gcc.dg/torture/stackalign/alloca-6.c: Likewise.
	* gcc.dg/torture/stackalign/fastcall-1.c: Likewise.
	* gcc.dg/torture/stackalign/push-1.c: Likewise.
	* gcc.dg/torture/stackalign/regparm-1.c: Likewise.
	* gcc.dg/torture/stackalign/thiscall-1.c: Likewise.
	* gcc.dg/tree-ssa/loop-28.c: Likewise.
	* gcc.dg/tree-ssa/prefetch-3.c: Likewise.
	* gcc.dg/tree-ssa/prefetch-4.c: Likewise.
	* gcc.dg/tree-ssa/prefetch-5.c: Likewise.
	* gcc.dg/tree-ssa/prefetch-6.c: Likewise.
	* gcc.dg/tree-ssa/prefetch-7.c: Likewise.
	* gcc.dg/tree-ssa/prefetch-8.c: Likewise.
	* gcc.dg/tree-ssa/prefetch-9.c: Likewise.
	* gcc.dg/tree-ssa/stdarg-2.c: Likewise.
	* gcc.dg/tree-ssa/stdarg-3.c: Likewise.
	* gcc.dg/tree-ssa/stdarg-4.c: Likewise.
	* gcc.dg/tree-ssa/stdarg-5.c: Likewise.
	* gcc.dg/tree-ssa/update-unroll-1.c: Likewise.
	* gcc.dg/unroll-1.c: Likewise.
	* gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp: Likewise.
	* gcc.misc-tests/i386-pf-3dnow-1.c: Likewise.
	* gcc.misc-tests/i386-pf-athlon-1.c: Likewise.
	* gcc.misc-tests/i386-pf-none-1.c: Likewise.
	* gcc.misc-tests/i386-pf-sse-1.c: Likewise.
	* gcc.target/i386/20000609-1.c: Likewise.
	* gcc.target/i386/20000720-1.c: Likewise.
	* gcc.target/i386/20000724-1.c: Likewise.
	* gcc.target/i386/20011107-1.c: Likewise.
	* gcc.target/i386/20011119-1.c: Likewise.
	* gcc.target/i386/20020201-3.c: Likewise.
	* gcc.target/i386/20020218-1.c: Likewise.
	* gcc.target/i386/20020729-1.c: Likewise.
	* gcc.target/i386/20030926-1.c: Likewise.
	* gcc.target/i386/20060125-1.c: Likewise.
	* gcc.target/i386/20060125-2.c: Likewise.
	* gcc.target/i386/20060512-1.c: Likewise.
	* gcc.target/i386/20060512-2.c: Likewise.
	* gcc.target/i386/20060512-3.c: Likewise.
	* gcc.target/i386/20060512-4.c: Likewise.
	* gcc.target/i386/387-1.c: Likewise.
	* gcc.target/i386/387-2.c: Likewise.
	* gcc.target/i386/387-5.c: Likewise.
	* gcc.target/i386/387-6.c: Likewise.
	* gcc.target/i386/980312-1.c: Likewise.
	* gcc.target/i386/980313-1.c: Likewise.
	* gcc.target/i386/990117-1.c: Likewise.
	* gcc.target/i386/990424-1.c: Likewise.
	* gcc.target/i386/990524-1.c: Likewise.
	* gcc.target/i386/991129-1.c: Likewise.
	* gcc.target/i386/991214-1.c: Likewise.
	* gcc.target/i386/991230-1.c: Likewise.
	* gcc.target/i386/addr-sel-1.c: Likewise.
	* gcc.target/i386/aggregate-ret1.c: Likewise.
	* gcc.target/i386/aggregate-ret2.c: Likewise.
	* gcc.target/i386/align-main-3.c: Likewise.
	* gcc.target/i386/amd64-abi-1.c: Likewise.
	* gcc.target/i386/amd64-abi-2.c: Likewise.
	* gcc.target/i386/amd64-abi-4.c: Likewise.
	* gcc.target/i386/amd64-abi-5.c: Likewise.
	* gcc.target/i386/amd64-abi-6.c: Likewise.
	* gcc.target/i386/asm-1.c: Likewise.
	* gcc.target/i386/asm-3.c: Likewise.
	* gcc.target/i386/asm-5.c: Likewise.
	* gcc.target/i386/attributes-error.c: Likewise.
	* gcc.target/i386/avx-vcvtsd2si-2.c: Likewise.
	* gcc.target/i386/avx-vcvtsi2sd-2.c: Likewise.
	* gcc.target/i386/avx-vcvtsi2ss-2.c: Likewise.
	* gcc.target/i386/avx-vcvtss2si-2.c: Likewise.
	* gcc.target/i386/avx-vcvttsd2si-2.c: Likewise.
	* gcc.target/i386/avx-vcvttss2si-2.c: Likewise.
	* gcc.target/i386/avx-vinsertps-3.c: Likewise.
	* gcc.target/i386/avx-vmovd-2.c: Likewise.
	* gcc.target/i386/avx-vmovq-2.c: Likewise.
	* gcc.target/i386/avx-vmovq-3.c: Likewise.
	* gcc.target/i386/avx-vpextrq-1.c: Likewise.
	* gcc.target/i386/avx-vpinsrq-1.c: Likewise.
	* gcc.target/i386/avx-vzeroupper-16.c: Likewise.
	* gcc.target/i386/avx-vzeroupper-17.c: Likewise.
	* gcc.target/i386/avx-vzeroupper-18.c: Likewise.
	* gcc.target/i386/bitfield1.c: Likewise.
	* gcc.target/i386/bitfield2.c: Likewise.
	* gcc.target/i386/bmi-2.c: Likewise.
	* gcc.target/i386/bmi-5.c: Likewise.
	* gcc.target/i386/builtin-unreachable.c: Likewise.
	* gcc.target/i386/cleanup-2.c: Likewise.
	* gcc.target/i386/clobbers.c: Likewise.
	* gcc.target/i386/cmov8.c: Likewise.
	* gcc.target/i386/cmpxchg16b-1.c: Likewise.
	* gcc.target/i386/compress-float-387-pic.c: Likewise.
	* gcc.target/i386/compress-float-387.c: Likewise.
	* gcc.target/i386/compress-float-sse-pic.c: Likewise.
	* gcc.target/i386/compress-float-sse.c: Likewise.
	* gcc.target/i386/crc32-2.c: Likewise.
	* gcc.target/i386/crc32-3.c: Likewise.
	* gcc.target/i386/divmod-7.c: Likewise.
	* gcc.target/i386/divmod-8.c: Likewise.
	* gcc.target/i386/fastcall-sseregparm.c: Likewise.
	* gcc.target/i386/fma3-builtin.c: Likewise.
	* gcc.target/i386/fma3-fma.c: Likewise.
	* gcc.target/i386/fma4-256-vector.c: Likewise.
	* gcc.target/i386/fma4-builtin.c: Likewise.
	* gcc.target/i386/fma4-fma-2.c: Likewise.
	* gcc.target/i386/fma4-fma.c: Likewise.
	* gcc.target/i386/fma4-vector-2.c: Likewise.
	* gcc.target/i386/fma4-vector.c: Likewise.
	* gcc.target/i386/funcspec-1.c: Likewise.
	* gcc.target/i386/funcspec-10.c: Likewise.
	* gcc.target/i386/funcspec-11.c: Likewise.
	* gcc.target/i386/funcspec-2.c: Likewise.
	* gcc.target/i386/funcspec-5.c: Likewise.
	* gcc.target/i386/funcspec-6.c: Likewise.
	* gcc.target/i386/gcc-have-sync-compare-and-swap-1.c: Likewise.
	* gcc.target/i386/gcc-have-sync-compare-and-swap-2.c: Likewise.
	* gcc.target/i386/gcc-have-sync-compare-and-swap-3.c: Likewise.
	* gcc.target/i386/gcc-have-sync-compare-and-swap-4.c: Likewise.
	* gcc.target/i386/incoming-1.c: Likewise.
	* gcc.target/i386/incoming-10.c: Likewise.
	* gcc.target/i386/incoming-11.c: Likewise.
	* gcc.target/i386/incoming-12.c: Likewise.
	* gcc.target/i386/incoming-13.c: Likewise.
	* gcc.target/i386/incoming-14.c: Likewise.
	* gcc.target/i386/incoming-15.c: Likewise.
	* gcc.target/i386/incoming-2.c: Likewise.
	* gcc.target/i386/incoming-3.c: Likewise.
	* gcc.target/i386/incoming-4.c: Likewise.
	* gcc.target/i386/incoming-5.c: Likewise.
	* gcc.target/i386/incoming-6.c: Likewise.
	* gcc.target/i386/incoming-7.c: Likewise.
	* gcc.target/i386/incoming-8.c: Likewise.
	* gcc.target/i386/incoming-9.c: Likewise.
	* gcc.target/i386/lea.c: Likewise.
	* gcc.target/i386/local.c: Likewise.
	* gcc.target/i386/loop-1.c: Likewise.
	* gcc.target/i386/loop-2.c: Likewise.
	* gcc.target/i386/loop-3.c: Likewise.
	* gcc.target/i386/max-stack-align.c: Likewise.
	* gcc.target/i386/memcpy-1.c: Likewise.
	* gcc.target/i386/movbe-2.c: Likewise.
	* gcc.target/i386/movq-2.c: Likewise.
	* gcc.target/i386/movq.c: Likewise.
	* gcc.target/i386/nrv1.c: Likewise.
	* gcc.target/i386/pad-4.c: Likewise.
	* gcc.target/i386/pad-5a.c: Likewise.
	* gcc.target/i386/pad-5b.c: Likewise.
	* gcc.target/i386/pad-6a.c: Likewise.
	* gcc.target/i386/pad-6b.c: Likewise.
	* gcc.target/i386/pad-7.c: Likewise.
	* gcc.target/i386/pad-9.c: Likewise.
	* gcc.target/i386/pentium4-not-mull.c: Likewise.
	* gcc.target/i386/pic-1.c: Likewise.
	* gcc.target/i386/pr12092-1.c: Likewise.
	* gcc.target/i386/pr12329.c: Likewise.
	* gcc.target/i386/pr21518.c: Likewise.
	* gcc.target/i386/pr22362.c: Likewise.
	* gcc.target/i386/pr22585.c: Likewise.
	* gcc.target/i386/pr23098.c: Likewise.
	* gcc.target/i386/pr25196.c: Likewise.
	* gcc.target/i386/pr25293.c: Likewise.
	* gcc.target/i386/pr25654.c: Likewise.
	* gcc.target/i386/pr26449.c: Likewise.
	* gcc.target/i386/pr26778.c: Likewise.
	* gcc.target/i386/pr26826.c: Likewise.
	* gcc.target/i386/pr27266.c: Likewise.
	* gcc.target/i386/pr29978.c: Likewise.
	* gcc.target/i386/pr30505.c: Likewise.
	* gcc.target/i386/pr30961-1.c: Likewise.
	* gcc.target/i386/pr31628.c: Likewise.
	* gcc.target/i386/pr32000-2.c: Likewise.
	* gcc.target/i386/pr32661-1.c: Likewise.
	* gcc.target/i386/pr32708-2.c: Likewise.
	* gcc.target/i386/pr32708-3.c: Likewise.
	* gcc.target/i386/pr34256.c: Likewise.
	* gcc.target/i386/pr34312.c: Likewise.
	* gcc.target/i386/pr34522.c: Likewise.
	* gcc.target/i386/pr35160.c: Likewise.
	* gcc.target/i386/pr35281.c: Likewise.
	* gcc.target/i386/pr36246.c: Likewise.
	* gcc.target/i386/pr36786.c: Likewise.
	* gcc.target/i386/pr37275.c: Likewise.
	* gcc.target/i386/pr37843-3.c: Likewise.
	* gcc.target/i386/pr37843-4.c: Likewise.
	* gcc.target/i386/pr39082-1.c: Likewise.
	* gcc.target/i386/pr39431.c: Likewise.
	* gcc.target/i386/pr39496.c: Likewise.
	* gcc.target/i386/pr39543-2.c: Likewise.
	* gcc.target/i386/pr39911.c: Likewise.
	* gcc.target/i386/pr40718.c: Likewise.
	* gcc.target/i386/pr40906-1.c: Likewise.
	* gcc.target/i386/pr40906-2.c: Likewise.
	* gcc.target/i386/pr40906-3.c: Likewise.
	* gcc.target/i386/pr40934.c: Likewise.
	* gcc.target/i386/pr41900.c: Likewise.
	* gcc.target/i386/pr42589.c: Likewise.
	* gcc.target/i386/pr43662.c: Likewise.
	* gcc.target/i386/pr43671.c: Likewise.
	* gcc.target/i386/pr43766.c: Likewise.
	* gcc.target/i386/pr43869.c: Likewise.
	* gcc.target/i386/pr44942.c: Likewise.
	* gcc.target/i386/pr44948-2a.c: Likewise.
	* gcc.target/i386/pr45234.c: Likewise.
	* gcc.target/i386/pr45336-2.c: Likewise.
	* gcc.target/i386/pr45336-4.c: Likewise.
	* gcc.target/i386/pr45852.c: Likewise.
	* gcc.target/i386/pr46470.c: Likewise.
	* gcc.target/i386/pr48037-1.c: Likewise.
	* gcc.target/i386/pr48389.c: Likewise.
	* gcc.target/i386/pr49095.c: Likewise.
	* gcc.target/i386/pr9771-1.c: Likewise.
	* gcc.target/i386/rdfsbase-1.c: Likewise.
	* gcc.target/i386/rdfsbase-2.c: Likewise.
	* gcc.target/i386/rdgsbase-1.c: Likewise.
	* gcc.target/i386/rdgsbase-2.c: Likewise.
	* gcc.target/i386/rdrand-3.c: Likewise.
	* gcc.target/i386/regparm-stdcall.c: Likewise.
	* gcc.target/i386/regparm.c: Likewise.
	* gcc.target/i386/reload-1.c: Likewise.
	* gcc.target/i386/rotate-2.c: Likewise.
	* gcc.target/i386/sibcall-5.c: Likewise.
	* gcc.target/i386/signbit-1.c: Likewise.
	* gcc.target/i386/signbit-2.c: Likewise.
	* gcc.target/i386/signbit-3.c: Likewise.
	* gcc.target/i386/sse-5.c: Likewise.
	* gcc.target/i386/sse-8.c: Likewise.
	* gcc.target/i386/sse-cvtsi2ss-2.c: Likewise.
	* gcc.target/i386/sse-cvtss2si-2.c: Likewise.
	* gcc.target/i386/sse-cvttss2si-2.c: Likewise.
	* gcc.target/i386/sse2-cvtsd2si-2.c: Likewise.
	* gcc.target/i386/sse2-cvtsi2sd-2.c: Likewise.
	* gcc.target/i386/sse2-cvttsd2si-2.c: Likewise.
	* gcc.target/i386/sse2-init-v2di-2.c: Likewise.
	* gcc.target/i386/sse2-movq-2.c: Likewise.
	* gcc.target/i386/sse2-movq-3.c: Likewise.
	* gcc.target/i386/sse4_1-insertps-3.c: Likewise.
	* gcc.target/i386/sse4_1-pextrq.c: Likewise.
	* gcc.target/i386/sse4_1-pinsrq.c: Likewise.
	* gcc.target/i386/sse4_2-crc32q.c: Likewise.
	* gcc.target/i386/sse4_2-popcntq.c: Likewise.
	* gcc.target/i386/ssefn-1.c: Likewise.
	* gcc.target/i386/ssefn-2.c: Likewise.
	* gcc.target/i386/sseregparm-1.c: Likewise.
	* gcc.target/i386/sseregparm-2.c: Likewise.
	* gcc.target/i386/sseregparm-3.c: Likewise.
	* gcc.target/i386/sseregparm-4.c: Likewise.
	* gcc.target/i386/sseregparm-5.c: Likewise.
	* gcc.target/i386/sseregparm-6.c: Likewise.
	* gcc.target/i386/sseregparm-7.c: Likewise.
	* gcc.target/i386/sseregparm-8.c: Likewise.
	* gcc.target/i386/stack-realign.c: Likewise.
	* gcc.target/i386/stack-usage-realign.c: Likewise.
	* gcc.target/i386/stackalign/asm-1.c: Likewise.
	* gcc.target/i386/stackalign/longlong-1.c: Likewise.
	* gcc.target/i386/stackalign/longlong-2.c: Likewise.
	* gcc.target/i386/stackalign/return-1.c: Likewise.
	* gcc.target/i386/stackalign/return-2.c: Likewise.
	* gcc.target/i386/stackalign/return-3.c: Likewise.
	* gcc.target/i386/tailcall-1.c: Likewise.
	* gcc.target/i386/tbm-2.c: Likewise.
	* gcc.target/i386/udivmod-7.c: Likewise.
	* gcc.target/i386/udivmod-8.c: Likewise.
	* gcc.target/i386/unroll-1.c: Likewise.
	* gcc.target/i386/vararg-1.c: Likewise.
	* gcc.target/i386/vararg-2.c: Likewise.
	* gcc.target/i386/vect8-ret.c: Likewise.
	* gcc.target/i386/vectorize5.c: Likewise.
	* gcc.target/i386/wmul-1.c: Likewise.
	* gcc.target/i386/wmul-2.c: Likewise.
	* gcc.target/i386/wrfsbase-1.c: Likewise.
	* gcc.target/i386/wrfsbase-2.c: Likewise.
	* gcc.target/i386/wrgsbase-1.c: Likewise.
	* gcc.target/i386/wrgsbase-2.c: Likewise.
	* gcc.target/i386/xop-pcmov.c: Likewise.
	* gcc.target/i386/xop-pcmov2.c: Likewise.
	* gcc.target/i386/xop-rotate1-vector.c: Likewise.
	* gcc.target/i386/xop-rotate2-vector.c: Likewise.
	* gcc.target/i386/xop-rotate3-vector.c: Likewise.
	* gcc.target/i386/xop-shift1-vector.c: Likewise.
	* gcc.target/i386/xop-shift2-vector.c: Likewise.
	* gcc.target/i386/xop-shift3-vector.c: Likewise.
	* gcc.target/i386/zee.c: Likewise.
	* gcc.target/x86_64/abi/callabi/callabi.exp: Likewise.
	* gfortran.dg/compiler-directive_2.f: Likewise.
	* gfortran.dg/g77/20010216-1.f: Likewise.
	* gfortran.dg/gomp/pr39152.f90: Likewise.
	* gfortran.dg/pr33794.f90: Likewise.

[-- Attachment #2: gcc-x32-test-1.patch.bz2 --]
[-- Type: application/x-bzip2, Size: 23238 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 18:33   ` H.J. Lu
@ 2011-07-07 20:33     ` Mike Stump
  2011-07-07 20:58       ` H.J. Lu
  0 siblings, 1 reply; 16+ messages in thread
From: Mike Stump @ 2011-07-07 20:33 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches, Uros Bizjak, ro

On Jul 7, 2011, at 11:26 AM, H.J. Lu wrote:
> -/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-* x86_64-*-* } || { powerpc*-*-* && ilp32 } } } } */
> +/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-* x86_64-*-* } || { powerpc*-*-* && ia32 } } } } */

powerpc doesn't have an ia32 product?

I think this shouldn't change?

> -/* Disable the test entirely for 16-bit targets.  */
> -#if __INT_MAX__ > 32767
> +/* Disable the test entirely for 16-bit and x32 targets.  */
> +#if __INT_MAX__ > 32767 && (!defined __x86_64__ || defined __LP64__)

While not too important, might a dg-skip-if line be easier to read and understand?

> -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } } } */
> +/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } && { ! x32 } } } } */


Hum, I worry about x86 walking away with large amounts of symbol space.  Please change to x86 && x32 or x86_x32.

> -/* { dg-do compile } */
> +/* { dg-do compile { target { x32 || lp64 } } } */

Likewise.


> OK for trunk?

Aside from the points above points, Ok.  Please give Uros a day or two to weigh in with his comments.  I'm expecting that he's fine with the patch.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 20:33     ` Mike Stump
@ 2011-07-07 20:58       ` H.J. Lu
  2011-07-07 21:12         ` H.J. Lu
  0 siblings, 1 reply; 16+ messages in thread
From: H.J. Lu @ 2011-07-07 20:58 UTC (permalink / raw)
  To: Mike Stump; +Cc: gcc-patches, Uros Bizjak, ro

On Thu, Jul 7, 2011 at 1:27 PM, Mike Stump <mikestump@comcast.net> wrote:
> On Jul 7, 2011, at 11:26 AM, H.J. Lu wrote:
>> -/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-* x86_64-*-* } || { powerpc*-*-* && ilp32 } } } } */
>> +/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-* x86_64-*-* } || { powerpc*-*-* && ia32 } } } } */
>
> powerpc doesn't have an ia32 product?
>
> I think this shouldn't change?

Fixed.

>> -/* Disable the test entirely for 16-bit targets.  */
>> -#if __INT_MAX__ > 32767
>> +/* Disable the test entirely for 16-bit and x32 targets.  */
>> +#if __INT_MAX__ > 32767 && (!defined __x86_64__ || defined __LP64__)
>
> While not too important, might a dg-skip-if line be easier to read and understand?

Done.

>> -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } } } */
>> +/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } && { ! x32 } } } } */
>
>
> Hum, I worry about x86 walking away with large amounts of symbol space.  Please change to x86 && x32 or x86_x32.

gcc.dg/lower-subreg-1.c tests long long using on ilp32 targets.  It
should be skipped on x32 similar to ia64, spu and mips.  I don''t
know how x86 && x32 or x86_x32 will help here.

>> -/* { dg-do compile } */
>> +/* { dg-do compile { target { x32 || lp64 } } } */
>
> Likewise.

gcc.dg/pr44194-1.c is tested if a target returns structures in register.
Can you tell me how I can enable it for x32?

Thanks.

-- 
H.J.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 20:58       ` H.J. Lu
@ 2011-07-07 21:12         ` H.J. Lu
  2011-07-07 21:32           ` H.J. Lu
  0 siblings, 1 reply; 16+ messages in thread
From: H.J. Lu @ 2011-07-07 21:12 UTC (permalink / raw)
  To: Mike Stump; +Cc: gcc-patches, Uros Bizjak, ro

On Thu, Jul 7, 2011 at 1:56 PM, H.J. Lu <hjl.tools@gmail.com> wrote:

>
>>> -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } } } */
>>> +/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } && { ! x32 } } } } */
>>
>>
>> Hum, I worry about x86 walking away with large amounts of symbol space.  Please change to x86 && x32 or x86_x32.
>
> gcc.dg/lower-subreg-1.c tests long long using on ilp32 targets.  It
> should be skipped on x32 similar to ia64, spu and mips.  I don''t
> know how x86 && x32 or x86_x32 will help here.
>
>>> -/* { dg-do compile } */
>>> +/* { dg-do compile { target { x32 || lp64 } } } */
>>
>> Likewise.
>
> gcc.dg/pr44194-1.c is tested if a target returns structures in register.
> Can you tell me how I can enable it for x32?
>

I will fix them.


-- 
H.J.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 21:12         ` H.J. Lu
@ 2011-07-07 21:32           ` H.J. Lu
  2011-07-07 22:20             ` Mike Stump
  2011-07-08  0:17             ` H.J. Lu
  0 siblings, 2 replies; 16+ messages in thread
From: H.J. Lu @ 2011-07-07 21:32 UTC (permalink / raw)
  To: Mike Stump; +Cc: gcc-patches, Uros Bizjak, ro

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

On Thu, Jul 7, 2011 at 1:57 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Thu, Jul 7, 2011 at 1:56 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>
>>
>>>> -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } } } */
>>>> +/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } && { ! x32 } } } } */
>>>
>>>
>>> Hum, I worry about x86 walking away with large amounts of symbol space.  Please change to x86 && x32 or x86_x32.
>>
>> gcc.dg/lower-subreg-1.c tests long long using on ilp32 targets.  It
>> should be skipped on x32 similar to ia64, spu and mips.  I don''t
>> know how x86 && x32 or x86_x32 will help here.
>>
>>>> -/* { dg-do compile } */
>>>> +/* { dg-do compile { target { x32 || lp64 } } } */
>>>
>>> Likewise.
>>
>> gcc.dg/pr44194-1.c is tested if a target returns structures in register.
>> Can you tell me how I can enable it for x32?
>>
>
> I will fix them.

Here is the updated patch.  I will wait for Uros's comments.

Thanks.



-- 
H.J.

[-- Attachment #2: gcc-x32-test-2.patch.cl --]
[-- Type: application/simple-filter+xml, Size: 16292 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 21:32           ` H.J. Lu
@ 2011-07-07 22:20             ` Mike Stump
  2011-07-07 22:26               ` H.J. Lu
  2011-07-08  0:17             ` H.J. Lu
  1 sibling, 1 reply; 16+ messages in thread
From: Mike Stump @ 2011-07-07 22:20 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches, Uros Bizjak, ro

On Jul 7, 2011, at 2:12 PM, H.J. Lu wrote:
> Here is the updated patch.  I will wait for Uros's comments.

Please remove ChangeLog for lower-subreg-1.c and pr44194-1.c, as I don't think those files are modified anymore.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 22:20             ` Mike Stump
@ 2011-07-07 22:26               ` H.J. Lu
  2011-07-07 23:04                 ` Mike Stump
  0 siblings, 1 reply; 16+ messages in thread
From: H.J. Lu @ 2011-07-07 22:26 UTC (permalink / raw)
  To: Mike Stump; +Cc: gcc-patches, Uros Bizjak, ro

On Thu, Jul 7, 2011 at 2:58 PM, Mike Stump <mikestump@comcast.net> wrote:
> On Jul 7, 2011, at 2:12 PM, H.J. Lu wrote:
>> Here is the updated patch.  I will wait for Uros's comments.
>
> Please remove ChangeLog for lower-subreg-1.c and pr44194-1.c, as I don't think those files are modified anymore.

They are modified.

-- 
H.J.
---
diff --git a/gcc/testsuite/gcc.dg/lower-subreg-1.c
b/gcc/testsuite/gcc.dg/lower-subreg-1.c
index 4de90bd..441627f 100644
--- a/gcc/testsuite/gcc.dg/lower-subreg-1.c
+++ b/gcc/testsuite/gcc.dg/lower-subreg-1.c
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && {
! spu-*-* } } } } */
+/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } &&
{ ! spu-*-* } } && { ! { { i?86-*-* x86_64-*-* } && x32 } } } } } */
 /* { dg-options "-O -fdump-rtl-subreg1" } */
 /* { dg-require-effective-target ilp32 } */

diff --git a/gcc/testsuite/gcc.dg/pr44194-1.c b/gcc/testsuite/gcc.dg/pr44194-1.c
index 4804d83..cb65363 100644
--- a/gcc/testsuite/gcc.dg/pr44194-1.c
+++ b/gcc/testsuite/gcc.dg/pr44194-1.c
@@ -1,6 +1,5 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { { { i?86-*-* x86_64-*-* } && x32 } ||
lp64 } } } */
 /* { dg-options "-O2 -fdump-rtl-dse1" } */
-/* { dg-require-effective-target lp64 } */
 /* Restricting to 64-bit targets since 32-bit targets return
    structures in memory.  */

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 22:26               ` H.J. Lu
@ 2011-07-07 23:04                 ` Mike Stump
  0 siblings, 0 replies; 16+ messages in thread
From: Mike Stump @ 2011-07-07 23:04 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches, Uros Bizjak, ro

On Jul 7, 2011, at 3:20 PM, H.J. Lu wrote:
> -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && {
> ! spu-*-* } } } } */
> +/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } &&
> { ! spu-*-* } } && { ! { { i?86-*-* x86_64-*-* } && x32 } } } } } */

> -/* { dg-do compile } */
> +/* { dg-do compile { target { { { i?86-*-* x86_64-*-* } && x32 } ||
> lp64 } } } */
> /* { dg-options "-O2 -fdump-rtl-dse1" } */
> -/* { dg-require-effective-target lp64 } */


Perfect, thanks.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-07 21:32           ` H.J. Lu
  2011-07-07 22:20             ` Mike Stump
@ 2011-07-08  0:17             ` H.J. Lu
  2011-07-08  9:21               ` Uros Bizjak
  1 sibling, 1 reply; 16+ messages in thread
From: H.J. Lu @ 2011-07-08  0:17 UTC (permalink / raw)
  To: Mike Stump; +Cc: gcc-patches, Uros Bizjak, ro

[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]

On Thu, Jul 7, 2011 at 2:12 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Thu, Jul 7, 2011 at 1:57 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Thu, Jul 7, 2011 at 1:56 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>>
>>>
>>>>> -/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } } } */
>>>>> +/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } && { ! spu-*-* } } && { ! x32 } } } } */
>>>>
>>>>
>>>> Hum, I worry about x86 walking away with large amounts of symbol space.  Please change to x86 && x32 or x86_x32.
>>>
>>> gcc.dg/lower-subreg-1.c tests long long using on ilp32 targets.  It
>>> should be skipped on x32 similar to ia64, spu and mips.  I don''t
>>> know how x86 && x32 or x86_x32 will help here.
>>>
>>>>> -/* { dg-do compile } */
>>>>> +/* { dg-do compile { target { x32 || lp64 } } } */
>>>>
>>>> Likewise.
>>>
>>> gcc.dg/pr44194-1.c is tested if a target returns structures in register.
>>> Can you tell me how I can enable it for x32?
>>>
>>
>> I will fix them.
>
> Here is the updated patch.  I will wait for Uros's comments.
>

I attached the wrong file.  Here is the updated patch.



-- 
H.J.

[-- Attachment #2: gcc-x32-test-2.patch.bz2 --]
[-- Type: application/x-bzip2, Size: 23230 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Support -mx32 in GCC tests
  2011-07-08  0:17             ` H.J. Lu
@ 2011-07-08  9:21               ` Uros Bizjak
  0 siblings, 0 replies; 16+ messages in thread
From: Uros Bizjak @ 2011-07-08  9:21 UTC (permalink / raw)
  To: H.J. Lu; +Cc: Mike Stump, gcc-patches, ro

On Fri, Jul 8, 2011 at 1:03 AM, H.J. Lu <hjl.tools@gmail.com> wrote:

>> Here is the updated patch.  I will wait for Uros's comments.
>>
>
> I attached the wrong file.  Here is the updated patch.

--- a/gcc/testsuite/g++.dg/abi/bitfield3.C
+++ b/gcc/testsuite/g++.dg/abi/bitfield3.C
@@ -4,7 +4,7 @@
 // Cygwin and mingw32 default to MASK_ALIGN_DOUBLE. Override to ensure
 // 4-byte alignment.
 // { dg-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-mingw* } }
-// { dg-require-effective-target ilp32 }
+// { dg-require-effective-target ia32 }

Please rather change dg-do run command to:

+// { dg-do <...> { target { { i?86-*-* x86_64-*-* } && ia32 } } }

and remove dg-require-effective-target entirely. This will ease
grepping for certain target considerably.

+++ b/gcc/testsuite/g++.dg/ext/attrib8.C
+++ b/gcc/testsuite/g++.dg/ext/tmplattr1.C
+++ b/gcc/testsuite/g++.dg/inherit/override-attribs.C
+++ b/gcc/testsuite/g++.dg/opt/life1.C
+++ b/gcc/testsuite/g++.dg/opt/nrv12.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib1.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib2.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/asm2.C
+++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-28.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/prefetch-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/prefetch-4.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/prefetch-5.c
... and many more.

Same here.

--- a/gcc/testsuite/gcc.dg/20020103-1.c
+++ b/gcc/testsuite/gcc.dg/20020103-1.c
@@ -1,6 +1,6 @@
 /* Verify that constant equivalences get reloaded properly, either by being
    spilled to the stack, or regenerated, but not dropped to memory.  */
-/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-*
x86_64-*-* } || { powerpc*-*-* && ilp32 } } } } */
+/* { dg-do compile { target { { i?86-*-* rs6000-*-* alpha*-*-*
x86_64-*-* } || { powerpc*-*-* && ia32 } } } } */

Wrong change.

--- a/gcc/testsuite/gcc.dg/pr25023.c
+++ b/gcc/testsuite/gcc.dg/pr25023.c
@@ -1,7 +1,7 @@
 /* PR debug/25023 */
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
-/* { dg-options "-O2 -mtune=i686" { target { { i?86-*-* || x86_64-*-*
} && ilp32 } } } */
+/* { dg-options "-O2 -mtune=i686" { target { { i?86-*-* || x86_64-*-*
} && ia32 } } } */

Please also remove || in the target string.

--- a/gcc/testsuite/gcc.dg/lower-subreg-1.c
+++ b/gcc/testsuite/gcc.dg/lower-subreg-1.c
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { { { ! mips64 } && { ! ia64-*-* } } && {
! spu-*-* } } } } */
+/* { dg-do compile { target { { { { ! mips64 } && { ! ia64-*-* } } &&
{ ! spu-*-* } } && { ! { { i?86-*-* x86_64-*-* } && x32 } } } } } */
 /* { dg-options "-O -fdump-rtl-subreg1" } */
 /* { dg-require-effective-target ilp32 } */

This change is still present in updated patch, please change according
to Mike's comments. I'd prefer skip-if there, BTW.


BTW: What about using ... && { ! ia32 } instead of ... &&  { x32 || lp64 }  in

+/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && { x32 ||
lp64 } } } } */

This will IMO future-proof the testcases.

Otherwise, the patch looks OK to me.

Uros.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* PATCH: Check ia32 in GCC tests
  2011-07-07 17:38 PATCH: Support -mx32 in GCC tests H.J. Lu
  2011-07-07 18:07 ` Mike Stump
@ 2011-07-10  9:34 ` H.J. Lu
  2011-07-10 10:02   ` H.J. Lu
  2011-07-11  7:48   ` Mike Stump
  1 sibling, 2 replies; 16+ messages in thread
From: H.J. Lu @ 2011-07-10  9:34 UTC (permalink / raw)
  To: gcc-patches, Uros Bizjak, mikestump

On Thu, Jul 07, 2011 at 10:29:53AM -0700, H.J. Lu wrote:
> Hi,
> 
> On Linux/x86-64, when we pass
> 
> RUNTESTFLAGS="--target_board='unix{-mx32}'"
> 
> to GCC tests, we can't check lp64/ilp32 for availability of 64bit x86
> instructions.  This patch adds ia32 and x32 effetive targets.  OK for
> trunk?
> 

Here is a followup patch to use ia32 effetive target.  OK for trunk?

Thanks.


H.J.
--
2011-07-09  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp: Check
	ia32.
	* go.test/go-test.exp (go-set-goarch): Likewise.

diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp
index a11aa3b..1a22e7d 100644
--- a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp
@@ -22,7 +22,7 @@ load_lib gcc-dg.exp
 
 # Exit immediately if this isn't a x86 target.
 if { (![istarget x86_64-*-*] && ![istarget i?86-*-*])
-     || (![is-effective-target x32] && ![is-effective-target lp64]) } then {
+     || [is-effective-target ia32] } then {
   return
 }
 
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index f0285a2..5057dee 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -134,7 +134,7 @@ proc go-set-goarch { } {
 	}
 	"i?86-*-*" -
 	"x86_64-*-*" {
-	    if [check_effective_target_ilp32] {
+	    if { [check_effective_target_ia32] } {
 		set goarch "386"
 	    } else {
 		set goarch "amd64"

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Check ia32 in GCC tests
  2011-07-10  9:34 ` PATCH: Check ia32 " H.J. Lu
@ 2011-07-10 10:02   ` H.J. Lu
  2011-07-11  7:49     ` Mike Stump
  2011-07-11  7:48   ` Mike Stump
  1 sibling, 1 reply; 16+ messages in thread
From: H.J. Lu @ 2011-07-10 10:02 UTC (permalink / raw)
  To: gcc-patches, Uros Bizjak, mikestump

On Sat, Jul 09, 2011 at 07:22:18PM -0700, H.J. Lu wrote:
> On Thu, Jul 07, 2011 at 10:29:53AM -0700, H.J. Lu wrote:
> > Hi,
> > 
> > On Linux/x86-64, when we pass
> > 
> > RUNTESTFLAGS="--target_board='unix{-mx32}'"
> > 
> > to GCC tests, we can't check lp64/ilp32 for availability of 64bit x86
> > instructions.  This patch adds ia32 and x32 effetive targets.  OK for
> > trunk?
> > 
> 
> Here is a followup patch to use ia32 effetive target.  OK for trunk?
> 
> Thanks.
> 
> 
> H.J.
> --
> 2011-07-09  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp: Check
> 	ia32.
> 	* go.test/go-test.exp (go-set-goarch): Likewise.
> 

A small update.

H.J.
----
2011-07-09  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp: Check
	ia32.
	* go.test/go-test.exp (go-set-goarch): Likewise.

diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp
index a11aa3b..1a22e7d 100644
--- a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp
@@ -22,7 +22,7 @@ load_lib gcc-dg.exp
 
 # Exit immediately if this isn't a x86 target.
 if { (![istarget x86_64-*-*] && ![istarget i?86-*-*])
-     || (![is-effective-target x32] && ![is-effective-target lp64]) } then {
+     || [is-effective-target ia32] } then {
   return
 }
 
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index f0285a2..f5f2e60 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -134,7 +134,7 @@ proc go-set-goarch { } {
 	}
 	"i?86-*-*" -
 	"x86_64-*-*" {
-	    if [check_effective_target_ilp32] {
+	    if [check_effective_target_ia32] {
 		set goarch "386"
 	    } else {
 		set goarch "amd64"

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Check ia32 in GCC tests
  2011-07-10  9:34 ` PATCH: Check ia32 " H.J. Lu
  2011-07-10 10:02   ` H.J. Lu
@ 2011-07-11  7:48   ` Mike Stump
  1 sibling, 0 replies; 16+ messages in thread
From: Mike Stump @ 2011-07-11  7:48 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches, Uros Bizjak

On Jul 9, 2011, at 7:22 PM, H.J. Lu wrote:
> On Thu, Jul 07, 2011 at 10:29:53AM -0700, H.J. Lu wrote:
>> Hi,
>> 
>> On Linux/x86-64, when we pass
>> 
>> RUNTESTFLAGS="--target_board='unix{-mx32}'"
>> 
>> to GCC tests, we can't check lp64/ilp32 for availability of 64bit x86
>> instructions.  This patch adds ia32 and x32 effetive targets.  OK for
>> trunk?
>> 
> 
> Here is a followup patch to use ia32 effetive target.  OK for trunk?

Ok.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: PATCH: Check ia32 in GCC tests
  2011-07-10 10:02   ` H.J. Lu
@ 2011-07-11  7:49     ` Mike Stump
  0 siblings, 0 replies; 16+ messages in thread
From: Mike Stump @ 2011-07-11  7:49 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gcc-patches, Uros Bizjak

On Jul 9, 2011, at 7:25 PM, H.J. Lu wrote:
>> 2011-07-09  H.J. Lu  <hongjiu.lu@intel.com>
>> 
>> 	* gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp: Check
>> 	ia32.
>> 	* go.test/go-test.exp (go-set-goarch): Likewise.
>> 
> 
> A small update.

Ok.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-07-11  6:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-07 17:38 PATCH: Support -mx32 in GCC tests H.J. Lu
2011-07-07 18:07 ` Mike Stump
2011-07-07 18:33   ` H.J. Lu
2011-07-07 20:33     ` Mike Stump
2011-07-07 20:58       ` H.J. Lu
2011-07-07 21:12         ` H.J. Lu
2011-07-07 21:32           ` H.J. Lu
2011-07-07 22:20             ` Mike Stump
2011-07-07 22:26               ` H.J. Lu
2011-07-07 23:04                 ` Mike Stump
2011-07-08  0:17             ` H.J. Lu
2011-07-08  9:21               ` Uros Bizjak
2011-07-10  9:34 ` PATCH: Check ia32 " H.J. Lu
2011-07-10 10:02   ` H.J. Lu
2011-07-11  7:49     ` Mike Stump
2011-07-11  7:48   ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).