[llvm-commits] [llvm-gcc-4.2] r62488 - in /llvm-gcc-4.2/trunk/gcc/testsuite: ./ g++.apple/ gcc.apple/ gcc.c-torture/compile/ gcc.c-torture/execute/ gcc.target/i386/ gcc.target/x86_64/abi/ obj-c++.dg/ objc.dg/
Bill Wendling
isanbard at gmail.com
Sun Jan 18 19:29:12 PST 2009
Author: void
Date: Sun Jan 18 21:29:10 2009
New Revision: 62488
URL: http://llvm.org/viewvc/llvm-project?rev=62488&view=rev
Log:
Update testcases to Apple GCC 5636.
Added:
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/6414738.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13-64bit.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-call-with-sideeffect.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-return-type-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/r6476836.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/typedef.C
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6382081.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6440204.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13-64bit.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-call-with-sideeffect.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-copy-attrib-err.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-err-hidden-arg.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-unique-name.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/debug-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/overflow.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/warn-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr17377.x
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs.x
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs_and_unions.x
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/apple-runtime-test.mm
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/global-obj.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/warn-1.m
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog.apple
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-30.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-67.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcglobal.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcivar.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcstrongcast.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgc-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgc.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgcivar.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-bad-def.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-property-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-property-2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-storageclass.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-3.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-4.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-5.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-6.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-7.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-byref-block.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-codegen-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-conditional-test.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-copyconstructor.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-destructors.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-dynamic-array.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-enum.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-do.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-for.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-for1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-nested-while.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-return.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-return1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-switch.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-while.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-return-type.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-this.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-block.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref-2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-helloworld.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-id-block.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-id-global-block.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-implicit-byref.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-in-foreach-header.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-in_structors.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-ivarlayout.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-localisglobal.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-block-var.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-3.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-global-copied-var-2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-global.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-no-trampoline.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-3.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nullblockisa.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-objectassign.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-pointer-type.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-readweakgc.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-readweakgcivar.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-reference-in-method.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-weakblock.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-weakblockassign.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/kext-weak.C
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-30.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-6116917.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcglobal.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcivar.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcstrongcast.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgcivar.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-storageclass.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-3.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-4.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-5.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-6.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-7.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-byref-block.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-codegen-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-conditional-test.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-dynamic-array.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-enum.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-do.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-nested-while.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-switch.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-while.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-block.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-block.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-global-block.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-implicit-byref.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-in-foreach-header.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-ivarlayout.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-local-static-test.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-localisglobal.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-block-var.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-3.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global-copied-var-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-no-trampoline.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-3.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nullblockisa.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-objectassign.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-pointer-type.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-question-exp.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgc.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgcivar.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblock.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblockassign.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/compile/pr27528.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/cmov1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/mul.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-3.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-5.c
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-test-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-8.m
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog.apple
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog.apple?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog.apple (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog.apple Sun Jan 18 21:29:10 2009
@@ -1,3 +1,66 @@
+2009-01-12 Caroline Tice <ctice at apple.com>
+
+ Radar 6476836
+ * g++.apple/r6476836.C: New testcase.
+
+2009-01-07 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 6379842
+ * gcc.apple/block-copy-attrib-err.c: New
+
+2008-12-18 Stuart Hastings <stuart at apple.com>
+
+ Radar 6440204
+ * gcc.apple/6440204.c: New.
+
+2008-12-11 Caroline Tice <ctice at apple.com>
+
+ Radars 5964438, 6007135
+ * g++.apple/typedef.C: New testcase.
+
+2008-12-09 Stuart Hastings <stuart at apple.com>
+
+ Radar 6414738
+ * g++.apple/6414738.C: New.
+
+2008-12-05 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 6413140
+ * gcc.apple/block-explicit-return-type.c: Modified
+ * gcc.apple/block-literal.c: Modified
+ * g++.apple/block-bad-def.C: Modified
+ * g++.apple/block-explicit-return-type.C: Modified
+ * g++.apple/block-return.C: Modified
+ * g++.apple/block-literal.C: Modified
+
+2008-12-02 Caroline Tice <ctice at apple.com>
+
+ Radar 6386976
+ * objc.dg/objc2-ivar-test-1.m: Modify to check for
+ DW_AT_APPLE_major_runtime_vers and DW_AT_APPLE_runtime_class.
+ * obj-c++.dg/apple-runtime-test.mm: New test.
+
+2008-12-02 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 6411649
+ * gcc.apple/block-unique-name.c: Add
+
+2008-12-02 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 6396238
+ * gcc.apple/block-call-with-sideeffect.c: Add
+ * g++.apple/block-call-with-sideeffect.C: Add
+
+2008-12-01 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 6404979
+ * gcc.apple/block-err-hidden-arg.c: New.
+
+2008-12-01 Stuart Hastings <stuart at apple.com>
+
+ Radar 6382081
+ * gcc.apple/6382081.c: New.
+
2008-11-18 Stuart Hastings <stuart at apple.com>
Radar 6385223
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/6414738.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/6414738.C?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/6414738.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/6414738.C Sun Jan 18 21:29:10 2009
@@ -0,0 +1,35 @@
+/* APPLE LOCAL file 6414738 */
+/* { dg-do compile } */
+/* { dg-options "-O3 -fomit-frame-pointer -gdwarf-2 -fno-exceptions" } */
+struct TheStructure { void *memberVoidStar; };
+
+int function(...) {
+ TheStructure *theStructureStar = (TheStructure*)&&secondComputedLabel;
+ goto *&&firstComputedLabel;
+
+firstComputedLabel:
+ ++theStructureStar;
+ function() ? function() : function();
+ goto *(++theStructureStar)->memberVoidStar;
+
+secondComputedLabel:
+ ++theStructureStar;
+ TheStructure *theOtherStructureStar = *(TheStructure**)&&thirdComputedLabel;
+ if (function() && theOtherStructureStar)
+ goto *theStructureStar;
+
+ void *voidStar = *(void**)&&lastComputedLabel;
+ if (function())
+ goto firstLabel;
+
+ function(voidStar);
+
+thirdComputedLabel:
+ ++theStructureStar;
+
+lastComputedLabel:
+ goto *(++theStructureStar);
+
+firstLabel:
+ goto *theStructureStar->memberVoidStar;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13-64bit.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-13-64bit.C?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13-64bit.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13-64bit.C Sun Jan 18 21:29:10 2009
@@ -0,0 +1,1235 @@
+/* APPLE LOCAL file CW asm blocks */
+/* { dg-do assemble { target i?86*-*-darwin* x86_64-*-darwin* } } */
+/* { dg-options { -m64 -fasm-blocks -msse3 } } */
+/* Radar 6276417 */
+
+char fooc; short foos; int fooi; long long fooll; float foof; double food; long double foold;
+asm void bar() { fool:
+ adc eax, 1
+ adc fool, 1
+ adc eax, eax
+ adc fool, eax
+ adc eax, fool
+ add eax, 1
+ add fool, 1
+ add eax, eax
+ add fool, eax
+ add eax, fool
+ addpd xmm0, xmm0
+ addpd xmm0, fool
+ addps xmm0, xmm0
+ addps xmm0, fool
+ addsd xmm0, xmm0
+ addsd xmm0, fool
+ addss xmm0, xmm0
+ addss xmm0, fool
+ addsubpd xmm0, xmm0
+ addsubpd xmm0, fool
+ addsubps xmm0, xmm0
+ addsubps xmm0, fool
+ and eax, 1
+ and fool, 1
+ and eax, eax
+ and fool, eax
+ and eax, fool
+ andnpd xmm0, xmm0
+ andnpd xmm0, fool
+ andnps xmm0, xmm0
+ andnps xmm0, fool
+ andpd xmm0, xmm0
+ andpd xmm0, fool
+ andps xmm0, xmm0
+ andps xmm0, fool
+ ; arpl ax, ax
+ ; arpl foos, ax
+ bsf eax, eax
+ bsf eax, fool
+ bsr eax, eax
+ bsr eax, fool
+ bt eax, eax
+ bt fool, eax
+ bt eax, 1
+ bt fool, 1
+ btc eax, eax
+ btc fool, eax
+ btc eax, 1
+ btc fool, 1
+ btr eax, eax
+ btr fool, eax
+ btr eax, 1
+ btr fool, 1
+ bts eax, eax
+ bts fool, eax
+ bts eax, 1
+ bts fool, 1
+ ; call eax
+ ; call fool
+ ; call fool
+ clflush fool
+ cmova ax, ax
+ cmova ax, foos
+ cmova eax, eax
+ cmova eax, fooi
+ cmova rax, rax
+ cmova rax, fooll
+ cmovae eax, eax
+ cmovae eax, fool
+ cmovb eax, eax
+ cmovb eax, fool
+ cmovbe eax, eax
+ cmovbe eax, fool
+ cmovc eax, eax
+ cmovc eax, fool
+ cmove eax, eax
+ cmove eax, fool
+ cmovg eax, eax
+ cmovg eax, fool
+ cmovge eax, eax
+ cmovge eax, fool
+ cmovl eax, eax
+ cmovl eax, fool
+ cmovle eax, eax
+ cmovle eax, fool
+ cmovna eax, eax
+ cmovna eax, fool
+ cmovnae eax, eax
+ cmovnae eax, fool
+ cmovnb eax, eax
+ cmovnb eax, fool
+ cmovnbe eax, eax
+ cmovnbe eax, fool
+ cmovnc eax, eax
+ cmovnc eax, fool
+ cmovne eax, eax
+ cmovne eax, fool
+ cmovng eax, eax
+ cmovng eax, fool
+ cmovnge eax, eax
+ cmovnge eax, fool
+ cmovnl eax, eax
+ cmovnl eax, fool
+ cmovnle eax, eax
+ cmovnle eax, fool
+ cmovno eax, eax
+ cmovno eax, fool
+ cmovnp eax, eax
+ cmovnp eax, fool
+ cmovns eax, eax
+ cmovns eax, fool
+ cmovnz eax, eax
+ cmovnz eax, fool
+ cmovo eax, eax
+ cmovo eax, fool
+ cmovp eax, eax
+ cmovp eax, fool
+ cmovpe eax, eax
+ cmovpe eax, fool
+ cmovpo eax, eax
+ cmovpo eax, fool
+ cmovs eax, eax
+ cmovs eax, fool
+ cmovz eax, eax
+ cmovz eax, fool
+ cmp eax, 1
+ cmp fool, 1
+ cmp eax, eax
+ cmp fool, eax
+ cmp eax, fool
+ cmpeqpd xmm0, xmm0
+ cmpeqpd xmm0, fool
+ cmpeqps xmm0, xmm0
+ cmpeqps xmm0, fool
+ cmpeqsd xmm0, xmm0
+ cmpeqsd xmm0, fool
+ cmpeqss xmm0, xmm0
+ cmpeqss xmm0, fool
+ cmplepd xmm0, xmm0
+ cmplepd xmm0, fool
+ cmpleps xmm0, xmm0
+ cmpleps xmm0, fool
+ cmplesd xmm0, xmm0
+ cmplesd xmm0, fool
+ cmpless xmm0, xmm0
+ cmpless xmm0, fool
+ cmpltpd xmm0, xmm0
+ cmpltpd xmm0, fool
+ cmpltps xmm0, xmm0
+ cmpltps xmm0, fool
+ cmpltsd xmm0, xmm0
+ cmpltsd xmm0, fool
+ cmpltss xmm0, xmm0
+ cmpltss xmm0, fool
+ cmpneqpd xmm0, xmm0
+ cmpneqpd xmm0, fool
+ cmpneqps xmm0, xmm0
+ cmpneqps xmm0, fool
+ cmpneqsd xmm0, xmm0
+ cmpneqsd xmm0, fool
+ cmpneqss xmm0, xmm0
+ cmpneqss xmm0, fool
+ cmpnlepd xmm0, xmm0
+ cmpnlepd xmm0, fool
+ cmpnleps xmm0, xmm0
+ cmpnleps xmm0, fool
+ cmpnlesd xmm0, xmm0
+ cmpnlesd xmm0, fool
+ cmpnless xmm0, xmm0
+ cmpnless xmm0, fool
+ cmpnltpd xmm0, xmm0
+ cmpnltpd xmm0, fool
+ cmpnltps xmm0, xmm0
+ cmpnltps xmm0, fool
+ cmpnltsd xmm0, xmm0
+ cmpnltsd xmm0, fool
+ cmpnltss xmm0, xmm0
+ cmpnltss xmm0, fool
+ cmpordpd xmm0, xmm0
+ cmpordpd xmm0, fool
+ cmpordps xmm0, xmm0
+ cmpordps xmm0, fool
+ cmpordsd xmm0, xmm0
+ cmpordsd xmm0, fool
+ cmpordss xmm0, xmm0
+ cmpordss xmm0, fool
+ cmppd xmm0, xmm0, 4
+ cmppd xmm0, fool, 4
+ cmpps xmm0, xmm0, 4
+ cmpps xmm0, fool, 4
+ cmpsd xmm0, xmm0, 4
+ cmpsd xmm0, fool, 4
+ cmpss xmm0, xmm0, 4
+ cmpss xmm0, fool, 4
+ cmpunordpd xmm0, xmm0
+ cmpunordpd xmm0, fool
+ cmpunordps xmm0, xmm0
+ cmpunordps xmm0, fool
+ cmpunordsd xmm0, xmm0
+ cmpunordsd xmm0, fool
+ cmpunordss xmm0, xmm0
+ cmpunordss xmm0, fool
+ cmpxchg fool, eax
+ cmpxchg eax, eax
+ comisd xmm0, xmm0
+ comisd xmm0, fool
+ comiss xmm0, xmm0
+ comiss xmm0, fool
+ cvtdq2pd xmm0, xmm0
+ cvtdq2pd xmm0, fool
+ cvtdq2ps xmm0, xmm0
+ cvtdq2ps xmm0, fool
+ cvtpd2dq xmm0, xmm0
+ cvtpd2dq xmm0, fool
+ cvtpd2pi mm0, xmm0
+ cvtpd2pi mm0, fool
+ cvtpd2ps xmm0, xmm0
+ cvtpd2ps xmm0, fool
+ cvtpi2pd xmm0, mm0
+ cvtpi2pd xmm0, fool
+ cvtpi2ps xmm0, mm0
+ cvtpi2ps xmm0, fool
+ cvtps2dq xmm0, xmm0
+ cvtps2dq xmm0, fool
+ cvtps2pd xmm0, xmm0
+ cvtps2pd xmm0, fool
+ cvtps2pi mm0, xmm0
+ cvtps2pi mm0, fool
+ cvtsd2si eax, xmm0
+ cvtsd2si rax, xmm0
+ cvtsd2si eax, fool
+ cvtsd2si rax, fool
+ cvtsd2ss xmm0, xmm0
+ cvtsd2ss xmm0, fool
+ cvtsi2sd xmm0, eax
+ cvtsi2sd xmm0, fooi
+ cvtsi2sd xmm0, rax
+ cvtsi2sd xmm0, fooll
+ cvtsi2ss xmm0, eax
+ cvtsi2ss xmm0, fooi
+ cvtsi2ss xmm0, rax
+ cvtsi2ss xmm0, fooll
+ cvtss2sd xmm0, xmm0
+ cvtss2sd xmm0, fool
+ cvtss2si eax, xmm0
+ cvtss2si eax, fool
+ cvttpd2dq xmm0, xmm0
+ cvttpd2dq xmm0, fool
+ cvttpd2pi mm0, xmm0
+ cvttpd2pi mm0, fool
+ cvttps2dq xmm0, xmm0
+ cvttps2dq xmm0, fool
+ cvttps2pi mm0, xmm0
+ cvttps2pi mm0, fool
+ cvttsd2si eax, xmm0
+ cvttsd2si eax, fool
+ cvttss2si eax, xmm0
+ cvttss2si eax, fool
+ dec ah
+ dec fooc
+ dec ax
+ dec foos
+ dec eax
+ dec fooi
+ div ah
+ div fooc
+ div ax
+ div foos
+ div eax
+ div fooi
+ divpd xmm0, xmm0
+ divpd xmm0, fool
+ divps xmm0, xmm0
+ divps xmm0, fool
+ divsd xmm0, xmm0
+ divsd xmm0, fool
+ divss xmm0, xmm0
+ divss xmm0, fool
+ enter 1, 1
+ fadd st(0), st(2)
+ fadd st(2), st(0)
+ fadd foof
+ fadd food
+ faddp st(2), st(0)
+ fbld fool
+ fbstp fool
+ fcmovb st(0), st(2)
+ fcmovbe st(0), st(2)
+ fcmove st(0), st(2)
+ fcmovnb st(0), st(2)
+ fcmovnbe st(0), st(2)
+ fcmovne st(0), st(2)
+ fcmovnu st(0), st(2)
+ fcmovu st(0), st(2)
+ fcom st(2)
+ fcom foof
+ fcom food
+ fcomi st(0), st(2)
+ fcomip st(0), st(2)
+ fcomp st(2)
+ fcomp foof
+ fcomp food
+ fdiv st(0), st(2)
+ fdiv st(2), st(0)
+ fdiv foof
+ fdiv food
+ fdivp st(2), st(0)
+ fdivr st(0), st(2)
+ fdivr foof
+ fdivr food
+ fdivrp st(2), st(0)
+ ffree st(2)
+ fiadd foos
+ fiadd fooi
+ ficom foos
+ ficom fooi
+ ficomp foos
+ ficomp fooi
+ fidiv foos
+ fidiv fooi
+ fidivr foos
+ fidivr fooi
+ fild foos
+ fild fooi
+ fild fooll
+ fimul foos
+ fimul fooi
+ fist foos
+ fist fooi
+ fistp foos
+ fistp fooi
+ fistp fooll
+ fisttp foos
+ fisttp fooi
+ fisttp fooll
+ fisub foos
+ fisub fooi
+ fisubr foos
+ fisubr fooi
+ fld st(2)
+ fld foof
+ fld food
+ fld foold
+ fldcw foos
+ fldenv fool
+ fldt fool
+ fmul st(2), st(0)
+ fmul st(0), st(2)
+ fmul foof
+ fmul food
+ fmulp st(2), st(0)
+ fnsave fool
+ fnstcw fool
+ fnstenv fool
+ fnstsw fool
+ fnstsw eax
+ frstor fool
+ fsave fool
+ fst st(2)
+ fst foof
+ fst food
+ fstcw fool
+ fstenv fool
+ fstp st(2)
+ fstp foof
+ fstp food
+ fstp foold
+ fstsw fool
+ fstsw eax
+ fsub st(2), st(0)
+ fsub st(0), st(2)
+ fsub foof
+ fsub food
+ fsubr st(2), st(0)
+ fsubr st(0), st(2)
+ fsubr foof
+ fsubr food
+ fucom st(2)
+ fucomi st(0), st(2)
+ fucomip st(0), st(2)
+ fucomp st(2)
+ fxch st(2)
+ fxrstor fool
+ fxsave fool
+ haddpd xmm0, xmm0
+ haddpd xmm0, fool
+ haddps xmm0, xmm0
+ haddps xmm0, fool
+ hsubpd xmm0, xmm0
+ hsubpd xmm0, fool
+ hsubps xmm0, xmm0
+ hsubps xmm0, fool
+ idiv ah
+ idiv fooc
+ idiv ax
+ idiv foos
+ idiv eax
+ idiv fooi
+ idiv rax
+ idiv fooll
+ imul eax, eax, 4
+ imul eax, fool, 4
+ in eax, 1
+ inc ah
+ inc fooc
+ inc ax
+ inc foos
+ inc eax
+ inc fooi
+ inc rax
+ inc fooll
+ ; ins fooc, dx
+ ; ins foos, dx
+ ; ins fooi, dx
+ int 1
+ invlpg fool
+ ja fool
+ jae fool
+ jb fool
+ jbe fool
+ jc fool
+ ; jcxz .-24
+ je fool
+ jecxz .-24
+ jg fool
+ jge fool
+ jl fool
+ jle fool
+ ; jmp fool
+ ; jmp eax
+ ; jmp fooi
+ jna fool
+ jnae fool
+ jnb fool
+ jnc fool
+ jne fool
+ jng fool
+ jnge fool
+ jnl fool
+ jnle fool
+ jno fool
+ jnp fool
+ jns fool
+ jnz fool
+ jo fool
+ jp fool
+ jpe fool
+ jpo fool
+ js fool
+ jz fool
+ lar eax, eax
+ lar eax, fool
+ lddqu xmm0, fool
+ ldmxcsr fool
+ ; lds ax, foos
+ ; lds eax, fooi
+ ; lds rax, fooll
+ lea eax, fool
+ ; les ax, foos
+ ; les eax, fooi
+ ; les rax, fooll
+ lfs ax, foos
+ lfs eax, fooi
+ lfs rax, fooll
+ lgdt fool
+ lgs ax, foos
+ lgs eax, fooi
+ lgs rax, fooll
+ lidt fool
+ lldt ax
+ lldt foos
+ lmsw fool
+ ; lods fooc
+ ; lods foos
+ ; lods fooi
+ ; lods fooll
+ loop .-24
+ loope .-24
+ loopne .-24
+ loopnz .-24
+ loopz .-24
+ lsl ax, ax
+ lsl ax, foos
+ lsl eax, eax
+ lsl eax, fooi
+ lss ax, foos
+ lss eax, fooi
+ lss rax, fooll
+ ltr ax
+ ltr foos
+ maskmovdqu xmm0, xmm0
+ maskmovq mm0, mm0
+ maxpd xmm0, xmm0
+ maxpd xmm0, fool
+ maxps xmm0, xmm0
+ maxps xmm0, fool
+ maxsd xmm0, xmm0
+ maxsd xmm0, fool
+ maxss xmm0, xmm0
+ maxss xmm0, fool
+ minpd xmm0, xmm0
+ minpd xmm0, fool
+ minps xmm0, xmm0
+ minps xmm0, fool
+ minsd xmm0, xmm0
+ minsd xmm0, fool
+ minss xmm0, xmm0
+ minss xmm0, fool
+ mov ah, ah
+ mov fooc, ah
+ mov ah, 1
+ mov fooc, 1
+ mov ax, ax
+ mov foos, ax
+ mov ax, 1
+ mov foos, 1
+ mov eax, eax
+ mov fooi, eax
+ mov eax, 1
+ mov fooi, 1
+ mov rax, rax
+ mov fooll, rax
+ mov rax, 1
+ mov fooll, 1
+ mov ah, ah
+ mov ah, 1
+ mov ah, fooc
+ mov ax, ax
+ mov ax, 1
+ mov ax, foos
+ mov eax, eax
+ mov eax, 1
+ mov eax, fooi
+ mov rax, rax
+ mov rax, 1
+ mov rax, fooll
+ movapd xmm0, xmm0
+ movapd xmm0, fool
+ movapd xmm0, xmm0
+ movapd fool, xmm0
+ movaps xmm0, xmm0
+ movaps xmm0, fool
+ movaps xmm0, xmm0
+ movaps fool, xmm0
+ movd eax, xmm0
+ movd fool, xmm0
+ movd xmm0, eax
+ movd xmm0, fool
+ movd mm0, eax
+ movd mm0, fool
+ movd eax, mm0
+ movd fool, mm0
+ movddup xmm0, xmm0
+ movddup xmm0, fool
+ movdq2q mm0, xmm0
+ movdqa xmm0, xmm0
+ movdqa xmm0, fool
+ movdqu xmm0, xmm0
+ movdqu xmm0, fool
+ movhlps xmm0, xmm0
+ movhpd xmm0, fool
+ movhpd fool, xmm0
+ movhps xmm0, fool
+ movhps fool, xmm0
+ movlhps xmm0, xmm0
+ movlpd xmm0, fool
+ movlpd fool, xmm0
+ movlps xmm0, fool
+ movlps fool, xmm0
+ movmskpd eax, xmm0
+ movmskps eax, xmm0
+ movntdq fool, xmm0
+ movnti fool, eax
+ movntpd fool, xmm0
+ movntps fool, xmm0
+ movntq fool, mm0
+ movq xmm0, xmm0
+ movq xmm0, fool
+ movq fool, xmm0
+ movq mm0, mm0
+ movq mm0, fool
+ movq fool, mm0
+ movq2dq xmm0, mm0
+ movs fooc, fooc
+ movs foos, foos
+ movs fooi, fooi
+ movs fooll, fooll
+ movsd xmm0, xmm0
+ movsd fool, xmm0
+ movsd xmm0, xmm0
+ movsd xmm0, fool
+ movshdup xmm0, xmm0
+ movshdup xmm0, fool
+ movsldup xmm0, xmm0
+ movsldup xmm0, fool
+ movss xmm0, xmm0
+ movss fool, xmm0
+ movss xmm0, xmm0
+ movss xmm0, fool
+ movsx ax, ah
+ movsx ax, fooc
+ movsx eax, ah
+ movsx eax, fooc
+ movsx eax, ax
+ movsx eax, foos
+ movupd xmm0, xmm0
+ movupd xmm0, fool
+ movupd xmm0, xmm0
+ movupd fool, xmm0
+ movups xmm0, xmm0
+ movups xmm0, fool
+ movups xmm0, xmm0
+ movups fool, xmm0
+ movzx ax, ah
+ movzx ax, fooc
+ movzx eax, ah
+ movzx eax, fooc
+ movzx eax, ax
+ movzx eax, foos
+ mul ah
+ mul fooc
+ mul ax
+ mul foos
+ mul eax
+ mul fooi
+ mulpd xmm0, xmm0
+ mulpd xmm0, fool
+ mulps xmm0, xmm0
+ mulps xmm0, fool
+ mulsd xmm0, xmm0
+ mulsd xmm0, fool
+ mulss xmm0, xmm0
+ mulss xmm0, fool
+ neg ah
+ neg fooc
+ neg ax
+ neg foos
+ neg eax
+ neg fooi
+ not ah
+ not fooc
+ not ax
+ not foos
+ not eax
+ not fooi
+ or ah, ah
+ or fooc, ah
+ or ah, 1
+ or fooc, 1
+ or ax, ax
+ or foos, ax
+ or ax, 1
+ or foos, 1
+ or eax, eax
+ or fooi, eax
+ or eax, 1
+ or fooi, 1
+ or rax, rax
+ or fooll, rax
+ or rax, 1
+ or fooll, 1
+ or ah, fooc
+ or ax, foos
+ or eax, fooi
+ orpd xmm0, xmm0
+ orpd xmm0, fool
+ orps xmm0, xmm0
+ orps xmm0, fool
+ out 1, al
+ out dx, al
+ out 1, ax
+ out dx, ax
+ out 1, eax
+ out dx, eax
+ ; outs dx, fooc
+ ; outs dx, foos
+ ; outs dx, fooi
+ packssdw xmm0, xmm0
+ packssdw xmm0, fool
+ packssdw mm0, mm0
+ packssdw mm0, fool
+ packsswb xmm0, xmm0
+ packsswb xmm0, fool
+ packsswb mm0, mm0
+ packsswb mm0, fool
+ packuswb xmm0, xmm0
+ packuswb xmm0, fool
+ packuswb mm0, mm0
+ packuswb mm0, fool
+ paddb xmm0, xmm0
+ paddb xmm0, fool
+ paddb mm0, mm0
+ paddb mm0, fool
+ paddd xmm0, xmm0
+ paddd xmm0, fool
+ paddd mm0, mm0
+ paddd mm0, fool
+ paddq xmm0, xmm0
+ paddq xmm0, fool
+ paddq mm0, mm0
+ paddq mm0, fool
+ paddsb xmm0, xmm0
+ paddsb xmm0, fool
+ paddsb mm0, mm0
+ paddsb mm0, fool
+ paddsw xmm0, xmm0
+ paddsw xmm0, fool
+ paddsw mm0, mm0
+ paddsw mm0, fool
+ paddusb xmm0, xmm0
+ paddusb xmm0, fool
+ paddusb mm0, mm0
+ paddusb mm0, fool
+ paddusw xmm0, xmm0
+ paddusw xmm0, fool
+ paddusw mm0, mm0
+ paddusw mm0, fool
+ paddw xmm0, xmm0
+ paddw xmm0, fool
+ paddw mm0, mm0
+ paddw mm0, fool
+ pand xmm0, xmm0
+ pand xmm0, fool
+ pand mm0, mm0
+ pand mm0, fool
+ pandn xmm0, xmm0
+ pandn xmm0, fool
+ pandn mm0, mm0
+ pandn mm0, fool
+ pavgb xmm0, xmm0
+ pavgb xmm0, fool
+ pavgb mm0, mm0
+ pavgb mm0, fool
+ pavgw xmm0, xmm0
+ pavgw xmm0, fool
+ pavgw mm0, mm0
+ pavgw mm0, fool
+ pcmpeqb xmm0, xmm0
+ pcmpeqb xmm0, fool
+ pcmpeqb mm0, mm0
+ pcmpeqb mm0, fool
+ pcmpeqd xmm0, xmm0
+ pcmpeqd xmm0, fool
+ pcmpeqd mm0, mm0
+ pcmpeqd mm0, fool
+ pcmpeqw xmm0, xmm0
+ pcmpeqw xmm0, fool
+ pcmpeqw mm0, mm0
+ pcmpeqw mm0, fool
+ pcmpgtb xmm0, xmm0
+ pcmpgtb xmm0, fool
+ pcmpgtb mm0, mm0
+ pcmpgtb mm0, fool
+ pcmpgtd xmm0, xmm0
+ pcmpgtd xmm0, fool
+ pcmpgtd mm0, mm0
+ pcmpgtd mm0, fool
+ pcmpgtw xmm0, xmm0
+ pcmpgtw xmm0, fool
+ pcmpgtw mm0, mm0
+ pcmpgtw mm0, fool
+ pextrw eax, xmm0, 4
+ pextrw rax, xmm0, 4
+ pextrw eax, mm0, 4
+ pextrw rax, mm0, 4
+ pinsrw xmm0, eax, 4
+ pinsrw mm0, eax, 4
+ pinsrw xmm0, rax, 4
+ pinsrw mm0, rax, 4
+ pinsrw xmm0, fool, 4
+ pinsrw mm0, fool, 4
+ pmaddwd xmm0, xmm0
+ pmaddwd xmm0, fool
+ pmaddwd mm0, mm0
+ pmaddwd mm0, fool
+ pmaxsw xmm0, xmm0
+ pmaxsw xmm0, fool
+ pmaxsw mm0, mm0
+ pmaxsw mm0, fool
+ pmaxub xmm0, xmm0
+ pmaxub xmm0, fool
+ pmaxub mm0, mm0
+ pmaxub mm0, fool
+ pminsw xmm0, xmm0
+ pminsw xmm0, fool
+ pminsw mm0, mm0
+ pminsw mm0, fool
+ pminub xmm0, xmm0
+ pminub xmm0, fool
+ pminub mm0, mm0
+ pminub mm0, fool
+ pmovmskb eax, xmm0
+ pmovmskb rax, xmm0
+ pmovmskb eax, mm0
+ pmovmskb rax, mm0
+ pmulhuw xmm0, xmm0
+ pmulhuw xmm0, fool
+ pmulhuw mm0, mm0
+ pmulhuw mm0, fool
+ pmulhw xmm0, xmm0
+ pmulhw xmm0, fool
+ pmulhw mm0, mm0
+ pmulhw mm0, fool
+ pmullw xmm0, xmm0
+ pmullw xmm0, fool
+ pmullw mm0, mm0
+ pmullw mm0, fool
+ pmuludq xmm0, xmm0
+ pmuludq xmm0, fool
+ pmuludq mm0, mm0
+ pmuludq mm0, fool
+ pop ax
+ pop foos
+ pop rax
+ pop fooll
+ por xmm0, xmm0
+ por xmm0, fool
+ por mm0, mm0
+ por mm0, fool
+ prefetchnta fool
+ prefetcht0 fool
+ prefetcht1 fool
+ prefetcht2 fool
+ psadbw xmm0, xmm0
+ psadbw xmm0, fool
+ psadbw mm0, mm0
+ psadbw mm0, fool
+ pshufd xmm0, xmm0, 4
+ pshufd xmm0, fool, 4
+ pshufhw xmm0, xmm0, 4
+ pshufhw xmm0, fool, 4
+ pshuflw xmm0, xmm0, 4
+ pshuflw xmm0, fool, 4
+ pshufw mm0, mm0, 4
+ pshufw mm0, fool, 4
+ pslld xmm0, xmm0
+ pslld xmm0, fool
+ pslld xmm0, 1
+ pslld mm0, mm0
+ pslld mm0, fool
+ pslld mm0, 1
+ pslldq xmm0, 1
+ psllq xmm0, xmm0
+ psllq xmm0, fool
+ psllq xmm0, 1
+ psllq mm0, mm0
+ psllq mm0, fool
+ psllq mm0, 1
+ psllw xmm0, xmm0
+ psllw xmm0, fool
+ psllw xmm0, 1
+ psllw mm0, mm0
+ psllw mm0, fool
+ psllw mm0, 1
+ psrad xmm0, xmm0
+ psrad xmm0, fool
+ psrad xmm0, 1
+ psrad mm0, mm0
+ psrad mm0, fool
+ psrad mm0, 1
+ psraw xmm0, xmm0
+ psraw xmm0, fool
+ psraw xmm0, 1
+ psraw mm0, mm0
+ psraw mm0, fool
+ psraw mm0, 1
+ psrld xmm0, xmm0
+ psrld xmm0, fool
+ psrld xmm0, 1
+ psrld mm0, mm0
+ psrld mm0, fool
+ psrld mm0, 1
+ psrldq xmm0, 1
+ psrlq xmm0, xmm0
+ psrlq xmm0, fool
+ psrlq xmm0, 1
+ psrlq mm0, mm0
+ psrlq mm0, fool
+ psrlq mm0, 1
+ psrlw xmm0, xmm0
+ psrlw xmm0, fool
+ psrlw xmm0, 1
+ psrlw mm0, mm0
+ psrlw mm0, fool
+ psrlw mm0, 1
+ psubb xmm0, xmm0
+ psubb xmm0, fool
+ psubb mm0, mm0
+ psubb mm0, fool
+ psubd xmm0, xmm0
+ psubd xmm0, fool
+ psubd mm0, mm0
+ psubd mm0, fool
+ psubq xmm0, xmm0
+ psubq xmm0, fool
+ psubq mm0, mm0
+ psubq mm0, fool
+ psubsb xmm0, xmm0
+ psubsb xmm0, fool
+ psubsb mm0, mm0
+ psubsb mm0, fool
+ psubsw xmm0, xmm0
+ psubsw xmm0, fool
+ psubsw mm0, mm0
+ psubsw mm0, fool
+ psubusb xmm0, xmm0
+ psubusb xmm0, fool
+ psubusb mm0, mm0
+ psubusb mm0, fool
+ psubusw xmm0, xmm0
+ psubusw xmm0, fool
+ psubusw mm0, mm0
+ psubusw mm0, fool
+ psubw xmm0, xmm0
+ psubw xmm0, fool
+ psubw mm0, mm0
+ psubw mm0, fool
+ punpckhbw xmm0, xmm0
+ punpckhbw xmm0, fool
+ punpckhbw mm0, mm0
+ punpckhbw mm0, fool
+ punpckhdq xmm0, xmm0
+ punpckhdq xmm0, fool
+ punpckhdq mm0, mm0
+ punpckhdq mm0, fool
+ punpckhqdq xmm0, xmm0
+ punpckhqdq xmm0, fool
+ punpckhwd xmm0, xmm0
+ punpckhwd xmm0, fool
+ punpckhwd mm0, mm0
+ punpckhwd mm0, fool
+ punpcklbw xmm0, xmm0
+ punpcklbw xmm0, fool
+ punpcklbw mm0, mm0
+ punpcklbw mm0, fool
+ punpckldq xmm0, xmm0
+ punpckldq xmm0, fool
+ punpckldq mm0, mm0
+ punpckldq mm0, fool
+ punpcklqdq xmm0, xmm0
+ punpcklqdq xmm0, fool
+ punpcklwd xmm0, xmm0
+ punpcklwd xmm0, fool
+ punpcklwd mm0, mm0
+ punpcklwd mm0, fool
+ push ax
+ push foos
+ push rax
+ push fooll
+ push 1
+ pxor xmm0, xmm0
+ pxor xmm0, fool
+ pxor mm0, mm0
+ pxor mm0, fool
+ rcl ah, 1
+ rcl fooc, 1
+ rcl ax, 1
+ rcl foos, 1
+ rcl eax, 1
+ rcl fooi, 1
+ rcl ah, cl
+ rcl fooc, cl
+ rcl ax, cl
+ rcl foos, cl
+ rcl eax, cl
+ rcl fooi, cl
+ rcpps xmm0, xmm0
+ rcpps xmm0, fool
+ rcpss xmm0, xmm0
+ rcpss xmm0, fool
+ rcr ah, 1
+ rcr fooc, 1
+ rcr ax, 1
+ rcr foos, 1
+ rcr eax, 1
+ rcr fooi, 1
+ rcr ah, cl
+ rcr fooc, cl
+ rcr ax, cl
+ rcr foos, cl
+ rcr eax, cl
+ rcr fooi, cl
+ ret 1
+ rol ah, 1
+ rol fooc, 1
+ rol ax, 1
+ rol foos, 1
+ rol eax, 1
+ rol fooi, 1
+ rol ah, cl
+ rol fooc, cl
+ rol ax, cl
+ rol foos, cl
+ rol eax, cl
+ rol fooi, cl
+ ror ah, 1
+ ror fooc, 1
+ ror ax, 1
+ ror foos, 1
+ ror eax, 1
+ ror fooi, 1
+ ror ah, cl
+ ror fooc, cl
+ ror ax, cl
+ ror foos, cl
+ ror eax, cl
+ ror fooi, cl
+ rsqrtps xmm0, xmm0
+ rsqrtps xmm0, fool
+ rsqrtss xmm0, xmm0
+ rsqrtss xmm0, fool
+ sal ah, 1
+ sal fooc, 1
+ sal ax, 1
+ sal foos, 1
+ sal eax, 1
+ sal fooi, 1
+ sal ah, cl
+ sal fooc, cl
+ sal ax, cl
+ sal foos, cl
+ sal eax, cl
+ sal fooi, cl
+ sar ah, 1
+ sar fooc, 1
+ sar ax, 1
+ sar foos, 1
+ sar eax, 1
+ sar fooi, 1
+ sar ah, cl
+ sar fooc, cl
+ sar ax, cl
+ sar foos, cl
+ sar eax, cl
+ sar fooi, cl
+ sbb ah, ah
+ sbb fooc, ah
+ sbb ah, 1
+ sbb fooc, 1
+ sbb ax, ax
+ sbb foos, ax
+ sbb ax, 1
+ sbb foos, 1
+ sbb eax, eax
+ sbb fooi, eax
+ sbb eax, 1
+ sbb fooi, 1
+ sbb ah, fooc
+ sbb ax, foos
+ sbb eax, fooi
+ scas fooc
+ scas foos
+ scas fooi
+ scas fooll
+ seta ah
+ seta fool
+ setae ah
+ setae fool
+ setb ah
+ setb fool
+ setbe ah
+ setbe fool
+ setc ah
+ setc fool
+ sete ah
+ sete fool
+ setg ah
+ setg fool
+ setge ah
+ setge fool
+ setl ah
+ setl fool
+ setle ah
+ setle fool
+ setna ah
+ setna fool
+ setnae ah
+ setnae fool
+ setnb ah
+ setnb fool
+ setnbe ah
+ setnbe fool
+ setnc ah
+ setnc fool
+ setne ah
+ setne fool
+ setng ah
+ setng fool
+ setnge ah
+ setnge fool
+ setnl ah
+ setnl fool
+ setnle ah
+ setnle fool
+ setno ah
+ setno fool
+ setnp ah
+ setnp fool
+ setns ah
+ setns fool
+ setnz ah
+ setnz fool
+ seto ah
+ seto fool
+ setp ah
+ setp fool
+ setpe ah
+ setpe fool
+ setpo ah
+ setpo fool
+ sets ah
+ sets fool
+ setz ah
+ setz fool
+ ; sgdt fool
+ shl ah, 1
+ shl fooc, 1
+ shl ax, 1
+ shl foos, 1
+ shl eax, 1
+ shl fooi, 1
+ shl ah, cl
+ shl fooc, cl
+ shl ax, cl
+ shl foos, cl
+ shl eax, cl
+ shl fooi, cl
+ shld ax, ax, 4
+ shld foos, ax, 4
+ shld eax, eax, 4
+ shld fooi, eax, 4
+ shld rax, rax, 4
+ shld fooll, rax, 4
+ shr ah, 1
+ shr fooc, 1
+ shr ax, 1
+ shr foos, 1
+ shr eax, 1
+ shr fooi, 1
+ shr ah, cl
+ shr fooc, cl
+ shr ax, cl
+ shr foos, cl
+ shr eax, cl
+ shr fooi, cl
+ shrd ax, ax, 4
+ shrd foos, ax, 4
+ shrd eax, eax, 4
+ shrd fooi, eax, 4
+ shrd rax, rax, 4
+ shrd fooll, rax, 4
+ shufpd xmm0, xmm0, 4
+ shufpd xmm0, fool, 4
+ shufps xmm0, xmm0, 4
+ shufps xmm0, fool, 4
+ ; sidt fool
+ sldt ax
+ sldt fool
+ smsw ax
+ smsw fool
+ sqrtpd xmm0, xmm0
+ sqrtpd xmm0, fool
+ sqrtps xmm0, xmm0
+ sqrtps xmm0, fool
+ sqrtsd xmm0, xmm0
+ sqrtsd xmm0, fool
+ sqrtss xmm0, xmm0
+ sqrtss xmm0, fool
+ stmxcsr fool
+ stos fool
+ str ax
+ str fool
+ sub eax, 1
+ sub fool, 1
+ sub eax, eax
+ sub fool, eax
+ sub eax, fool
+ subpd xmm0, xmm0
+ subpd xmm0, fool
+ subps xmm0, xmm0
+ subps xmm0, fool
+ subsd xmm0, xmm0
+ subsd xmm0, fool
+ subss xmm0, xmm0
+ subss xmm0, fool
+ test eax, eax
+ test ah, 1
+ test fooc, 1
+ test ax, 1
+ test foos, 1
+ test eax, 1
+ test fooi, 1
+ ucomisd xmm0, xmm0
+ ucomisd xmm0, fool
+ ucomiss xmm0, xmm0
+ ucomiss xmm0, fool
+ unpckhpd xmm0, xmm0
+ unpckhpd xmm0, fool
+ unpckhps xmm0, xmm0
+ unpckhps xmm0, fool
+ unpcklpd xmm0, xmm0
+ unpcklpd xmm0, fool
+ unpcklps xmm0, xmm0
+ unpcklps xmm0, fool
+ verr ax
+ verr foos
+ verw ax
+ verw foos
+ xadd ah, ah
+ xadd fooc, ah
+ xadd ax, ax
+ xadd foos, ax
+ xadd eax, eax
+ xadd fooi, eax
+ xchg eax, eax
+ xchg fool, eax
+ xchg eax, fool
+ xlat fool
+ xor eax, eax
+ xor fool, eax
+ xor eax, 1
+ xor fool, 1
+ xor eax, fool
+ xorpd xmm0, xmm0
+ xorpd xmm0, fool
+ xorps xmm0, xmm0
+ xorps xmm0, fool
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-13.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-13.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,5 @@
/* APPLE LOCAL file CW asm blocks */
/* { dg-do assemble { target i?86*-*-darwin* } } */
-/* APPLE LOCAL x86_64 */
/* { dg-require-effective-target ilp32 } */
/* { dg-options { -fasm-blocks -msse3 } } */
/* Radar 4259442 */
@@ -68,8 +67,10 @@
call fool
call fool
clflush fool
+ cmova ax, ax
+ cmova ax, foos
cmova eax, eax
- cmova eax, fool
+ cmova eax, fooi
cmovae eax, eax
cmovae eax, fool
cmovb eax, eax
@@ -120,8 +121,14 @@
cmovo eax, fool
cmovp eax, eax
cmovp eax, fool
+ cmovpe eax, eax
+ cmovpe eax, fool
+ cmovpo eax, eax
+ cmovpo eax, fool
cmovs eax, eax
cmovs eax, fool
+ cmovz eax, eax
+ cmovz eax, fool
cmp eax, 1
cmp fool, 1
cmp eax, eax
@@ -229,8 +236,10 @@
cvtsd2si eax, fool
cvtsd2ss xmm0, xmm0
cvtsd2ss xmm0, fool
- cvtsi2sd xmm0, fool
- cvtsi2ss xmm0, fool
+ cvtsi2sd xmm0, eax
+ cvtsi2sd xmm0, fooi
+ cvtsi2ss xmm0, eax
+ cvtsi2ss xmm0, fooi
cvtss2sd xmm0, xmm0
cvtss2sd xmm0, fool
cvtss2si eax, xmm0
@@ -396,6 +405,9 @@
inc foos
inc eax
inc fooi
+ ins fooc, dx
+ ins foos, dx
+ ins fooi, dx
int 1
invlpg fool
ja fool
@@ -436,16 +448,23 @@
lar eax, fool
lddqu xmm0, fool
ldmxcsr fool
+ lds ax, foos
lds eax, fooi
lea eax, fool
+ les ax, foos
les eax, fooi
+ lfs ax, foos
lfs eax, fooi
lgdt fool
+ lgs ax, foos
lgs eax, fooi
lidt fool
lldt ax
lldt foos
lmsw fool
+ lods fooc
+ lods foos
+ lods fooi
loop .-24
loope .-24
loopne .-24
@@ -455,6 +474,7 @@
lsl ax, foos
lsl eax, eax
lsl eax, fooi
+ lss ax, foos
lss eax, fooi
ltr ax
ltr foos
@@ -476,13 +496,27 @@
minsd xmm0, fool
minss xmm0, xmm0
minss xmm0, fool
+ mov ah, ah
+ mov fooc, ah
+ mov ah, 1
+ mov fooc, 1
+ mov ax, ax
+ mov foos, ax
+ mov ax, 1
+ mov foos, 1
mov eax, eax
mov fooi, eax
mov eax, 1
mov fooi, 1
+ mov ah, ah
+ mov ah, 1
+ mov ah, fooc
+ mov ax, ax
+ mov ax, 1
+ mov ax, foos
mov eax, eax
- mov eax, fool
mov eax, 1
+ mov eax, fooi
movapd xmm0, xmm0
movapd xmm0, fool
movapd xmm0, xmm0
@@ -530,6 +564,9 @@
movq mm0, fool
movq fool, mm0
movq2dq xmm0, mm0
+ movs fooc, fooc
+ movs foos, foos
+ movs fooi, fooi
movsd xmm0, xmm0
movsd fool, xmm0
movsd xmm0, xmm0
@@ -613,6 +650,9 @@
out dx, ax
out 1, eax
out dx, eax
+ outs dx, fooc
+ outs dx, foos
+ outs dx, fooi
packssdw xmm0, xmm0
packssdw xmm0, fool
packssdw mm0, mm0
@@ -741,8 +781,10 @@
pmuludq xmm0, fool
pmuludq mm0, mm0
pmuludq mm0, fool
+ pop ax
+ pop foos
pop eax
- pop fool
+ pop fooi
por xmm0, xmm0
por xmm0, fool
por mm0, mm0
@@ -873,8 +915,10 @@
punpcklwd xmm0, fool
punpcklwd mm0, mm0
punpcklwd mm0, fool
+ push ax
+ push foos
push eax
- push fool
+ push fooi
push 1
pxor xmm0, xmm0
pxor xmm0, fool
@@ -976,6 +1020,9 @@
sbb ah, fooc
sbb ax, foos
sbb eax, fooi
+ scas fooc
+ scas foos
+ scas fooi
seta ah
seta fool
setae ah
@@ -1087,6 +1134,7 @@
sqrtss xmm0, xmm0
sqrtss xmm0, fool
stmxcsr fool
+ stos fool
str ax
str fool
sub eax, 1
@@ -1134,6 +1182,7 @@
xchg eax, eax
xchg fool, eax
xchg eax, fool
+ xlat fool
xor eax, eax
xor fool, eax
xor eax, 1
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-30.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-30.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-30.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-30.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,8 @@
/* APPLE LOCAL file CW asm blocks */
/* { dg-do assemble { target i?86*-*-darwin* } } */
/* { dg-options { -fasm-blocks -msse3 } } */
+/* Shouldn't be necessary, but it doesn't work yet. */
+/* { dg-require-effective-target ilp32 } */
/* Radar 4300108 */
void foo() {
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-67.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-67.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-67.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-67.C Sun Jan 18 21:29:10 2009
@@ -1,4 +1,4 @@
/* { dg-do compile } */
/* { dg-options "-fasm-blocks" } */
-int i = 1st; /* { dg-error "invalid suffix on integer constant" } */
+int i = 1st; /* { dg-error "invalid suffix.* on integer constant" } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcglobal.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-assigngcglobal.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcglobal.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcglobal.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,6 @@
/* APPLE LOCAL file radar 5832193 */
/* assigning a Block into a global should elicit a global write-barrier under GC */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -fobjc-gc" { target *-*-darwin* } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcivar.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-assigngcivar.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcivar.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcivar.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5832193 */
/* assigning a Block into an ivar should elicit a write-barrier under GC */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#ifdef objc_assign_ivar
#define __objc_assign_ivar objc_assign_ivar
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcstrongcast.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-assigngcstrongcast.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcstrongcast.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assigngcstrongcast.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5832193 */
/* assigning a Block into an struct slot should elicit a write-barrier under GC */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#ifdef objc_assign_ivar
#define __objc_assign_ivar objc_assign_ivar
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgc-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-assignweakgc-1.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgc-1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgc-1.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgc.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-assignweakgc.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgc.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgc.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgcivar.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-assignweakgcivar.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgcivar.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-assignweakgcivar.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-bad-def.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-bad-def.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-bad-def.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-bad-def.C Sun Jan 18 21:29:10 2009
@@ -7,6 +7,5 @@
void (^b)(void) { }; /* { dg-error "expected primary-expression" } */
/* { dg-error "expected" "" { target *-*-* } 7 } */
-
return 0;
}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-property-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-block-property-1.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-property-1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-property-1.C Sun Jan 18 21:29:10 2009
@@ -1,8 +1,9 @@
/* APPLE LOCAL file radar 5831920 */
#import <Foundation/Foundation.h>
/* Test a property with block type. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-property-2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-block-property-2.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-property-2.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-property-2.C Sun Jan 18 21:29:10 2009
@@ -1,8 +1,9 @@
/* APPLE LOCAL file radar 5831920 - Modified for radar 6255671 */
#import <Foundation/Foundation.h>
/* Test a property with block type. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
void * _NSConcreteStackBlock;
void _Block_byref_assign_copy(void * dst, void *src){}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-storageclass.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-block-storageclass.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-storageclass.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-block-storageclass.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void _Block_byref_release(void*src){}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-blocks-test-2.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-2.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-2.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,8 @@
/* APPLE LOCAL file 5932809 */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
void _Block_byref_release(void*src){}
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-3.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-blocks-test-3.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-3.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-3.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,8 @@
/* APPLE LOCAL file 5932809 */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
void _Block_byref_release(void*src){}
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-4.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-blocks-test-4.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-4.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-4.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-5.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-blocks-test-5.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-5.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-5.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-6.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-blocks-test-6.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-6.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-6.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-7.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-blocks-test-7.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-7.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-blocks-test-7.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5932809 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -lobjc" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-byref-block.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-byref-block.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-byref-block.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-byref-block.C Sun Jan 18 21:29:10 2009
@@ -1,5 +1,5 @@
/* APPLE LOCAL file radar 6180456 */
-/* { dg-do run { target *-*-darwin* } } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-call-with-sideeffect.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-call-with-sideeffect.C?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-call-with-sideeffect.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-call-with-sideeffect.C Sun Jan 18 21:29:10 2009
@@ -0,0 +1,31 @@
+/* APPLE LOCAL file radar 6396238 */
+/* { dg-options "-mmacosx-version-min=10.6 -Wall" { target *-*-darwin* } } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
+#include <stdio.h>
+
+typedef void (^P)(void);
+
+static P p = ^{ printf("inside block\n"); };
+
+static int count;
+
+extern "C" void abort(void);
+void * _NSConcreteGlobalBlock;
+
+P mkblock(void)
+{
+ printf("outside block\n");
+ ++count;
+ return p;
+}
+
+int main(void)
+{
+ mkblock()();
+ if (count != 1)
+ abort();
+ return 0;
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-codegen-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-codegen-1.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-codegen-1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-codegen-1.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5732232 - blocks */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-conditional-test.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-conditional-test.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-conditional-test.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-conditional-test.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5928316 */
/* Test for use of block pointer in a conditional expression. */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-copyconstructor.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-copyconstructor.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-copyconstructor.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-copyconstructor.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6169527 */
/* Test for proper use of copy constructors in setting up various block
support code. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 " { target *-*-darwin* } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-destructors.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-destructors.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-destructors.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-destructors.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 6243400 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
extern "C" void abort(void);
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-dynamic-array.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-dynamic-array.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-dynamic-array.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-dynamic-array.C Sun Jan 18 21:29:10 2009
@@ -1,8 +1,8 @@
/* APPLE LOCAL file radar 6212722 */
/* Test for use of array (dynamic or static) as copied in object in a block. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC++ -framework Foundation" { target *-*-darwin* } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
-/* { dg-do run } */
#import <Foundation/Foundation.h>
#import <Block.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-enum.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-enum.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-enum.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-enum.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5732232 - blocks */
/* Test use of enumerators in blocks. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-do.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-escape-do.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-do.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-do.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-for.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-escape-for.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-for.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-for.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
extern "C" void abort(void);
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-for1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-escape-for1.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-for1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-for1.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-nested-while.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-escape-nested-while.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-nested-while.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-nested-while.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-return.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-escape-return.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-return.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-return.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-return1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-escape-return1.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-return1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-return1.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-switch.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-escape-switch.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-switch.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-switch.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-while.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-escape-while.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-while.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-escape-while.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
extern "C" void abort(void);
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-return-type-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-explicit-return-type-1.C?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-return-type-1.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-return-type-1.C Sun Jan 18 21:29:10 2009
@@ -0,0 +1,35 @@
+/* APPLE LOCAL file blocks 6339747 */
+/* Test for blocks with explicit return type specified. */
+/* { dg-do compile } */
+/* { dg-options "-mmacosx-version-min=10.6" { target *-*-darwin* } } */
+
+int (*funcptr)(long);
+int sz1 = sizeof (int (*(^)(char x))(long));
+int sz2 = sizeof (^int(*)(int p1) { return 0; });
+int sz3 = sizeof (^int (int) throw() { return 0; });
+
+int (*fun(int p1))(double) { }
+
+void (^b1)() = ^{ };
+int (^b2)() = ^{ return 0; };
+int (^b3)() = ^int { return 0; };
+int (^b4)() = ^() { return 0; };
+int (^b5)(char*) = ^(char *p1) { return 0; };
+int (^b6)() = ^int () { return 0; };
+int (^b7)(char) = ^int (char p1) { return 0; };
+int (*(^b8)())(long) = ^int (*)(long) {return funcptr;};
+int (*(^b9)(char))(long) = ^int (*(char x))(long) {return funcptr;};
+void (^b10)(int) = ^(int p1){ };
+int (*(*funcptr2)(long))[5];
+int (*(*(^b11)(char))(long))[5] =
+ ^int (*(*(char x))(long))[5] { if (x) 0; return funcptr2;};
+
+int sz4 = sizeof (^int(*)(int p1)(int) { return 0; }); /* { dg-error "declared as function returning a function" } */
+
+int (*funcptr3[5])(long);
+int (*funcptr4)(long);
+int sz5 = sizeof (^(int i) { return i; });
+int sz6 = sizeof (^int (int i) { return i; });
+int sz7 = sizeof(^int (*())(long) {return funcptr4;});
+int sz8 = sizeof(^int (*[5])(long) {return funcptr3;}); /* { dg-error "block declared as returning an array" } */
+int sz9 = sizeof (^int (*((*)[5]))(long j) { j; }); /* { dg-error "was not declared in this scope" } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-return-type.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-explicit-return-type.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-return-type.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-return-type.C Sun Jan 18 21:29:10 2009
@@ -22,36 +22,36 @@
int main()
{
- __block int x = 1;
- __block int y = 2;
+ __block int x = 1;
+ __block int y = 2;
- ^void *{ return 0; };
+ ^void *{ return 0; };
- ^float(float y){ return y; };
+ ^float(float y){ return y; };
- ^double (float y, double d)
- {
- if (y)
- return d;
- else
- return y;
- };
-
- const char * (^chb) (int flag, const char *arg, char *arg1) = ^ const char * (int flag, const char *arg, char *arg1) {
- if (flag)
- return 0;
- if (flag == 1)
- return arg;
- else if (flag == 2)
- return "";
- return arg1;
- };
+ ^double (float y, double d)
+ {
+ if (y)
+ return d;
+ else
+ return y;
+ };
+
+ const char * (^chb) (int flag, const char *arg, char *arg1) = ^ const char * (int flag, const char *arg, char *arg1) {
+ if (flag)
+ return 0;
+ if (flag == 1)
+ return arg;
+ else if (flag == 2)
+ return "";
+ return arg1;
+ };
- ^PF { return &gf; };
+ ^PF { return &gf; };
- some_func(^ NSView * (id whatever) { return [some_object some_method_that_returns_id]; });
+ some_func(^ NSView * (id whatever) { return [some_object some_method_that_returns_id]; });
- double res = test(^double (int z){x = y+z; return z; });
+ double res = test(^(int z){x = y+z; return (double)z; });
}
void func()
@@ -75,10 +75,8 @@
int (^(^block)(double x))(char, short);
void foo() {
- int one = 1;
- block = ^(double x){ return ^int(char c, short y) { return one + c + y; };}; /* { dg-warning "returning block that lives on the local stack" } */
- // or:
- block = ^(double x){ return ^(char c, short y) { return one + (int)c + y; };}; /* { dg-warning "returning block that lives on the local stack" } */
+ int one = 1;
+ block = ^(double x){ return ^(char c, short y) { return one + c + y; };}; /* { dg-warning "returning block that lives on the local stack" } */
+ // or:
+ block = ^(double x){ return ^(char c, short y) { return one + (int)c + y; };}; /* { dg-warning "returning block that lives on the local stack" } */
}
-
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-this.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-explicit-this.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-this.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-explicit-this.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,9 @@
/* APPLE LOCAL file radar 6275956 */
/* Use of explicit "this" inside a block. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
extern "C" void abort (void);
struct S {
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-block.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-global-block.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-block.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-block.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,9 @@
/* APPLE LOCAL file radar 5822844 */
/* Test that blocks can be declared at global scope. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
#include <stdio.h>
static void* _NSConcreteGlobalBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-global-byref-1.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref-1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref-1.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5803005 */
/* Test that all global variables referenced in blocks are treated as 'byref' as default. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref-2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-global-byref-2.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref-2.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref-2.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 6014138 */
/* Test use of __block on locals which will be used as 'byref' variables in blocks. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-global-byref.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-global-byref.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5803600 */
/* Test that all global variables referenced in blocks are treated as 'byref' as default. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-helloworld.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-helloworld.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-helloworld.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-helloworld.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 6040305 */
/* Test that we can run a simple block literal. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-id-block.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-id-block.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-id-block.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-id-block.C Sun Jan 18 21:29:10 2009
@@ -2,8 +2,9 @@
#import <Foundation/Foundation.h>
/* Test that a block pointer can be converted back-and-forth to 'id' in
both initializsation and assignment without requiring a cast. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-id-global-block.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-id-global-block.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-id-global-block.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-id-global-block.C Sun Jan 18 21:29:10 2009
@@ -2,8 +2,9 @@
#import <Foundation/Foundation.h>
/* Test that a block pointer can be converted back-and-forth to 'id' in
both initializsation and assignment without requiring a cast. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC++" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
void * _NSConcreteGlobalBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-implicit-byref.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-implicit-byref.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-implicit-byref.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-implicit-byref.C Sun Jan 18 21:29:10 2009
@@ -2,8 +2,10 @@
/* Test that all 'ivars' are treated as implicit byref. Its inclusing inside |...|
block is treated with a warning and ignored.
*/
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-ObjC++ -mmacosx-version-min=10.5 -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-in-foreach-header.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-in-foreach-header.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-in-foreach-header.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-in-foreach-header.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 6268817 */
/* Testing use of block literal expression in ObjC's enumeration foreach-statement loop header. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC++ -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-in_structors.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-in_structors.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-in_structors.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-in_structors.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 6305545 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
extern "C" void abort(void);
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-ivarlayout.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-ivarlayout.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-ivarlayout.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-ivarlayout.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,6 @@
/* APPLE LOCAL file radar 6133042 */
/* Check that ivars of block pointer types are scanned by GC */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-ObjC++ -mmacosx-version-min=10.6 -fblocks -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target objc_gc } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-localisglobal.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-localisglobal.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-localisglobal.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-localisglobal.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,6 @@
/* APPLE LOCAL file radar 6230297 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6" { target *-*-darwin* } } */
-/* { dg-do run } */
/*
* localisglobal.c
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-block-var.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-nested-block-var.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-block-var.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-block-var.C Sun Jan 18 21:29:10 2009
@@ -1,8 +1,9 @@
/* APPLE LOCAL file radar 6225809 - radar 5847213 */
/* __block var used in a nested block neeb be implicitly declared in
each intervening block. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 " { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-nested-copied-var-1.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-1.C Sun Jan 18 21:29:10 2009
@@ -3,8 +3,9 @@
inner block must be 'frozen' at the outer block so, it has the value
at the point of inner block declaration and not when block is envoked.
*/
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
extern "C" void abort(void);
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-nested-copied-var-2.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-2.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-2.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5988451 */
/* More testing of copied in variables in nested blocks. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks -mmacosx-version-min=10.5 -ObjC++ -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void *_NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-3.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-nested-copied-var-3.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-3.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var-3.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5988451 */
/* Testing of copied in parameter in nested blocks. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks -mmacosx-version-min=10.5 -ObjC++ -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void *_NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-nested-copied-var.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-copied-var.C Sun Jan 18 21:29:10 2009
@@ -2,8 +2,9 @@
/* This test is to make sure that the inner block uses the value of the
copied-in variable at its point of declaration and not when block is envoked.
*/
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
extern "C" void abort(void);
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-global-copied-var-2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-nested-global-copied-var-2.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-global-copied-var-2.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-global-copied-var-2.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar global blocks */
/* More testing of copied in variables in nested blocks. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks -mmacosx-version-min=10.6 -ObjC++ -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void *_NSConcreteGlobalBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-global.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-nested-global.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-global.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested-global.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5822844 - global blocks */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-nested.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nested.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5732232 - blocks */
-/* { dg-do run } */
-/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-options "-mmacosx-version-min=10.6 -fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-no-trampoline.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-no-trampoline.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-no-trampoline.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-no-trampoline.C Sun Jan 18 21:29:10 2009
@@ -1,8 +1,8 @@
/* APPLE LOCAL file radar 6230701 */
/* Test that no trampoline is generated for this test case. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC++ -framework Foundation -O0" { target *-*-darwin* } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
-/* { dg-do run } */
#import <Foundation/NSObject.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-noescape-helper-1.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-1.C Sun Jan 18 21:29:10 2009
@@ -1,8 +1,8 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
/* Test for generation of escape _Block_byref_release call when a local
__block variable is copied in. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-noescape-helper-2.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-2.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-2.C Sun Jan 18 21:29:10 2009
@@ -1,8 +1,9 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
/* Test for generation of escape _Block_byref_release call when a local
__block variable is copied in and block has a return statement. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-3.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-noescape-helper-3.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-3.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper-3.C Sun Jan 18 21:29:10 2009
@@ -1,8 +1,9 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
/* Test for generation of escape _Block_object_dispose call when a __block
variable inside a block is declared and used. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-noescape-helper.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-noescape-helper.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nullblockisa.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-nullblockisa.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nullblockisa.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-nullblockisa.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 6244520 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
#include <stdlib.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-objectassign.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-objectassign.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-objectassign.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-objectassign.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 6175959 */
/* Test for generation of two new APIs; _Block_object_assign and _Block_object_dispose */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-pointer-type.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-pointer-type.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-pointer-type.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-pointer-type.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5732232 - blocks */
/* Test that mixup of a pointer type and a block pointer type does not cause program to crash. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
void * _NSConcreteStackBlock;
#ifndef _BLOCK_PRIVATE_H_
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-readweakgc.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-readweakgc.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-readweakgc.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-readweakgc.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-readweakgcivar.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-readweakgcivar.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-readweakgcivar.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-readweakgcivar.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC++ -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-reference-in-method.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-reference-in-method.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-reference-in-method.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-reference-in-method.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,6 @@
/* APPLE LOCAL file radar 6169580 */
/* Test use of blocks in member functions. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 " { target *-*-darwin* } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-weakblock.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-weakblock.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-weakblock.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-weakblock.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,9 @@
/* APPLE LOCAL radar 5847976 */
/* Test __weak attribute on __block objects. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC++ -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
#import <Foundation/Foundation.h>
// provide our own version for testing
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-weakblockassign.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/block-weakblockassign.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-weakblockassign.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/block-weakblockassign.C Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL radar 5847976 */
/* Test __weak attribute on __block objects. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC++ -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/kext-weak.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/kext-weak.C?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/kext-weak.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/kext-weak.C Sun Jan 18 21:29:10 2009
@@ -1,6 +1,6 @@
/* APPLE LOCAL kext weak_import 5935650 */
/* { dg-do assemble { target i?86*-*-darwin* } } */
-/* { dg-options "-mkernel -dynamic -m64" } */
+/* { dg-options "-mkernel -m64" } */
extern void foo() __attribute__((weak_import));
void test() {
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/r6476836.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/r6476836.C?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/r6476836.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/r6476836.C Sun Jan 18 21:29:10 2009
@@ -0,0 +1,32 @@
+/* Radar 6476836 */
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options "-Os -gdwarf-2 -dA -feliminate-unused-debug-types" } */
+/* { dg-final { scan-assembler-not "LASF2" } } */
+/* { dg-final { scan-assembler-not "LASF3" } } */
+
+bool f();
+
+void g(int p) {
+ class C {
+ public:
+ static bool m(int i) {
+ switch (i) {
+ case 1:
+ if (h())
+ return true;
+ if (f())
+ return m(0);
+ break;
+ };
+
+ return false;
+ }
+ static bool h() {
+ if (f())
+ return true;
+ return false;
+ }
+ };
+ if (C::m(p))
+ asm("nop");
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/typedef.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/typedef.C?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/typedef.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/typedef.C Sun Jan 18 21:29:10 2009
@@ -0,0 +1,17 @@
+/* APPLE LOCAL file, C++ typedefs of anonymous structs. */
+/* Radar 6007135 */
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options "-O0 -gdwarf-2 -dA" } */
+/* { dg-final { scan-assembler "DW_TAG_typedef" } } */
+
+
+typedef struct
+{
+ int exit_code;
+} type_t;
+
+int main (int argc, char const *argv[])
+{
+ type_t t = { 0 };
+ return t.exit_code;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6382081.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6382081.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6382081.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6382081.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,9 @@
+/* APPLE LOCAL file 6382081 */
+/* { dg-do compile { target i?86-apple-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-options "-m32 -std=c99" } */
+/* { dg-final { scan-assembler-not "fldll" } } */
+float foo(long long *p)
+{
+ return *p;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6440204.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6440204.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6440204.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/6440204.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,17 @@
+/* APPLE LOCAL file 6440204 */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-O2 -m64" } */
+/* { dg-final { scan-assembler "pslldq" } } */
+#include <xmmintrin.h>
+const short rgb[64] = {
+ 0x00ff, 0x01ff, 0x02ff, 0x03ff,
+ 0x04ff, 0x05ff, 0x06ff, 0x07ff
+};
+__m128i
+shuf(__m128i __vparm)
+{
+ __m128i __va;
+ __va = _mm_slli_si128(__vparm, 2);
+ return __va;
+}
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13-64bit.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13-64bit.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13-64bit.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13-64bit.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,1235 @@
+/* APPLE LOCAL file CW asm blocks */
+/* { dg-do assemble { target i?86*-*-darwin* x86_64-*-darwin* } } */
+/* { dg-options { -m64 -fasm-blocks -msse3 } } */
+/* Radar 6276417 */
+
+char fooc; short foos; int fooi; long long fooll; float foof; double food; long double foold;
+asm void bar() { fool:
+ adc eax, 1
+ adc fool, 1
+ adc eax, eax
+ adc fool, eax
+ adc eax, fool
+ add eax, 1
+ add fool, 1
+ add eax, eax
+ add fool, eax
+ add eax, fool
+ addpd xmm0, xmm0
+ addpd xmm0, fool
+ addps xmm0, xmm0
+ addps xmm0, fool
+ addsd xmm0, xmm0
+ addsd xmm0, fool
+ addss xmm0, xmm0
+ addss xmm0, fool
+ addsubpd xmm0, xmm0
+ addsubpd xmm0, fool
+ addsubps xmm0, xmm0
+ addsubps xmm0, fool
+ and eax, 1
+ and fool, 1
+ and eax, eax
+ and fool, eax
+ and eax, fool
+ andnpd xmm0, xmm0
+ andnpd xmm0, fool
+ andnps xmm0, xmm0
+ andnps xmm0, fool
+ andpd xmm0, xmm0
+ andpd xmm0, fool
+ andps xmm0, xmm0
+ andps xmm0, fool
+ ; arpl ax, ax
+ ; arpl foos, ax
+ bsf eax, eax
+ bsf eax, fool
+ bsr eax, eax
+ bsr eax, fool
+ bt eax, eax
+ bt fool, eax
+ bt eax, 1
+ bt fool, 1
+ btc eax, eax
+ btc fool, eax
+ btc eax, 1
+ btc fool, 1
+ btr eax, eax
+ btr fool, eax
+ btr eax, 1
+ btr fool, 1
+ bts eax, eax
+ bts fool, eax
+ bts eax, 1
+ bts fool, 1
+ ; call eax
+ ; call fool
+ ; call fool
+ clflush fool
+ cmova ax, ax
+ cmova ax, foos
+ cmova eax, eax
+ cmova eax, fooi
+ cmova rax, rax
+ cmova rax, fooll
+ cmovae eax, eax
+ cmovae eax, fool
+ cmovb eax, eax
+ cmovb eax, fool
+ cmovbe eax, eax
+ cmovbe eax, fool
+ cmovc eax, eax
+ cmovc eax, fool
+ cmove eax, eax
+ cmove eax, fool
+ cmovg eax, eax
+ cmovg eax, fool
+ cmovge eax, eax
+ cmovge eax, fool
+ cmovl eax, eax
+ cmovl eax, fool
+ cmovle eax, eax
+ cmovle eax, fool
+ cmovna eax, eax
+ cmovna eax, fool
+ cmovnae eax, eax
+ cmovnae eax, fool
+ cmovnb eax, eax
+ cmovnb eax, fool
+ cmovnbe eax, eax
+ cmovnbe eax, fool
+ cmovnc eax, eax
+ cmovnc eax, fool
+ cmovne eax, eax
+ cmovne eax, fool
+ cmovng eax, eax
+ cmovng eax, fool
+ cmovnge eax, eax
+ cmovnge eax, fool
+ cmovnl eax, eax
+ cmovnl eax, fool
+ cmovnle eax, eax
+ cmovnle eax, fool
+ cmovno eax, eax
+ cmovno eax, fool
+ cmovnp eax, eax
+ cmovnp eax, fool
+ cmovns eax, eax
+ cmovns eax, fool
+ cmovnz eax, eax
+ cmovnz eax, fool
+ cmovo eax, eax
+ cmovo eax, fool
+ cmovp eax, eax
+ cmovp eax, fool
+ cmovpe eax, eax
+ cmovpe eax, fool
+ cmovpo eax, eax
+ cmovpo eax, fool
+ cmovs eax, eax
+ cmovs eax, fool
+ cmovz eax, eax
+ cmovz eax, fool
+ cmp eax, 1
+ cmp fool, 1
+ cmp eax, eax
+ cmp fool, eax
+ cmp eax, fool
+ cmpeqpd xmm0, xmm0
+ cmpeqpd xmm0, fool
+ cmpeqps xmm0, xmm0
+ cmpeqps xmm0, fool
+ cmpeqsd xmm0, xmm0
+ cmpeqsd xmm0, fool
+ cmpeqss xmm0, xmm0
+ cmpeqss xmm0, fool
+ cmplepd xmm0, xmm0
+ cmplepd xmm0, fool
+ cmpleps xmm0, xmm0
+ cmpleps xmm0, fool
+ cmplesd xmm0, xmm0
+ cmplesd xmm0, fool
+ cmpless xmm0, xmm0
+ cmpless xmm0, fool
+ cmpltpd xmm0, xmm0
+ cmpltpd xmm0, fool
+ cmpltps xmm0, xmm0
+ cmpltps xmm0, fool
+ cmpltsd xmm0, xmm0
+ cmpltsd xmm0, fool
+ cmpltss xmm0, xmm0
+ cmpltss xmm0, fool
+ cmpneqpd xmm0, xmm0
+ cmpneqpd xmm0, fool
+ cmpneqps xmm0, xmm0
+ cmpneqps xmm0, fool
+ cmpneqsd xmm0, xmm0
+ cmpneqsd xmm0, fool
+ cmpneqss xmm0, xmm0
+ cmpneqss xmm0, fool
+ cmpnlepd xmm0, xmm0
+ cmpnlepd xmm0, fool
+ cmpnleps xmm0, xmm0
+ cmpnleps xmm0, fool
+ cmpnlesd xmm0, xmm0
+ cmpnlesd xmm0, fool
+ cmpnless xmm0, xmm0
+ cmpnless xmm0, fool
+ cmpnltpd xmm0, xmm0
+ cmpnltpd xmm0, fool
+ cmpnltps xmm0, xmm0
+ cmpnltps xmm0, fool
+ cmpnltsd xmm0, xmm0
+ cmpnltsd xmm0, fool
+ cmpnltss xmm0, xmm0
+ cmpnltss xmm0, fool
+ cmpordpd xmm0, xmm0
+ cmpordpd xmm0, fool
+ cmpordps xmm0, xmm0
+ cmpordps xmm0, fool
+ cmpordsd xmm0, xmm0
+ cmpordsd xmm0, fool
+ cmpordss xmm0, xmm0
+ cmpordss xmm0, fool
+ cmppd xmm0, xmm0, 4
+ cmppd xmm0, fool, 4
+ cmpps xmm0, xmm0, 4
+ cmpps xmm0, fool, 4
+ cmpsd xmm0, xmm0, 4
+ cmpsd xmm0, fool, 4
+ cmpss xmm0, xmm0, 4
+ cmpss xmm0, fool, 4
+ cmpunordpd xmm0, xmm0
+ cmpunordpd xmm0, fool
+ cmpunordps xmm0, xmm0
+ cmpunordps xmm0, fool
+ cmpunordsd xmm0, xmm0
+ cmpunordsd xmm0, fool
+ cmpunordss xmm0, xmm0
+ cmpunordss xmm0, fool
+ cmpxchg fool, eax
+ cmpxchg eax, eax
+ comisd xmm0, xmm0
+ comisd xmm0, fool
+ comiss xmm0, xmm0
+ comiss xmm0, fool
+ cvtdq2pd xmm0, xmm0
+ cvtdq2pd xmm0, fool
+ cvtdq2ps xmm0, xmm0
+ cvtdq2ps xmm0, fool
+ cvtpd2dq xmm0, xmm0
+ cvtpd2dq xmm0, fool
+ cvtpd2pi mm0, xmm0
+ cvtpd2pi mm0, fool
+ cvtpd2ps xmm0, xmm0
+ cvtpd2ps xmm0, fool
+ cvtpi2pd xmm0, mm0
+ cvtpi2pd xmm0, fool
+ cvtpi2ps xmm0, mm0
+ cvtpi2ps xmm0, fool
+ cvtps2dq xmm0, xmm0
+ cvtps2dq xmm0, fool
+ cvtps2pd xmm0, xmm0
+ cvtps2pd xmm0, fool
+ cvtps2pi mm0, xmm0
+ cvtps2pi mm0, fool
+ cvtsd2si eax, xmm0
+ cvtsd2si rax, xmm0
+ cvtsd2si eax, fool
+ cvtsd2si rax, fool
+ cvtsd2ss xmm0, xmm0
+ cvtsd2ss xmm0, fool
+ cvtsi2sd xmm0, eax
+ cvtsi2sd xmm0, fooi
+ cvtsi2sd xmm0, rax
+ cvtsi2sd xmm0, fooll
+ cvtsi2ss xmm0, eax
+ cvtsi2ss xmm0, fooi
+ cvtsi2ss xmm0, rax
+ cvtsi2ss xmm0, fooll
+ cvtss2sd xmm0, xmm0
+ cvtss2sd xmm0, fool
+ cvtss2si eax, xmm0
+ cvtss2si eax, fool
+ cvttpd2dq xmm0, xmm0
+ cvttpd2dq xmm0, fool
+ cvttpd2pi mm0, xmm0
+ cvttpd2pi mm0, fool
+ cvttps2dq xmm0, xmm0
+ cvttps2dq xmm0, fool
+ cvttps2pi mm0, xmm0
+ cvttps2pi mm0, fool
+ cvttsd2si eax, xmm0
+ cvttsd2si eax, fool
+ cvttss2si eax, xmm0
+ cvttss2si eax, fool
+ dec ah
+ dec fooc
+ dec ax
+ dec foos
+ dec eax
+ dec fooi
+ div ah
+ div fooc
+ div ax
+ div foos
+ div eax
+ div fooi
+ divpd xmm0, xmm0
+ divpd xmm0, fool
+ divps xmm0, xmm0
+ divps xmm0, fool
+ divsd xmm0, xmm0
+ divsd xmm0, fool
+ divss xmm0, xmm0
+ divss xmm0, fool
+ enter 1, 1
+ fadd st(0), st(2)
+ fadd st(2), st(0)
+ fadd foof
+ fadd food
+ faddp st(2), st(0)
+ fbld fool
+ fbstp fool
+ fcmovb st(0), st(2)
+ fcmovbe st(0), st(2)
+ fcmove st(0), st(2)
+ fcmovnb st(0), st(2)
+ fcmovnbe st(0), st(2)
+ fcmovne st(0), st(2)
+ fcmovnu st(0), st(2)
+ fcmovu st(0), st(2)
+ fcom st(2)
+ fcom foof
+ fcom food
+ fcomi st(0), st(2)
+ fcomip st(0), st(2)
+ fcomp st(2)
+ fcomp foof
+ fcomp food
+ fdiv st(0), st(2)
+ fdiv st(2), st(0)
+ fdiv foof
+ fdiv food
+ fdivp st(2), st(0)
+ fdivr st(0), st(2)
+ fdivr foof
+ fdivr food
+ fdivrp st(2), st(0)
+ ffree st(2)
+ fiadd foos
+ fiadd fooi
+ ficom foos
+ ficom fooi
+ ficomp foos
+ ficomp fooi
+ fidiv foos
+ fidiv fooi
+ fidivr foos
+ fidivr fooi
+ fild foos
+ fild fooi
+ fild fooll
+ fimul foos
+ fimul fooi
+ fist foos
+ fist fooi
+ fistp foos
+ fistp fooi
+ fistp fooll
+ fisttp foos
+ fisttp fooi
+ fisttp fooll
+ fisub foos
+ fisub fooi
+ fisubr foos
+ fisubr fooi
+ fld st(2)
+ fld foof
+ fld food
+ fld foold
+ fldcw foos
+ fldenv fool
+ fldt fool
+ fmul st(2), st(0)
+ fmul st(0), st(2)
+ fmul foof
+ fmul food
+ fmulp st(2), st(0)
+ fnsave fool
+ fnstcw fool
+ fnstenv fool
+ fnstsw fool
+ fnstsw eax
+ frstor fool
+ fsave fool
+ fst st(2)
+ fst foof
+ fst food
+ fstcw fool
+ fstenv fool
+ fstp st(2)
+ fstp foof
+ fstp food
+ fstp foold
+ fstsw fool
+ fstsw eax
+ fsub st(2), st(0)
+ fsub st(0), st(2)
+ fsub foof
+ fsub food
+ fsubr st(2), st(0)
+ fsubr st(0), st(2)
+ fsubr foof
+ fsubr food
+ fucom st(2)
+ fucomi st(0), st(2)
+ fucomip st(0), st(2)
+ fucomp st(2)
+ fxch st(2)
+ fxrstor fool
+ fxsave fool
+ haddpd xmm0, xmm0
+ haddpd xmm0, fool
+ haddps xmm0, xmm0
+ haddps xmm0, fool
+ hsubpd xmm0, xmm0
+ hsubpd xmm0, fool
+ hsubps xmm0, xmm0
+ hsubps xmm0, fool
+ idiv ah
+ idiv fooc
+ idiv ax
+ idiv foos
+ idiv eax
+ idiv fooi
+ idiv rax
+ idiv fooll
+ imul eax, eax, 4
+ imul eax, fool, 4
+ in eax, 1
+ inc ah
+ inc fooc
+ inc ax
+ inc foos
+ inc eax
+ inc fooi
+ inc rax
+ inc fooll
+ ; ins fooc, dx
+ ; ins foos, dx
+ ; ins fooi, dx
+ int 1
+ invlpg fool
+ ja fool
+ jae fool
+ jb fool
+ jbe fool
+ jc fool
+ ; jcxz .-24
+ je fool
+ jecxz .-24
+ jg fool
+ jge fool
+ jl fool
+ jle fool
+ ; jmp fool
+ ; jmp eax
+ ; jmp fooi
+ jna fool
+ jnae fool
+ jnb fool
+ jnc fool
+ jne fool
+ jng fool
+ jnge fool
+ jnl fool
+ jnle fool
+ jno fool
+ jnp fool
+ jns fool
+ jnz fool
+ jo fool
+ jp fool
+ jpe fool
+ jpo fool
+ js fool
+ jz fool
+ lar eax, eax
+ lar eax, fool
+ lddqu xmm0, fool
+ ldmxcsr fool
+ ; lds ax, foos
+ ; lds eax, fooi
+ ; lds rax, fooll
+ lea eax, fool
+ ; les ax, foos
+ ; les eax, fooi
+ ; les rax, fooll
+ lfs ax, foos
+ lfs eax, fooi
+ lfs rax, fooll
+ lgdt fool
+ lgs ax, foos
+ lgs eax, fooi
+ lgs rax, fooll
+ lidt fool
+ lldt ax
+ lldt foos
+ lmsw fool
+ ; lods fooc
+ ; lods foos
+ ; lods fooi
+ ; lods fooll
+ loop .-24
+ loope .-24
+ loopne .-24
+ loopnz .-24
+ loopz .-24
+ lsl ax, ax
+ lsl ax, foos
+ lsl eax, eax
+ lsl eax, fooi
+ lss ax, foos
+ lss eax, fooi
+ lss rax, fooll
+ ltr ax
+ ltr foos
+ maskmovdqu xmm0, xmm0
+ maskmovq mm0, mm0
+ maxpd xmm0, xmm0
+ maxpd xmm0, fool
+ maxps xmm0, xmm0
+ maxps xmm0, fool
+ maxsd xmm0, xmm0
+ maxsd xmm0, fool
+ maxss xmm0, xmm0
+ maxss xmm0, fool
+ minpd xmm0, xmm0
+ minpd xmm0, fool
+ minps xmm0, xmm0
+ minps xmm0, fool
+ minsd xmm0, xmm0
+ minsd xmm0, fool
+ minss xmm0, xmm0
+ minss xmm0, fool
+ mov ah, ah
+ mov fooc, ah
+ mov ah, 1
+ mov fooc, 1
+ mov ax, ax
+ mov foos, ax
+ mov ax, 1
+ mov foos, 1
+ mov eax, eax
+ mov fooi, eax
+ mov eax, 1
+ mov fooi, 1
+ mov rax, rax
+ mov fooll, rax
+ mov rax, 1
+ mov fooll, 1
+ mov ah, ah
+ mov ah, 1
+ mov ah, fooc
+ mov ax, ax
+ mov ax, 1
+ mov ax, foos
+ mov eax, eax
+ mov eax, 1
+ mov eax, fooi
+ mov rax, rax
+ mov rax, 1
+ mov rax, fooll
+ movapd xmm0, xmm0
+ movapd xmm0, fool
+ movapd xmm0, xmm0
+ movapd fool, xmm0
+ movaps xmm0, xmm0
+ movaps xmm0, fool
+ movaps xmm0, xmm0
+ movaps fool, xmm0
+ movd eax, xmm0
+ movd fool, xmm0
+ movd xmm0, eax
+ movd xmm0, fool
+ movd mm0, eax
+ movd mm0, fool
+ movd eax, mm0
+ movd fool, mm0
+ movddup xmm0, xmm0
+ movddup xmm0, fool
+ movdq2q mm0, xmm0
+ movdqa xmm0, xmm0
+ movdqa xmm0, fool
+ movdqu xmm0, xmm0
+ movdqu xmm0, fool
+ movhlps xmm0, xmm0
+ movhpd xmm0, fool
+ movhpd fool, xmm0
+ movhps xmm0, fool
+ movhps fool, xmm0
+ movlhps xmm0, xmm0
+ movlpd xmm0, fool
+ movlpd fool, xmm0
+ movlps xmm0, fool
+ movlps fool, xmm0
+ movmskpd eax, xmm0
+ movmskps eax, xmm0
+ movntdq fool, xmm0
+ movnti fool, eax
+ movntpd fool, xmm0
+ movntps fool, xmm0
+ movntq fool, mm0
+ movq xmm0, xmm0
+ movq xmm0, fool
+ movq fool, xmm0
+ movq mm0, mm0
+ movq mm0, fool
+ movq fool, mm0
+ movq2dq xmm0, mm0
+ movs fooc, fooc
+ movs foos, foos
+ movs fooi, fooi
+ movs fooll, fooll
+ movsd xmm0, xmm0
+ movsd fool, xmm0
+ movsd xmm0, xmm0
+ movsd xmm0, fool
+ movshdup xmm0, xmm0
+ movshdup xmm0, fool
+ movsldup xmm0, xmm0
+ movsldup xmm0, fool
+ movss xmm0, xmm0
+ movss fool, xmm0
+ movss xmm0, xmm0
+ movss xmm0, fool
+ movsx ax, ah
+ movsx ax, fooc
+ movsx eax, ah
+ movsx eax, fooc
+ movsx eax, ax
+ movsx eax, foos
+ movupd xmm0, xmm0
+ movupd xmm0, fool
+ movupd xmm0, xmm0
+ movupd fool, xmm0
+ movups xmm0, xmm0
+ movups xmm0, fool
+ movups xmm0, xmm0
+ movups fool, xmm0
+ movzx ax, ah
+ movzx ax, fooc
+ movzx eax, ah
+ movzx eax, fooc
+ movzx eax, ax
+ movzx eax, foos
+ mul ah
+ mul fooc
+ mul ax
+ mul foos
+ mul eax
+ mul fooi
+ mulpd xmm0, xmm0
+ mulpd xmm0, fool
+ mulps xmm0, xmm0
+ mulps xmm0, fool
+ mulsd xmm0, xmm0
+ mulsd xmm0, fool
+ mulss xmm0, xmm0
+ mulss xmm0, fool
+ neg ah
+ neg fooc
+ neg ax
+ neg foos
+ neg eax
+ neg fooi
+ not ah
+ not fooc
+ not ax
+ not foos
+ not eax
+ not fooi
+ or ah, ah
+ or fooc, ah
+ or ah, 1
+ or fooc, 1
+ or ax, ax
+ or foos, ax
+ or ax, 1
+ or foos, 1
+ or eax, eax
+ or fooi, eax
+ or eax, 1
+ or fooi, 1
+ or rax, rax
+ or fooll, rax
+ or rax, 1
+ or fooll, 1
+ or ah, fooc
+ or ax, foos
+ or eax, fooi
+ orpd xmm0, xmm0
+ orpd xmm0, fool
+ orps xmm0, xmm0
+ orps xmm0, fool
+ out 1, al
+ out dx, al
+ out 1, ax
+ out dx, ax
+ out 1, eax
+ out dx, eax
+ ; outs dx, fooc
+ ; outs dx, foos
+ ; outs dx, fooi
+ packssdw xmm0, xmm0
+ packssdw xmm0, fool
+ packssdw mm0, mm0
+ packssdw mm0, fool
+ packsswb xmm0, xmm0
+ packsswb xmm0, fool
+ packsswb mm0, mm0
+ packsswb mm0, fool
+ packuswb xmm0, xmm0
+ packuswb xmm0, fool
+ packuswb mm0, mm0
+ packuswb mm0, fool
+ paddb xmm0, xmm0
+ paddb xmm0, fool
+ paddb mm0, mm0
+ paddb mm0, fool
+ paddd xmm0, xmm0
+ paddd xmm0, fool
+ paddd mm0, mm0
+ paddd mm0, fool
+ paddq xmm0, xmm0
+ paddq xmm0, fool
+ paddq mm0, mm0
+ paddq mm0, fool
+ paddsb xmm0, xmm0
+ paddsb xmm0, fool
+ paddsb mm0, mm0
+ paddsb mm0, fool
+ paddsw xmm0, xmm0
+ paddsw xmm0, fool
+ paddsw mm0, mm0
+ paddsw mm0, fool
+ paddusb xmm0, xmm0
+ paddusb xmm0, fool
+ paddusb mm0, mm0
+ paddusb mm0, fool
+ paddusw xmm0, xmm0
+ paddusw xmm0, fool
+ paddusw mm0, mm0
+ paddusw mm0, fool
+ paddw xmm0, xmm0
+ paddw xmm0, fool
+ paddw mm0, mm0
+ paddw mm0, fool
+ pand xmm0, xmm0
+ pand xmm0, fool
+ pand mm0, mm0
+ pand mm0, fool
+ pandn xmm0, xmm0
+ pandn xmm0, fool
+ pandn mm0, mm0
+ pandn mm0, fool
+ pavgb xmm0, xmm0
+ pavgb xmm0, fool
+ pavgb mm0, mm0
+ pavgb mm0, fool
+ pavgw xmm0, xmm0
+ pavgw xmm0, fool
+ pavgw mm0, mm0
+ pavgw mm0, fool
+ pcmpeqb xmm0, xmm0
+ pcmpeqb xmm0, fool
+ pcmpeqb mm0, mm0
+ pcmpeqb mm0, fool
+ pcmpeqd xmm0, xmm0
+ pcmpeqd xmm0, fool
+ pcmpeqd mm0, mm0
+ pcmpeqd mm0, fool
+ pcmpeqw xmm0, xmm0
+ pcmpeqw xmm0, fool
+ pcmpeqw mm0, mm0
+ pcmpeqw mm0, fool
+ pcmpgtb xmm0, xmm0
+ pcmpgtb xmm0, fool
+ pcmpgtb mm0, mm0
+ pcmpgtb mm0, fool
+ pcmpgtd xmm0, xmm0
+ pcmpgtd xmm0, fool
+ pcmpgtd mm0, mm0
+ pcmpgtd mm0, fool
+ pcmpgtw xmm0, xmm0
+ pcmpgtw xmm0, fool
+ pcmpgtw mm0, mm0
+ pcmpgtw mm0, fool
+ pextrw eax, xmm0, 4
+ pextrw rax, xmm0, 4
+ pextrw eax, mm0, 4
+ pextrw rax, mm0, 4
+ pinsrw xmm0, eax, 4
+ pinsrw mm0, eax, 4
+ pinsrw xmm0, rax, 4
+ pinsrw mm0, rax, 4
+ pinsrw xmm0, fool, 4
+ pinsrw mm0, fool, 4
+ pmaddwd xmm0, xmm0
+ pmaddwd xmm0, fool
+ pmaddwd mm0, mm0
+ pmaddwd mm0, fool
+ pmaxsw xmm0, xmm0
+ pmaxsw xmm0, fool
+ pmaxsw mm0, mm0
+ pmaxsw mm0, fool
+ pmaxub xmm0, xmm0
+ pmaxub xmm0, fool
+ pmaxub mm0, mm0
+ pmaxub mm0, fool
+ pminsw xmm0, xmm0
+ pminsw xmm0, fool
+ pminsw mm0, mm0
+ pminsw mm0, fool
+ pminub xmm0, xmm0
+ pminub xmm0, fool
+ pminub mm0, mm0
+ pminub mm0, fool
+ pmovmskb eax, xmm0
+ pmovmskb rax, xmm0
+ pmovmskb eax, mm0
+ pmovmskb rax, mm0
+ pmulhuw xmm0, xmm0
+ pmulhuw xmm0, fool
+ pmulhuw mm0, mm0
+ pmulhuw mm0, fool
+ pmulhw xmm0, xmm0
+ pmulhw xmm0, fool
+ pmulhw mm0, mm0
+ pmulhw mm0, fool
+ pmullw xmm0, xmm0
+ pmullw xmm0, fool
+ pmullw mm0, mm0
+ pmullw mm0, fool
+ pmuludq xmm0, xmm0
+ pmuludq xmm0, fool
+ pmuludq mm0, mm0
+ pmuludq mm0, fool
+ pop ax
+ pop foos
+ pop rax
+ pop fooll
+ por xmm0, xmm0
+ por xmm0, fool
+ por mm0, mm0
+ por mm0, fool
+ prefetchnta fool
+ prefetcht0 fool
+ prefetcht1 fool
+ prefetcht2 fool
+ psadbw xmm0, xmm0
+ psadbw xmm0, fool
+ psadbw mm0, mm0
+ psadbw mm0, fool
+ pshufd xmm0, xmm0, 4
+ pshufd xmm0, fool, 4
+ pshufhw xmm0, xmm0, 4
+ pshufhw xmm0, fool, 4
+ pshuflw xmm0, xmm0, 4
+ pshuflw xmm0, fool, 4
+ pshufw mm0, mm0, 4
+ pshufw mm0, fool, 4
+ pslld xmm0, xmm0
+ pslld xmm0, fool
+ pslld xmm0, 1
+ pslld mm0, mm0
+ pslld mm0, fool
+ pslld mm0, 1
+ pslldq xmm0, 1
+ psllq xmm0, xmm0
+ psllq xmm0, fool
+ psllq xmm0, 1
+ psllq mm0, mm0
+ psllq mm0, fool
+ psllq mm0, 1
+ psllw xmm0, xmm0
+ psllw xmm0, fool
+ psllw xmm0, 1
+ psllw mm0, mm0
+ psllw mm0, fool
+ psllw mm0, 1
+ psrad xmm0, xmm0
+ psrad xmm0, fool
+ psrad xmm0, 1
+ psrad mm0, mm0
+ psrad mm0, fool
+ psrad mm0, 1
+ psraw xmm0, xmm0
+ psraw xmm0, fool
+ psraw xmm0, 1
+ psraw mm0, mm0
+ psraw mm0, fool
+ psraw mm0, 1
+ psrld xmm0, xmm0
+ psrld xmm0, fool
+ psrld xmm0, 1
+ psrld mm0, mm0
+ psrld mm0, fool
+ psrld mm0, 1
+ psrldq xmm0, 1
+ psrlq xmm0, xmm0
+ psrlq xmm0, fool
+ psrlq xmm0, 1
+ psrlq mm0, mm0
+ psrlq mm0, fool
+ psrlq mm0, 1
+ psrlw xmm0, xmm0
+ psrlw xmm0, fool
+ psrlw xmm0, 1
+ psrlw mm0, mm0
+ psrlw mm0, fool
+ psrlw mm0, 1
+ psubb xmm0, xmm0
+ psubb xmm0, fool
+ psubb mm0, mm0
+ psubb mm0, fool
+ psubd xmm0, xmm0
+ psubd xmm0, fool
+ psubd mm0, mm0
+ psubd mm0, fool
+ psubq xmm0, xmm0
+ psubq xmm0, fool
+ psubq mm0, mm0
+ psubq mm0, fool
+ psubsb xmm0, xmm0
+ psubsb xmm0, fool
+ psubsb mm0, mm0
+ psubsb mm0, fool
+ psubsw xmm0, xmm0
+ psubsw xmm0, fool
+ psubsw mm0, mm0
+ psubsw mm0, fool
+ psubusb xmm0, xmm0
+ psubusb xmm0, fool
+ psubusb mm0, mm0
+ psubusb mm0, fool
+ psubusw xmm0, xmm0
+ psubusw xmm0, fool
+ psubusw mm0, mm0
+ psubusw mm0, fool
+ psubw xmm0, xmm0
+ psubw xmm0, fool
+ psubw mm0, mm0
+ psubw mm0, fool
+ punpckhbw xmm0, xmm0
+ punpckhbw xmm0, fool
+ punpckhbw mm0, mm0
+ punpckhbw mm0, fool
+ punpckhdq xmm0, xmm0
+ punpckhdq xmm0, fool
+ punpckhdq mm0, mm0
+ punpckhdq mm0, fool
+ punpckhqdq xmm0, xmm0
+ punpckhqdq xmm0, fool
+ punpckhwd xmm0, xmm0
+ punpckhwd xmm0, fool
+ punpckhwd mm0, mm0
+ punpckhwd mm0, fool
+ punpcklbw xmm0, xmm0
+ punpcklbw xmm0, fool
+ punpcklbw mm0, mm0
+ punpcklbw mm0, fool
+ punpckldq xmm0, xmm0
+ punpckldq xmm0, fool
+ punpckldq mm0, mm0
+ punpckldq mm0, fool
+ punpcklqdq xmm0, xmm0
+ punpcklqdq xmm0, fool
+ punpcklwd xmm0, xmm0
+ punpcklwd xmm0, fool
+ punpcklwd mm0, mm0
+ punpcklwd mm0, fool
+ push ax
+ push foos
+ push rax
+ push fooll
+ push 1
+ pxor xmm0, xmm0
+ pxor xmm0, fool
+ pxor mm0, mm0
+ pxor mm0, fool
+ rcl ah, 1
+ rcl fooc, 1
+ rcl ax, 1
+ rcl foos, 1
+ rcl eax, 1
+ rcl fooi, 1
+ rcl ah, cl
+ rcl fooc, cl
+ rcl ax, cl
+ rcl foos, cl
+ rcl eax, cl
+ rcl fooi, cl
+ rcpps xmm0, xmm0
+ rcpps xmm0, fool
+ rcpss xmm0, xmm0
+ rcpss xmm0, fool
+ rcr ah, 1
+ rcr fooc, 1
+ rcr ax, 1
+ rcr foos, 1
+ rcr eax, 1
+ rcr fooi, 1
+ rcr ah, cl
+ rcr fooc, cl
+ rcr ax, cl
+ rcr foos, cl
+ rcr eax, cl
+ rcr fooi, cl
+ ret 1
+ rol ah, 1
+ rol fooc, 1
+ rol ax, 1
+ rol foos, 1
+ rol eax, 1
+ rol fooi, 1
+ rol ah, cl
+ rol fooc, cl
+ rol ax, cl
+ rol foos, cl
+ rol eax, cl
+ rol fooi, cl
+ ror ah, 1
+ ror fooc, 1
+ ror ax, 1
+ ror foos, 1
+ ror eax, 1
+ ror fooi, 1
+ ror ah, cl
+ ror fooc, cl
+ ror ax, cl
+ ror foos, cl
+ ror eax, cl
+ ror fooi, cl
+ rsqrtps xmm0, xmm0
+ rsqrtps xmm0, fool
+ rsqrtss xmm0, xmm0
+ rsqrtss xmm0, fool
+ sal ah, 1
+ sal fooc, 1
+ sal ax, 1
+ sal foos, 1
+ sal eax, 1
+ sal fooi, 1
+ sal ah, cl
+ sal fooc, cl
+ sal ax, cl
+ sal foos, cl
+ sal eax, cl
+ sal fooi, cl
+ sar ah, 1
+ sar fooc, 1
+ sar ax, 1
+ sar foos, 1
+ sar eax, 1
+ sar fooi, 1
+ sar ah, cl
+ sar fooc, cl
+ sar ax, cl
+ sar foos, cl
+ sar eax, cl
+ sar fooi, cl
+ sbb ah, ah
+ sbb fooc, ah
+ sbb ah, 1
+ sbb fooc, 1
+ sbb ax, ax
+ sbb foos, ax
+ sbb ax, 1
+ sbb foos, 1
+ sbb eax, eax
+ sbb fooi, eax
+ sbb eax, 1
+ sbb fooi, 1
+ sbb ah, fooc
+ sbb ax, foos
+ sbb eax, fooi
+ scas fooc
+ scas foos
+ scas fooi
+ scas fooll
+ seta ah
+ seta fool
+ setae ah
+ setae fool
+ setb ah
+ setb fool
+ setbe ah
+ setbe fool
+ setc ah
+ setc fool
+ sete ah
+ sete fool
+ setg ah
+ setg fool
+ setge ah
+ setge fool
+ setl ah
+ setl fool
+ setle ah
+ setle fool
+ setna ah
+ setna fool
+ setnae ah
+ setnae fool
+ setnb ah
+ setnb fool
+ setnbe ah
+ setnbe fool
+ setnc ah
+ setnc fool
+ setne ah
+ setne fool
+ setng ah
+ setng fool
+ setnge ah
+ setnge fool
+ setnl ah
+ setnl fool
+ setnle ah
+ setnle fool
+ setno ah
+ setno fool
+ setnp ah
+ setnp fool
+ setns ah
+ setns fool
+ setnz ah
+ setnz fool
+ seto ah
+ seto fool
+ setp ah
+ setp fool
+ setpe ah
+ setpe fool
+ setpo ah
+ setpo fool
+ sets ah
+ sets fool
+ setz ah
+ setz fool
+ ; sgdt fool
+ shl ah, 1
+ shl fooc, 1
+ shl ax, 1
+ shl foos, 1
+ shl eax, 1
+ shl fooi, 1
+ shl ah, cl
+ shl fooc, cl
+ shl ax, cl
+ shl foos, cl
+ shl eax, cl
+ shl fooi, cl
+ shld ax, ax, 4
+ shld foos, ax, 4
+ shld eax, eax, 4
+ shld fooi, eax, 4
+ shld rax, rax, 4
+ shld fooll, rax, 4
+ shr ah, 1
+ shr fooc, 1
+ shr ax, 1
+ shr foos, 1
+ shr eax, 1
+ shr fooi, 1
+ shr ah, cl
+ shr fooc, cl
+ shr ax, cl
+ shr foos, cl
+ shr eax, cl
+ shr fooi, cl
+ shrd ax, ax, 4
+ shrd foos, ax, 4
+ shrd eax, eax, 4
+ shrd fooi, eax, 4
+ shrd rax, rax, 4
+ shrd fooll, rax, 4
+ shufpd xmm0, xmm0, 4
+ shufpd xmm0, fool, 4
+ shufps xmm0, xmm0, 4
+ shufps xmm0, fool, 4
+ ; sidt fool
+ sldt ax
+ sldt fool
+ smsw ax
+ smsw fool
+ sqrtpd xmm0, xmm0
+ sqrtpd xmm0, fool
+ sqrtps xmm0, xmm0
+ sqrtps xmm0, fool
+ sqrtsd xmm0, xmm0
+ sqrtsd xmm0, fool
+ sqrtss xmm0, xmm0
+ sqrtss xmm0, fool
+ stmxcsr fool
+ stos fool
+ str ax
+ str fool
+ sub eax, 1
+ sub fool, 1
+ sub eax, eax
+ sub fool, eax
+ sub eax, fool
+ subpd xmm0, xmm0
+ subpd xmm0, fool
+ subps xmm0, xmm0
+ subps xmm0, fool
+ subsd xmm0, xmm0
+ subsd xmm0, fool
+ subss xmm0, xmm0
+ subss xmm0, fool
+ test eax, eax
+ test ah, 1
+ test fooc, 1
+ test ax, 1
+ test foos, 1
+ test eax, 1
+ test fooi, 1
+ ucomisd xmm0, xmm0
+ ucomisd xmm0, fool
+ ucomiss xmm0, xmm0
+ ucomiss xmm0, fool
+ unpckhpd xmm0, xmm0
+ unpckhpd xmm0, fool
+ unpckhps xmm0, xmm0
+ unpckhps xmm0, fool
+ unpcklpd xmm0, xmm0
+ unpcklpd xmm0, fool
+ unpcklps xmm0, xmm0
+ unpcklps xmm0, fool
+ verr ax
+ verr foos
+ verw ax
+ verw foos
+ xadd ah, ah
+ xadd fooc, ah
+ xadd ax, ax
+ xadd foos, ax
+ xadd eax, eax
+ xadd fooi, eax
+ xchg eax, eax
+ xchg fool, eax
+ xchg eax, fool
+ xlat fool
+ xor eax, eax
+ xor fool, eax
+ xor eax, 1
+ xor fool, 1
+ xor eax, fool
+ xorpd xmm0, xmm0
+ xorpd xmm0, fool
+ xorps xmm0, xmm0
+ xorps xmm0, fool
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-13.c Sun Jan 18 21:29:10 2009
@@ -67,8 +67,10 @@
call fool
call fool
clflush fool
+ cmova ax, ax
+ cmova ax, foos
cmova eax, eax
- cmova eax, fool
+ cmova eax, fooi
cmovae eax, eax
cmovae eax, fool
cmovb eax, eax
@@ -119,8 +121,14 @@
cmovo eax, fool
cmovp eax, eax
cmovp eax, fool
+ cmovpe eax, eax
+ cmovpe eax, fool
+ cmovpo eax, eax
+ cmovpo eax, fool
cmovs eax, eax
cmovs eax, fool
+ cmovz eax, eax
+ cmovz eax, fool
cmp eax, 1
cmp fool, 1
cmp eax, eax
@@ -228,8 +236,10 @@
cvtsd2si eax, fool
cvtsd2ss xmm0, xmm0
cvtsd2ss xmm0, fool
- cvtsi2sd xmm0, fool
- cvtsi2ss xmm0, fool
+ cvtsi2sd xmm0, eax
+ cvtsi2sd xmm0, fooi
+ cvtsi2ss xmm0, eax
+ cvtsi2ss xmm0, fooi
cvtss2sd xmm0, xmm0
cvtss2sd xmm0, fool
cvtss2si eax, xmm0
@@ -395,6 +405,9 @@
inc foos
inc eax
inc fooi
+ ins fooc, dx
+ ins foos, dx
+ ins fooi, dx
int 1
invlpg fool
ja fool
@@ -435,16 +448,23 @@
lar eax, fool
lddqu xmm0, fool
ldmxcsr fool
+ lds ax, foos
lds eax, fooi
lea eax, fool
+ les ax, foos
les eax, fooi
+ lfs ax, foos
lfs eax, fooi
lgdt fool
+ lgs ax, foos
lgs eax, fooi
lidt fool
lldt ax
lldt foos
lmsw fool
+ lods fooc
+ lods foos
+ lods fooi
loop .-24
loope .-24
loopne .-24
@@ -454,6 +474,7 @@
lsl ax, foos
lsl eax, eax
lsl eax, fooi
+ lss ax, foos
lss eax, fooi
ltr ax
ltr foos
@@ -475,13 +496,27 @@
minsd xmm0, fool
minss xmm0, xmm0
minss xmm0, fool
+ mov ah, ah
+ mov fooc, ah
+ mov ah, 1
+ mov fooc, 1
+ mov ax, ax
+ mov foos, ax
+ mov ax, 1
+ mov foos, 1
mov eax, eax
mov fooi, eax
mov eax, 1
mov fooi, 1
+ mov ah, ah
+ mov ah, 1
+ mov ah, fooc
+ mov ax, ax
+ mov ax, 1
+ mov ax, foos
mov eax, eax
- mov eax, fool
mov eax, 1
+ mov eax, fooi
movapd xmm0, xmm0
movapd xmm0, fool
movapd xmm0, xmm0
@@ -529,6 +564,9 @@
movq mm0, fool
movq fool, mm0
movq2dq xmm0, mm0
+ movs fooc, fooc
+ movs foos, foos
+ movs fooi, fooi
movsd xmm0, xmm0
movsd fool, xmm0
movsd xmm0, xmm0
@@ -612,6 +650,9 @@
out dx, ax
out 1, eax
out dx, eax
+ outs dx, fooc
+ outs dx, foos
+ outs dx, fooi
packssdw xmm0, xmm0
packssdw xmm0, fool
packssdw mm0, mm0
@@ -740,8 +781,10 @@
pmuludq xmm0, fool
pmuludq mm0, mm0
pmuludq mm0, fool
+ pop ax
+ pop foos
pop eax
- pop fool
+ pop fooi
por xmm0, xmm0
por xmm0, fool
por mm0, mm0
@@ -872,8 +915,10 @@
punpcklwd xmm0, fool
punpcklwd mm0, mm0
punpcklwd mm0, fool
+ push ax
+ push foos
push eax
- push fool
+ push fooi
push 1
pxor xmm0, xmm0
pxor xmm0, fool
@@ -975,6 +1020,9 @@
sbb ah, fooc
sbb ax, foos
sbb eax, fooi
+ scas fooc
+ scas foos
+ scas fooi
seta ah
seta fool
setae ah
@@ -1086,6 +1134,7 @@
sqrtss xmm0, xmm0
sqrtss xmm0, fool
stmxcsr fool
+ stos fool
str ax
str fool
sub eax, 1
@@ -1133,6 +1182,7 @@
xchg eax, eax
xchg fool, eax
xchg eax, fool
+ xlat fool
xor eax, eax
xor fool, eax
xor eax, 1
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-30.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-30.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-30.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-30.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,8 @@
/* APPLE LOCAL file CW asm blocks */
/* { dg-do assemble { target i?86*-*-darwin* } } */
/* { dg-options { -fasm-blocks -msse3 } } */
+/* Shouldn't be necessary, but it doesn't work yet. */
+/* { dg-require-effective-target ilp32 } */
/* Radar 4300108 */
void foo() {
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-6116917.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-6116917.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-6116917.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-6116917.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 6116917 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC -Os -Wall -Wextra" { target *-*-darwin* } } */
-/* { dg-do run } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcglobal.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcglobal.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcglobal.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcglobal.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5832193 */
/* assigning a Block into a global should elicit a global write-barrier under GC */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -fobjc-gc" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcivar.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcivar.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcivar.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcivar.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5832193 */
/* assigning a Block into an ivar should elicit a write-barrier under GC */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#ifdef objc_assign_ivar
#define __objc_assign_ivar objc_assign_ivar
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcstrongcast.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcstrongcast.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcstrongcast.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assigngcstrongcast.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5832193 */
/* assigning a Block into an struct slot should elicit a write-barrier under GC */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#ifdef objc_assign_ivar
#define __objc_assign_ivar objc_assign_ivar
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc-1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc-1.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgc.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgcivar.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgcivar.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgcivar.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-assignweakgcivar.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-1.c Sun Jan 18 21:29:10 2009
@@ -1,9 +1,10 @@
/* APPLE LOCAL file radar 5831920 */
-#import <Foundation/Foundation.h>
/* Test a property with block type. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+#import <Foundation/Foundation.h>
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-2.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-property-2.c Sun Jan 18 21:29:10 2009
@@ -1,8 +1,10 @@
/* APPLE LOCAL file radar 5831920 - modified for radar 6255671 */
-#import <Foundation/Foundation.h>
/* Test a property with block type. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
+#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
@interface TestObject : NSObject {
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-storageclass.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-storageclass.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-storageclass.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-block-storageclass.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void _Block_byref_release(void*src){}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-2.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-2.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void _Block_byref_release(void*src){}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-3.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-3.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-3.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-3.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void _Block_byref_release(void*src){}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-4.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-4.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-4.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-4.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-5.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-5.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-5.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-5.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-6.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-6.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-6.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-6.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file 5932809 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-7.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-7.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-7.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-7.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5932809 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -lobjc" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-byref-block.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-byref-block.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-byref-block.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-byref-block.c Sun Jan 18 21:29:10 2009
@@ -1,5 +1,5 @@
/* APPLE LOCAL file radar 6180456 */
-/* { dg-do run { target *-*-darwin* } } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-call-with-sideeffect.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-call-with-sideeffect.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-call-with-sideeffect.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-call-with-sideeffect.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,31 @@
+/* APPLE LOCAL file radar 6396238 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-options "-mmacosx-version-min=10.6 -Wall" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
+#include <stdio.h>
+
+typedef void (^P)(void);
+
+static P p = ^{ printf("inside block\n"); };
+
+static int count;
+
+extern void abort(void);
+void * _NSConcreteGlobalBlock;
+
+P mkblock(void)
+{
+ printf("outside block\n");
+ ++count;
+ return p;
+}
+
+int main(void)
+{
+ mkblock()();
+ if (count != 1)
+ abort();
+ return 0;
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-codegen-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-codegen-1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-codegen-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-codegen-1.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5732232 - blocks */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-conditional-test.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-conditional-test.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-conditional-test.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-conditional-test.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5928316 */
/* Test for use of block pointer in a conditional expression. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-copy-attrib-err.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-copy-attrib-err.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-copy-attrib-err.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-copy-attrib-err.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,11 @@
+/* APPLE LOCAL file radar 6379842 - blocks */
+/* { dg-do compile } */
+/* { dg-options "-ObjC -fblocks -m64 -fobjc-gc-only" } */
+
+ at interface Thing {}
+
+ at property void(^someBlock)(void); /* { dg-warning "\\'copy\\' attribute must be specified for the block property" } */
+ at property(copy) void(^OK)(void);
+
+
+ at end
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-dynamic-array.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-dynamic-array.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-dynamic-array.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-dynamic-array.c Sun Jan 18 21:29:10 2009
@@ -1,8 +1,8 @@
/* APPLE LOCAL file radar 6212722 */
/* Test for use of array (dynamic or static) as copied in object in a block. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC -framework Foundation" { target *-*-darwin* } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
-/* { dg-do run } */
#import <Foundation/Foundation.h>
#import <Block.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-enum.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-enum.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-enum.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-enum.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5732232 - blocks */
/* Test use of enumerators in blocks. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-err-hidden-arg.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-err-hidden-arg.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-err-hidden-arg.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-err-hidden-arg.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,15 @@
+/* APPLE LOCAL file radar 6404979 */
+/* Error on use of _self. */
+/* { dg-options "-mmacosx-version-min=10.5 -fblocks" { target *-*-darwin* } } */
+/* { dg-do compile } */
+
+void foo (void*);
+
+int main(void)
+{
+ foo (^{ _self; }); /* { dg-error "\\'_self\\' undeclared" } */
+ /* { dg-error "\\(Each undeclared identifier" "" { target *-*-* } 10 } */
+ /* { dg-error "for each function it appears in" "" { target *-*-* } 10 } */
+ return 0;
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-do.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-do.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-do.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-do.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
extern void abort(void);
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-for1.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-nested-while.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-nested-while.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-nested-while.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-nested-while.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-return1.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 block escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-switch.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-switch.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-switch.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-switch.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-while.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-while.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-while.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-escape-while.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
-
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
extern void abort(void);
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type-1.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type-1.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type-1.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,35 @@
+/* APPLE LOCAL file blocks 6339747 */
+/* Test for blocks with explicit return type specified. */
+/* { dg-do compile } */
+/* { dg-options "-mmacosx-version-min=10.6" { target *-*-darwin* } } */
+
+int (*funcptr)(long);
+int sz1 = sizeof (int (*(^)(char x))(long));
+int sz2 = sizeof (^int(*)(int p1) { return 0; });
+
+int (*fun(int p1))(double) { }
+
+void (^b1)() = ^{ };
+int (^b2)() = ^{ return 0; };
+int (^b3)() = ^int { return 0; };
+int (^b4)() = ^() { return 0; };
+int (^b5)(char*) = ^(char *p1) { return 0; };
+int (^b6)() = ^int () { return 0; };
+int (^b7)(char) = ^int (char p1) { return 0; };
+int (*(^b8)())(long) = ^int (*)(long) {return funcptr;};
+int (*(^b9)(char))(long) = ^int (*(char x))(long) {return funcptr;};
+void (^b10)(int) = ^(int p1){ };
+int (*(*funcptr2)(long))[5];
+int (*(*(^b11)(char))(long))[5] =
+ ^int (*(*(char x))(long))[5] { if (x) 0; return funcptr2;};
+
+int sz4 = sizeof (^int(*)(int p1)(int) { return 0; }); /* { dg-error "declared as function returning a function" } */
+
+int (*funcptr3[5])(long);
+int (*funcptr4)(long);
+int sz5 = sizeof (^(int i) { return i; });
+int sz6 = sizeof (^int (int i) { return i; });
+int sz7 = sizeof(^int (*())(long) {return funcptr4;});
+int sz8 = sizeof(^int (*[5])(long) {return funcptr3;}); /* { dg-error "block declared as returning an array" } */
+int sz9 = sizeof (^int (*((*)[5]))(long j) { j; }); /* { dg-error "undeclared" } */
+/* { dg-error "for each function it appears in" "" { target *-*-* } 34 } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-explicit-return-type.c Sun Jan 18 21:29:10 2009
@@ -29,7 +29,7 @@
^float(float y){ return y; };
- ^double (float y, double d)
+ ^double (float y, double d)
{
if (y)
return d;
@@ -37,7 +37,7 @@
return y;
};
- const char * (^chb) (int flag, const char *arg, char *arg1) = ^ const char * (int flag, const char *arg, char *arg1) {
+ const char * (^chb) (int flag, const char *arg, char *arg1) = ^ const char * (int flag, const char *arg, char *arg1) {
if (flag)
return 0;
if (flag == 1)
@@ -51,7 +51,7 @@
some_func(^ NSView * (id whatever) { return [some_object some_method_that_returns_id]; });
- double res = test(^double (int z){x = y+z; return z; });
+ double res = test(^(int z){x = y+z; return (double)z; });
}
void func()
@@ -76,7 +76,7 @@
void foo() {
int one = 1;
- block = ^(double x){ return ^int(char c, short y) { return one + c + y; };}; /* { dg-warning "returning block that lives on the local stack" } */
+ block = ^(double x){ return ^(char c, short y) { return one + c + y; };}; /* { dg-warning "returning block that lives on the local stack" } */
// or:
block = ^(double x){ return ^(char c, short y) { return one + (int)c + y; };}; /* { dg-warning "returning block that lives on the local stack" } */
}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-block.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-block.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-block.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-block.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,9 @@
/* APPLE LOCAL file radar 5822844 */
/* Test that blocks can be declared at global scope. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
#include <stdio.h>
static void* _NSConcreteGlobalBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-1.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5803005 */
/* Test that all global variables referenced in blocks are treated as 'block' as default. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-2.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref-2.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 6014138 */
/* Test use of __block on locals which will be used as 'byref' variables in blocks. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-global-byref.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5803600 */
/* Test that all global variables referenced in blocks are treated as 'byref' as default. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-block.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-block.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-block.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-block.c Sun Jan 18 21:29:10 2009
@@ -1,9 +1,11 @@
/* APPLE LOCAL file radar 5831855 */
-#import <Foundation/Foundation.h>
/* Test that a block pointer can be converted back-and-forth to 'id' in
both initializsation and assignment without requiring a cast. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
+#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-global-block.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-global-block.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-global-block.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-id-global-block.c Sun Jan 18 21:29:10 2009
@@ -1,9 +1,11 @@
/* APPLE LOCAL file radar 5822844 - global blocks */
-#import <Foundation/Foundation.h>
/* Test that a block pointer can be converted back-and-forth to 'id' in
both initializsation and assignment without requiring a cast. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
+#import <Foundation/Foundation.h>
void * _NSConcreteGlobalBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-implicit-byref.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-implicit-byref.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-implicit-byref.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-implicit-byref.c Sun Jan 18 21:29:10 2009
@@ -2,8 +2,10 @@
/* Test that all 'ivars' are treated as implicit byref. Its inclusing inside |...|
block is treated with a warning and ignored.
*/
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-ObjC -mmacosx-version-min=10.5 -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-in-foreach-header.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-in-foreach-header.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-in-foreach-header.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-in-foreach-header.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 6268817 */
/* Testing use of block literal expression in ObjC's enumeration foreach-statement loop header. */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-ivarlayout.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-ivarlayout.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-ivarlayout.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-ivarlayout.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,6 @@
/* APPLE LOCAL file radar 6133042 */
/* Check that ivars of block pointer types are scanned by GC */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-ObjC -mmacosx-version-min=10.6 -fblocks -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target objc_gc } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-local-static-test.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-local-static-test.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-local-static-test.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-local-static-test.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
/* APPLE LOCAL file radar 6177162 */
/* local statics need be treated same as file static (byref). */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6" { target *-*-darwin* } } */
-/* { dg-do run } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-localisglobal.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-localisglobal.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-localisglobal.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-localisglobal.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 6230297 */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
/*
* localisglobal.c
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-block-var.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-block-var.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-block-var.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-block-var.c Sun Jan 18 21:29:10 2009
@@ -1,8 +1,9 @@
/* APPLE LOCAL file radar 6225809 - radar 5847213 */
/* __block var used in a nested block neeb be implicitly declared in
each intervening block. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 " { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-1.c Sun Jan 18 21:29:10 2009
@@ -3,8 +3,9 @@
inner block must be 'frozen' at the outer block so, it has the value
at the point of inner block declaration and not when block is envoked.
*/
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
extern void abort(void);
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-2.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-2.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5988451 */
/* More testing of copied in variables in nested blocks. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks -mmacosx-version-min=10.5 -ObjC -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void *_NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-3.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-3.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-3.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var-3.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5988451 */
/* Testing of copied in parameter in nested blocks. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks -mmacosx-version-min=10.5 -ObjC -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void *_NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-copied-var.c Sun Jan 18 21:29:10 2009
@@ -2,8 +2,9 @@
/* This test is to make sure that the inner block uses the value of the
copied-in variable at its point of declaration and not when block is envoked.
*/
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
extern void abort(void);
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global-copied-var-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global-copied-var-2.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global-copied-var-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global-copied-var-2.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar global blocks */
/* More testing of copied in variables in nested blocks. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks -mmacosx-version-min=10.6 -ObjC -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void *_NSConcreteGlobalBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested-global.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5822844 - global blocks */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nested.c Sun Jan 18 21:29:10 2009
@@ -1,5 +1,5 @@
/* APPLE LOCAL file radar 5732232 - blocks */
-/* { dg-do run { target *-*-darwin* } } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-no-trampoline.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-no-trampoline.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-no-trampoline.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-no-trampoline.c Sun Jan 18 21:29:10 2009
@@ -1,8 +1,8 @@
/* APPLE LOCAL file radar 6230701 */
/* Test that no trampoline is generated for this test case. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC -framework Foundation -O0" { target *-*-darwin* } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
-/* { dg-do run } */
#import <Foundation/NSObject.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-1.c Sun Jan 18 21:29:10 2009
@@ -1,8 +1,9 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
/* Test for generation of escape _Block_object_dispose call when a local
__block variable is copied in. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-2.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-2.c Sun Jan 18 21:29:10 2009
@@ -1,8 +1,9 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
/* Test for generation of escape _Block_object_dispose call when a local
__block variable is copied in and block has a return statement. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-3.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-3.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-3.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper-3.c Sun Jan 18 21:29:10 2009
@@ -1,8 +1,9 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
/* Test for generation of escape _Block_object_dispose call when a __block
variable inside a block is declared and used. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-noescape-helper.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 6083129 byref escapes */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nullblockisa.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nullblockisa.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nullblockisa.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-nullblockisa.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 6244520 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
#include <stdlib.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-objectassign.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-objectassign.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-objectassign.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-objectassign.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 6175959 */
/* Test for generation of two new APIs; _Block_object_assign and _Block_object_dispose */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <stdio.h>
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-pointer-type.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-pointer-type.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-pointer-type.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-pointer-type.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5732232 - blocks */
/* Test that mixup of a pointer type and a block pointer type does not cause program to crash. */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
void * _NSConcreteStackBlock;
#ifndef _BLOCK_PRIVATE_H_
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-question-exp.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-question-exp.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-question-exp.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-question-exp.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL file radar 5957801 */
/* Test for use of block pointer in a ?-exp expression. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-fblocks" } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
typedef int (^myblock)(void);
void *_NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgc.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgc.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgc.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgcivar.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgcivar.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgcivar.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-readweakgcivar.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,7 @@
/* APPLE LOCAL file radar 5882266 */
-/* { dg-do run } */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.5 -ObjC -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
void * _NSConcreteStackBlock;
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-unique-name.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-unique-name.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-unique-name.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-unique-name.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,27 @@
+/* APPLE LOCAL file radar 6411649 */
+/* { dg-do compile } */
+/* { dg-options "-mmacosx-version-min=10.6 -fblocks" { target *-*-darwin* } } */
+
+typedef void (^P) (void);
+
+int DOO(void)
+{
+ P p = ^{ ^ { ; }; };
+ p();
+ p = ^{ ^ { ; }; };
+ return 0;
+}
+
+int main(void)
+{
+ P p = ^{ ; };
+ p();
+ p = ^{ ; };
+ return 0;
+}
+/* { dg-final { scan-assembler "___main_block_invoke_1" } } */
+/* { dg-final { scan-assembler "___main_block_invoke_2" } } */
+/* { dg-final { scan-assembler "___DOO_block_invoke_1" } } */
+/* { dg-final { scan-assembler "___DOO_block_invoke_2" } } */
+
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblock.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblock.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblock.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblock.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,9 @@
/* APPLE LOCAL radar 5847976 */
/* Test __weak attribute on __block objects. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
+
#import <Foundation/Foundation.h>
// provide our own version for testing
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblockassign.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblockassign.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblockassign.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-weakblockassign.c Sun Jan 18 21:29:10 2009
@@ -1,7 +1,8 @@
/* APPLE LOCAL radar 5847976 */
/* Test __weak attribute on __block objects. */
+/* { dg-do run { target *-*-darwin[1-2][0-9]* } } */
/* { dg-options "-mmacosx-version-min=10.6 -ObjC -fobjc-gc -framework Foundation" { target *-*-darwin* } } */
-/* { dg-do run } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#import <Foundation/Foundation.h>
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/debug-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/debug-1.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/debug-1.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/debug-1.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,8 @@
+/* APPLE LOCAL file .file/.loc 6349436 */
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options "-g" } */
+/* { dg-final { scan-assembler "\\.file" } } */
+/* { dg-final { scan-assembler "\\.loc" } } */
+
+void foo() {
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/overflow.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/overflow.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/overflow.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/overflow.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,9 @@
+/* APPLE LOCAL file unsigned wraps 6486153 */
+/* { dg-do run } */
+
+int main(int argc, const char **argv) {
+ unsigned int foo = 0xfffffff0u + argc - 1;
+ if (((11u * foo) % 11u) == 4)
+ return 0;
+ return 1;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/warn-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/warn-1.c?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/warn-1.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/warn-1.c Sun Jan 18 21:29:10 2009
@@ -0,0 +1,8 @@
+/* APPLE LOCAL file 6218859 */
+/* { dg-options "-O2 -Werror=uninitialized" } */
+
+int main(int argc, char *argv[]) {
+ int a;
+
+ return a; /* { dg-error "is used uninitialized in this function" } */
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/compile/pr27528.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/compile/pr27528.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/compile/pr27528.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/compile/pr27528.c Sun Jan 18 21:29:10 2009
@@ -1,6 +1,8 @@
/* Check that constant constraints like "i", "n" and "s" can be used in
cases where the operand is an initializer constant. */
/* { dg-options "-fno-pic" } */
+/* APPLE LOCAL fix-and-continue 6360409 */
+/* { dg-options "-mno-fix-and-continue -fno-pic" { target *-*-darwin* } } */
int x[2] = { 1, 2 };
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr17377.x
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr17377.x?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr17377.x (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.c-torture/execute/pr17377.x Sun Jan 18 21:29:10 2009
@@ -0,0 +1,6 @@
+# APPLE LOCAL file fix-and-continue 6360409
+
+if { [istarget "i?86-*-darwin*"] } {
+ set additional_flags "-mno-fix-and-continue"
+}
+return 0
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/cmov1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/cmov1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/cmov1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/cmov1.c Sun Jan 18 21:29:10 2009
@@ -1,5 +1,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -march=k8" } */
+/* APPLE LOCAL fix-and-continue 6360409 */
+/* { dg-options "-mno-fix-and-continue -O2 -march=k8" { target *-*-darwin* } } */
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_namea" } } */
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_nameb" } } */
/* { dg-final { scan-assembler "sar\[^\\n\]*magic_namec" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/mul.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/mul.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/mul.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/mul.c Sun Jan 18 21:29:10 2009
@@ -1,5 +1,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -march=k8" } */
+/* APPLE LOCAL fix-and-continue 6360409 */
+/* { dg-options "-mno-fix-and-continue -O2 -march=k8" { target *-*-darwin* } } */
/* { dg-final { scan-assembler "and\[^\\n\]*magic" } } */
/* Should be done as "andw $32767, magic". */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-1.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-1.c Sun Jan 18 21:29:10 2009
@@ -1,5 +1,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -msse2 -march=k8" } */
+/* APPLE LOCAL fix-and-continue 6360409 */
+/* { dg-options "-mno-fix-and-continue -O2 -msse2 -march=k8" { target *-*-darwin* } } */
/* { dg-final { scan-assembler "andpd\[^\\n\]*magic" } } */
/* { dg-final { scan-assembler "andnpd\[^\\n\]*magic" } } */
/* { dg-final { scan-assembler "xorpd\[^\\n\]*magic" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-3.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-3.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-3.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-3.c Sun Jan 18 21:29:10 2009
@@ -1,5 +1,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -msse2 -march=k8" } */
+/* APPLE LOCAL fix-and-continue 6360409 */
+/* { dg-options "-mno-fix-and-continue -O2 -msse2 -march=k8" { target *-*-darwin* } } */
/* { dg-final { scan-assembler "andps\[^\\n\]*magic" } } */
/* { dg-final { scan-assembler "andnps\[^\\n\]*magic" } } */
/* { dg-final { scan-assembler "xorps\[^\\n\]*magic" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-5.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-5.c?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-5.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/ssetype-5.c Sun Jan 18 21:29:10 2009
@@ -1,5 +1,7 @@
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -msse2 -march=k8" } */
+/* APPLE LOCAL fix-and-continue 6360409 */
+/* { dg-options "-mno-fix-and-continue -O2 -msse2 -march=k8" { target *-*-darwin* } } */
/* { dg-final { scan-assembler "pand\[^\\n\]*magic" } } */
/* { dg-final { scan-assembler "pandn\[^\\n\]*magic" } } */
/* { dg-final { scan-assembler "pxor\[^\\n\]*magic" } } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs.x
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs.x?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs.x (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs.x Sun Jan 18 21:29:10 2009
@@ -0,0 +1,4 @@
+# APPLE LOCAL file 6348525
+set additional_flags "-fno-stack-protector"
+
+return 0
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs_and_unions.x
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs_and_unions.x?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs_and_unions.x (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_passing_structs_and_unions.x Sun Jan 18 21:29:10 2009
@@ -0,0 +1,4 @@
+# APPLE LOCAL file 6348525
+set additional_flags "-fno-stack-protector"
+
+return 0
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/apple-runtime-test.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/apple-runtime-test.mm?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/apple-runtime-test.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/apple-runtime-test.mm Sun Jan 18 21:29:10 2009
@@ -0,0 +1,84 @@
+/* APPLE LOCAL file 6386976 */
+/* Compilation check for APPLE DWARF runtime class markers. */
+/* { dg-options "-g -dA -mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-g -dA" { target arm*-*-darwin* } } */
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-final { scan-assembler "DW_AT_APPLE_major_runtime_vers" } } */
+/* { dg-final { scan-assembler "DW_AT_APPLE_runtime_class" } } */
+#include <Foundation/Foundation.h>
+
+ at interface Block : NSObject {
+ at public
+ unsigned _address;
+ unsigned _age;
+}
+ at end
+ at implementation Block
+ at end
+
+extern "C" void abort ();
+
+#define ITER 10000
+#define BREAK_ITER 5000
+#define MOD 100
+
+int countByIterating(id collection, NSSet *set) {
+ unsigned objectCount = 0;
+ for (Block *block in collection) {
+ ++objectCount;
+ }
+ return objectCount;
+}
+
+int countByIteratingAndBreak(id collection, NSSet *set) {
+ unsigned objectCount = 0;
+ for (Block *block in collection) {
+ ++objectCount;
+ if (objectCount == BREAK_ITER)
+ break;
+ }
+ return objectCount;
+}
+
+static int res = 0;
+int countByIteratingAndMore(id collection, NSSet *set) {
+ unsigned objectCount = 0;
+ for (Block *block in collection) {
+ ++objectCount;
+ if (objectCount % MOD == 0)
+ res++;
+ else
+ continue;
+ }
+ return objectCount;
+}
+
+int main (int argc, const char * argv[]) {
+ NSAutoreleasePool *pool = [NSAutoreleasePool new];
+
+ NSMutableArray *array = [NSMutableArray array];
+ unsigned i;
+ for (i = 0; i < ITER; ++i) {
+ Block* block = [[Block new] autorelease];
+ block->_address = i;
+ [array addObject:block];
+ }
+ NSSet *set = [NSSet setWithArray:array];
+ if (countByIterating(set, set) != ITER)
+ abort ();
+ if (countByIterating(array, set) != ITER)
+ abort ();
+
+ if (countByIteratingAndBreak(set, set) != BREAK_ITER)
+ abort ();
+ if (countByIteratingAndBreak(array, set) != BREAK_ITER)
+ abort ();
+ if (countByIteratingAndMore(set, set) != ITER)
+ abort ();
+ if (countByIteratingAndMore(array, set) != ITER)
+ abort ();
+ if (res != 200)
+ abort ();
+ [pool drain];
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/global-obj.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/global-obj.m?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/global-obj.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/global-obj.m Sun Jan 18 21:29:10 2009
@@ -0,0 +1,5 @@
+/* APPLE LOCAL file 6393374 */
+
+#include "../objc/execute/Object2.h"
+
+Object s[1][1]; /* { dg-error "statically allocated instance of Objective-C class" } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-test-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-test-1.m?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-test-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-test-1.m Sun Jan 18 21:29:10 2009
@@ -1,7 +1,7 @@
-/* APPLE LOCAL file 4540451 */
+/* APPLE LOCAL file 4540451 & 6386976 */
/* Test that the new-ABI ivar symbols look like OBJC_IVAR_$_ClassName.IvarName
not like .objc_ivar.ClassName.IvarName */
-/* { dg-options "-mmacosx-version-min=10.5 -fobjc-abi-version=2" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
+/* { dg-options "-g -dA -mmacosx-version-min=10.5 -fobjc-abi-version=2" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
@interface Rootclass {
@@ -40,3 +40,6 @@
}
/* { dg-final { scan-assembler "OBJC_IVAR_\\\$_" } } */
/* { dg-final { scan-assembler-not "\\\.objc_ivar\\\." } } */
+/* APPLE LOCAL radar 6386976 - Add the following two checks. */
+/* { dg-final { scan-assembler "DW_AT_APPLE_major_runtime_vers" } } */
+/* { dg-final { scan-assembler "DW_AT_APPLE_runtime_class" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-8.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-8.m?rev=62488&r1=62487&r2=62488&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-8.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-8.m Sun Jan 18 21:29:10 2009
@@ -51,7 +51,7 @@
int main ()
{
st2 res = test ();
- if (res.x != 1 || res.x != 4)
- abort;
+ if (res.x != 1 || res.h != 4)
+ abort();
return 0;
}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/warn-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/warn-1.m?rev=62488&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/warn-1.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/warn-1.m Sun Jan 18 21:29:10 2009
@@ -0,0 +1,23 @@
+/* APPLE LOCAL file deprecated use in deprecated 6425499 */
+
+__attribute__((deprecated))
+void depFunc1() {}
+
+__attribute__((deprecated))
+void depFunc2() { depFunc1(); }
+
+ at interface Foo
+-(void)deprecatedMethod1 __attribute__((deprecated));
+-(void)deprecatedMethod2 __attribute__((deprecated));
+ at end
+ at implementation Foo
+
+-(void)deprecatedMethod1 {
+}
+
+-(void)deprecatedMethod2 {
+ depFunc1();
+ [self deprecatedMethod1];
+}
+
+ at end
More information about the llvm-commits
mailing list