[llvm-commits] [llvm-gcc-4.2] r43899 - in /llvm-gcc-4.2/trunk/gcc/testsuite: ./ bugs/powerpc/ g++.apple/ g++.dg/ g++.dg/ext/ g++.dg/ext/visibility/ g++.dg/tc1/ g++.old-deja/g++.mike/ gcc.apple/ gcc.dg/ gcc.dg/tree-ssa/ gcc.target/i386/ lib/ obj-c++.dg/ objc.dg/ objc/execute/
Bill Wendling
isanbard at gmail.com
Thu Nov 8 11:02:28 PST 2007
Author: void
Date: Thu Nov 8 13:02:27 2007
New Revision: 43899
URL: http://llvm.org/viewvc/llvm-project?rev=43899&view=rev
Log:
Updating to Apple GCC 4.2's TOT.
Added:
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/5533365.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/altivec-5494442.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-64.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-65.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/permissive-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align3.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align4.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.old-deja/g++.mike/lookup-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4874471.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5490617.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5280301.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5447227.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-6.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-64.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-65.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-66.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14a.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ivcanon-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ppc-5450903.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/private.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/x86-5543378.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-3.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-4.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-5.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-6.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-unused-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/flt-rounds.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pragma-darwin-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/unwind-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-typeconv-func-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/enhanced-proto-4.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-bitfield-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-warn-direct-ivar-access.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-neg-selector.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/protocol-atttribute-1.mm
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-8.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/enhanced-proto-4.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-attr-encode-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-bitfield-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-warn-direct-ivar-access.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-10.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-15.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/protocol-atttribute-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/super-finalize-3.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/unavailable.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/trivial.m
Removed:
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/ivcanon-1.c
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog
llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog.apple
llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g++.xfail
llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/obj-c++.xfail
llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/4474655.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-array-ref.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-10.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-54.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-59.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-10.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-11.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-12.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-13.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-14.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-15.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-3.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-4.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-5.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/format-security-attribute-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/format-security-attribute-2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/pubtypes.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/time-sort.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/time-sort.h
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/align-test-1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/alignof2.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/visibility/class1.C
llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/tc1/dr101.C
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4283414.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-array-ref.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-54.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-59.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-11.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-12.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-13.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-15.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-16.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-3.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-4.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-5.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/local2.c
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/sse-99.c
llvm-gcc-4.2/trunk/gcc/testsuite/lib/scantree.exp
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-nowarn-unused-param.mm
llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-protocol-3.mm
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/class-attribute-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-1.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-2.m
llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-protocol-3.m
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog Thu Nov 8 13:02:27 2007
@@ -1,3 +1,25 @@
+2007-10-07 Geoffrey Keating <geoffk at apple.com>
+
+ * gcc.dg/pragma-darwin-2.c: New.
+
+2007-09-14 Geoffrey Keating <geoffk at apple.com>
+
+ * gcc.dg/unwind-1.c: New.
+
+2007-08-03 Geoffrey Keating <geoffk at apple.com>
+
+ Radar 3274130, 5295549
+ * g++.dg/ext/align2.C: New.
+ * g++.dg/ext/align3.C: New.
+ * g++.dg/ext/align4.C: New.
+
+ * gcc.dg/align-6.c: New.
+ * gcc.dg/align-5.c: New.
+ * gcc.dg/align-4.c: New.
+ * gcc.dg/attr-unused-1.c: New.
+
+ * gcc.dg/align-3.c: New.
+
2007-06-14 Geoff Keating <geoffk at apple.com>
* g++.dg/ext/visibility/overload-1.C: New.
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=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog.apple (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/ChangeLog.apple Thu Nov 8 13:02:27 2007
@@ -1,3 +1,186 @@
+2007-10-30 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5543378
+ * gcc.apple/x86-5543378.c: New.
+
+2007-10-25 Josh Conner <jconner at apple.com>
+
+ Radar 3399553
+ * gcc.dg/flt-rounds.c: New.
+
+2007-10-19 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5450903
+ * gcc.apple/ppc-5450903.c: New.
+
+2007-10-15 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5494442
+ * g++.apple/altivec-5494442.C: Renamed from apple-altivec-5494442.C.
+
+2007-10-15 Caroline Tice <ctice at apple.com>
+
+ Radar 5359827
+ * testsuite/objc.dg/pubtypes-id-test.m: New test case.
+ * testsuite/g++.apple/pubtypes.c: Change test case to accept any size
+ for the pubtypes section, to eliminate having to change this every
+ time the pubtypes section changes.
+
+2007-10-12 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5494442
+ * g++.apple/apple-altivec-5494442.C: Replaced -O3 by -O2.
+
+2007-10-12 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5494442
+ * g++.apple/apple-altivec-5494442.C: New.
+
+2007-10-12 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5533365
+ * g++.apple/5533365.C: New.
+
+2007-10-08 Eric Christopher <echristo at apple.com>
+
+ Radar 5516808
+ * gcc.apple/altivec-6.c: New.
+
+2007-10-05 Eric Christopher <echristo at apple.com>
+
+ Radar 5490617
+ * gcc.apple/5490617.c: New.
+
+2007-09-26 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5280301
+ * gcc.apple/altivec-5280301.c: New.
+
+2007-09-21 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5447227
+ * gcc.apple/altivec-5447227.c: New.
+
+2007-09-05 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5457234
+ * g++.dg/ext/alignof2.C: Modified the test to skip for
+ ppc darwin targets.
+
+2007-09-04 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 5155743
+ * gcc.dg/builtin-alloca-1.c: New.
+ * gcc.dg/builtin-alloca-2.c: New.
+
+2007-08-22 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 4947311
+ * objc.dg/protocol-atttribute-1.m: Add
+ * obj-c++.dg/protocol-atttribute-1.mm: Add
+
+2007-08-21 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 4874197
+ * gcc.apple/4283414.c: Added mainline candidate comment.
+
+2007-08-21 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 5424473
+ * objc.dg/super-finalize-3.m: Add
+
+2007-08-20 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 5422751
+ * objc.dg/objc2-protocol-3.m: Removed.
+ * obj-c++.dg/objc2-protocol-3.mm: Removed.
+
+2007-08-16 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 3533972
+ * obj-c++.dg/cxx-typeconv-func-1.mm: New
+
+2007-08-14 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 4870336, 4874471, 4874208
+ * gcc.apple/4874471.c: New.
+
+2007-08-14 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 5409313
+ * obj-c++.dg/objc-neg-selector.mm: New
+
+2007-08-14 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 5407792
+ * objc.dg/newproperty-attr-encode-1.m: New
+
+2007-08-10 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 5376125
+ * objc.dg/newproperty-warn-direct-ivar-access.m: New
+ * obj-c++.dg/newproperty-warn-direct-ivar-access.mm: New
+
+2007-08-10 Stuart Hastings <stuart at apple.com>
+
+ Radar 5238795 4448096
+ * g++.apple/4474655.C: Remove.
+
+2007-08-10 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 5398274
+ * obj-c++.dg/newproperty-nowarn-unused-param.mm: Expanded
+
+2007-08-09 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 4875125
+ * gcc.target/i386/sse-99.c. Added -mtune=generic option.
+
+2007-08-09 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 3742561 (test change)
+ * obj-c++/objc-gc-aggr-assign-1.mm: Test changed for ppc32.
+
+2007-08-08 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 5389292
+ * objc.dg/newproperty-bitfield-1.m: Add
+ * obj-c++.dg/newproperty-bitfield-1.mm: Add
+
+2007-08-08 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 4875094
+ * gcc.target/i386/local2.c : Added APPLE LOCAL marker.
+
+2007-08-07 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 5390587
+ * objc.dg/newproperty-neg-1.m: Add
+
+2007-08-06 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 4653422
+ * objc.dg/enhanced-proto-4.m: Add
+ * obj-c++.dg/enhanced-proto-4.mm: Add
+
+2007-08-03 Hui-May Chang <hm.chang at apple.com>
+
+ Radar 4875094
+ * gcc.target/i386/local2.c : Modified the test to skip for
+ darwin targets.
+
+2007-07-31 Stuart Hastings <stuart at apple.com>
+
+ Radar 4874513
+ * gcc/testsuite/gcc.dg/tree-ssa/ivcanon-1.c: Moved to
+ gcc/testsuite/gcc.apple; revised testcase to work around
+ improved jump-threader.
+
+2007-07-31 Fariborz Jahanian <fjahanian at apple.com>
+
+ Radar 3742561 (test change)
+ * objc.dg/objc-gc-aggr-assign-1.m: Test changed for ppc32.
+
2007-07-31 Fariborz Jahanian <fjahanian at apple.com>
Radar 5259868
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g++.xfail
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g%2B%2B.xfail?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g++.xfail (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/g++.xfail Thu Nov 8 13:02:27 2007
@@ -38,12 +38,8 @@
5103220: tmpdir-g++.dg-struct-layout-1/t011 cp_compat_x_tst.o-cp_compat_y_tst.o execute
5103220: tmpdir-g++.dg-struct-layout-1/t015 cp_compat_x_tst.o-cp_compat_y_tst.o execute
5103220: tmpdir-g++.dg-struct-layout-1/t020 cp_compat_x_tst.o-cp_compat_y_tst.o execute
-5103220: tmpdir-g++.dg-struct-layout-1/t024 cp_compat_x_tst.o compile, (internal compiler error)
-5103220: tmpdir-g++.dg-struct-layout-1/t026 cp_compat_x_tst.o compile, (internal compiler error)
-5103220: tmpdir-g++.dg-struct-layout-1/t027 cp_compat_x_tst.o compile, (internal compiler error)
-5103220: tmpdir-g++.dg-struct-layout-1/t028 cp_compat_x_tst.o compile, (internal compiler error)
-5103220: tmpdir-g++.dg-struct-layout-1/t029 cp_compat_x_tst.o compile, (internal compiler error)
-5103220: tmpdir-g++.dg-struct-layout-1/t030 cp_compat_x_tst.o compile, (internal compiler error)
+5103220: tmpdir-g++.dg-struct-layout-1/t026 cp_compat_x_tst.o-cp_compat_y_tst.o execute
+5103220: tmpdir-g++.dg-struct-layout-1/t027 cp_compat_x_tst.o-cp_compat_y_tst.o execute
#
# The following tests fail only when the c++ suite is run on x86
5087173: g++.old-deja/g++.other/crash41.C (test for errors, line 10)
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/obj-c++.xfail
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/obj-c%2B%2B.xfail?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/obj-c++.xfail (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/obj-c++.xfail Thu Nov 8 13:02:27 2007
@@ -10,7 +10,7 @@
### file and make sure the Radar is closed.
###
###------------------------------------------------------------------
-5004398: obj-c++.dg/objc2-const-str-64bit-1.mm scan-assembler LC1:\n\t.quad\t_OBJC_CLASS_\\$_NSConstantString
+5405050: obj-c++.dg/gnu-runtime-3.mm (test for excess errors)
#
# the following fail with -m64 only
5272224: obj-c++.dg/const-str-3.mm execution test
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/bugs/powerpc/objc.xfail Thu Nov 8 13:02:27 2007
@@ -11,10 +11,10 @@
###
###------------------------------------------------------------------
#
-4239991: objc.dg/encode-7.m (test for excess errors)
-4239991: objc.dg/encode-8.m (test for excess errors)
-4239991: objc.dg/gnu-runtime-3.m (test for excess errors)
-4239991: objc.dg/type-stream-1.m (test for excess errors)
+5405050: objc.dg/encode-7.m (test for excess errors)
+5405050: objc.dg/encode-8.m (test for excess errors)
+5405050: objc.dg/gnu-runtime-3.m (test for excess errors)
+5405050: objc.dg/type-stream-1.m (test for excess errors)
4943900: objc/execute/string1.m compilation, -O0 -fnext-runtime
4943900: objc/execute/string1.m compilation, -O1 -fnext-runtime
4943900: objc/execute/string1.m compilation, -O2 -fnext-runtime
@@ -167,14 +167,15 @@
5299997: objc/execute/string4.m compilation, -fast -fgnu-runtime
#
# the following fail with -m64 only
-5245963: objc/execute/protocol-isEqual-3.m execution, -O0 -fnext-runtime
-5245963: objc/execute/protocol-isEqual-3.m execution, -O1 -fnext-runtime
-5245963: objc/execute/protocol-isEqual-3.m execution, -O2 -fnext-runtime
-5245963: objc/execute/protocol-isEqual-3.m execution, -O3 -fomit-frame-pointer -fnext-runtime
-5245963: objc/execute/protocol-isEqual-3.m execution, -O3 -g -fnext-runtime
-5245963: objc/execute/protocol-isEqual-3.m execution, -Os -fnext-runtime
-5245963: objc/execute/protocol-isEqual-3.m execution, -fast -fnext-runtime
-5272224: objc.dg/const-str-3.m execution test
+5297256: objc/execute/exceptions/foward-1.m execution, -O0 -fnext-runtime
+5297256: objc/execute/exceptions/foward-1.m execution, -O1 -fnext-runtime
+5297256: objc/execute/exceptions/foward-1.m execution, -O2 -fnext-runtime
+5297256: objc/execute/exceptions/foward-1.m execution, -O3 -fomit-frame-pointer -fnext-runtime
+5297256: objc/execute/exceptions/foward-1.m execution, -O3 -fomit-frame-pointer -funroll-loops -fnext-runtime
+5297256: objc/execute/exceptions/foward-1.m execution, -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -fnext-runtime
+5297256: objc/execute/exceptions/foward-1.m execution, -O3 -g -fnext-runtime
+5297256: objc/execute/exceptions/foward-1.m execution, -Os -fnext-runtime
+5297256: objc/execute/exceptions/foward-1.m execution, -fast -fnext-runtime
#
# the following fail for ppc only
5303263: objc.dg/encode-8.m execution test
@@ -194,7 +195,6 @@
5303263: objc.dg-struct-layout-encoding-1/t024_main.m execution test
#
# the following fail for ppc 32-bit only
-5297200: objc.dg/objc-gc-3.m execution test
#
# the following fail for ppc 64-bit only
5303263: objc/execute/bf-14.m execution, -O0 -fgnu-runtime
@@ -250,18 +250,5 @@
# the following fail for x86
#
# the following failures are for x86 -m64 only
-5297256: objc/execute/exceptions/foward-1.m execution, -O0 -fnext-runtime
-5297256: objc/execute/exceptions/foward-1.m execution, -O1 -fnext-runtime
-5297256: objc/execute/exceptions/foward-1.m execution, -O2 -fnext-runtime
-5297256: objc/execute/exceptions/foward-1.m execution, -O3 -fomit-frame-pointer -fnext-runtime
-5297256: objc/execute/exceptions/foward-1.m execution, -O3 -fomit-frame-pointer -funroll-loops -fnext-runtime
-5297256: objc/execute/exceptions/foward-1.m execution, -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -fnext-runtime
-5297256: objc/execute/exceptions/foward-1.m execution, -O3 -g -fnext-runtime
-5297256: objc/execute/exceptions/foward-1.m execution, -Os -fnext-runtime
-5297256: objc/execute/exceptions/foward-1.m execution, -fast -fnext-runtime
-5297325: objc.dg/stubify-1.m scan-assembler-not (bl|call)[ \t]+_objc_msgSend\n
-5297325: objc.dg/stubify-1.m scan-assembler (bl|call)[ \t]+L_objc_msgSend\\$stub\n
-5297325: objc.dg/stubify-1.m scan-assembler-not (bl|call)[ \t]+_bogonic\n
-5297325: objc.dg/stubify-1.m scan-assembler (bl|call)[ \t]+L_bogonic\\$stub\n
#
# the following failures are for -mmacosx-version-min=10.5 only
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/4474655.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/4474655.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/4474655.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/4474655.C Thu Nov 8 13:02:27 2007
@@ -1,17 +0,0 @@
-/* APPLE LOCAL file 4474655 4448096 */
-/* { dg-do compile { target i?86-apple-darwin* } } */
-/* { dg-options "-O2 -fapple-kext -mfpmath=sse -msse2" } */
-#include <stdlib.h>
-double d = 42.0;
-unsigned int i;
-main ()
-{
- i = d;
- return 0;
-}
-/* The SSE-only double -> uint32 conversion uses several vector
- instructions (including "maxsd"). For a brief period, -fapple-kext
- disabled SSE vector instructions; this test insures that these
- instructions are permitted and generated. See also
- gcc.apple/4448096-1.c. */
-/* { dg-final { scan-assembler "(maxsd|cvttsd2si)" } } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/5533365.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/5533365.C?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/5533365.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/5533365.C Thu Nov 8 13:02:27 2007
@@ -0,0 +1,51 @@
+/* APPLE LOCAL file 5533365 */
+/* { dg-do compile { target i?86*-*-darwin* } } */
+/* { dg-options "-O2" } */
+typedef long long __m64 __attribute__ ((__vector_size__ (8)));
+typedef float __m128 __attribute__ ((__vector_size__ (16)));
+typedef double __v2df __attribute__ ((__vector_size__ (16)));
+typedef long long __v2di __attribute__ ((__vector_size__ (16)));
+typedef __v2di __m128i;
+typedef __v2df __m128d;
+
+static inline __m128d __attribute__ ((__always_inline__, __nodebug__))
+_mm_min_pd (__m128d __A, __m128d __B)
+{
+ return (__m128d)__builtin_ia32_minpd ((__v2df)__A, (__v2df)__B);
+}
+
+static inline __m128d __attribute__ ((__always_inline__, __nodebug__))
+_mm_move_sd (__m128d __A, __m128d __B)
+{
+ return (__m128d) __builtin_ia32_movsd ((__v2df)__A, (__v2df)__B);
+}
+
+static inline __m128i __attribute__ ((__always_inline__, __nodebug__))
+_mm_cvtpd_epi32 (__m128d __A)
+{
+ return (__m128i)__builtin_ia32_cvtpd2dq ((__v2df) __A);
+}
+
+union __attribute__((aligned(16))) XMM128
+{
+ __m128d d;
+ __m128i i;
+};
+
+__inline__ __m128i foo (const __m128d &srcLo, const __m128i &src)
+{
+ const static __m128d max_val = {(double)0x7FFFFFFF, (double)0x7FFFFFFF};
+ __m128d lo = _mm_min_pd(srcLo, max_val);
+ XMM128 Lo,s1;
+ Lo.i= _mm_cvtpd_epi32(lo);
+ s1.i = src;
+ Lo.d = _mm_move_sd(s1.d,Lo.d);
+ return Lo.i;
+}
+
+int main()
+{
+ XMM128 tmp, tmp1, tmp2;
+ tmp.i = foo (tmp1.d, tmp2.i);
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/altivec-5494442.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/altivec-5494442.C?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/altivec-5494442.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/altivec-5494442.C Thu Nov 8 13:02:27 2007
@@ -0,0 +1,259 @@
+/* APPLE LOCAL file altivec-5494442.C */
+/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-options "-m64 -faltivec -O2" } */
+class T
+{
+public:
+ T();
+ __attribute__((altivec(vector__))) unsigned char proc1 (__attribute__((altivec(vector__))) unsigned char y);
+ __attribute__((altivec(vector__))) unsigned char proc2 (__attribute__((altivec(vector__))) unsigned char uv);
+};
+
+class M
+{
+ void foo(unsigned ,unsigned);
+public:
+ M();
+};
+
+static void bar (unsigned char *savg, unsigned char *tavg,
+ unsigned char *ds, unsigned char *dt,
+ unsigned char *cur, unsigned char *cur_uv, unsigned char *out,
+ unsigned char *motin, unsigned char *m3, int even,
+ unsigned hz, unsigned h1, int l1, int f1, unsigned si1, unsigned si2, unsigned t16, T *p)
+{
+ int i;
+ __attribute__((altivec(vector__))) unsigned char sv00, sv10, tv00, tv10, dtv00, dtv10, dsv00, dsv10;
+ __attribute__((altivec(vector__))) unsigned char sv01, sv11, tv01, tv11, dtv01, dtv11, dsv01, dsv11;
+ __attribute__((altivec(vector__))) unsigned char sv00e, tv00e, sv10e, tv10e, sv01e, tv01e, sv11e, tv11e;
+ __attribute__((altivec(vector__))) unsigned char dsumev00, dsumev01, dsumev10, dsumev11;
+ __attribute__((altivec(vector__))) unsigned char dsumov00, dsumov01, dsumov10, dsumov11;
+ unsigned t16_uv = t16 >> 1;
+ if (even)
+ cur+=32;
+ for(i = 0; i < 8; i++) {
+ dsv00 = *(__attribute__((altivec(vector__))) unsigned char *)ds;
+ dsv10 = *(__attribute__((altivec(vector__))) unsigned char *)(ds+16);
+ dsv01 = *(__attribute__((altivec(vector__))) unsigned char *)(ds+32);
+ dsv11 = *(__attribute__((altivec(vector__))) unsigned char *)(ds+48);
+ dtv00 = *(__attribute__((altivec(vector__))) unsigned char *)dt;
+ dtv10 = *(__attribute__((altivec(vector__))) unsigned char *)(dt+16);
+ dtv01 = *(__attribute__((altivec(vector__))) unsigned char *)(dt+32);
+ dtv11 = *(__attribute__((altivec(vector__))) unsigned char *)(dt+48);
+ sv00 = *(__attribute__((altivec(vector__))) unsigned char *)savg;
+ tv00 = *(__attribute__((altivec(vector__))) unsigned char *)tavg;
+ tv10 = *(__attribute__((altivec(vector__))) unsigned char *)(tavg+16);
+ sv01 = *(__attribute__((altivec(vector__))) unsigned char *)(savg+32);
+ sv11 = *(__attribute__((altivec(vector__))) unsigned char *)(savg+48);
+ tv01 = *(__attribute__((altivec(vector__))) unsigned char *)(tavg+32);
+ tv11 = *(__attribute__((altivec(vector__))) unsigned char *)(tavg+48);
+ __attribute__((altivec(vector__))) unsigned char dmtv00 =
+ *(__attribute__((altivec(vector__))) unsigned char *)motin;
+ __attribute__((altivec(vector__))) unsigned char dmtv10 =
+ *(__attribute__((altivec(vector__))) unsigned char *)(motin+16);
+ __attribute__((altivec(vector__))) unsigned char dmmv00 =
+ *(__attribute__((altivec(vector__))) unsigned char *)(motin+si1);
+ __attribute__((altivec(vector__))) unsigned char dmmv10 =
+ *(__attribute__((altivec(vector__))) unsigned char *)(motin+si1+16);
+ __attribute__((altivec(vector__))) unsigned char dmtv01 =
+ *(__attribute__((altivec(vector__))) unsigned char *)(motin+2*si1);
+ __attribute__((altivec(vector__))) unsigned char dmtv11 =
+ *(__attribute__((altivec(vector__))) unsigned char *)(motin+2*si1+16);
+ __attribute__((altivec(vector__))) unsigned char dmmv01 =
+ *(__attribute__((altivec(vector__))) unsigned char *)(motin+3*si1);
+ __attribute__((altivec(vector__))) unsigned char dmmv11 =
+ *(__attribute__((altivec(vector__))) unsigned char *)(motin+3*si1+16);
+ __attribute__((altivec(vector__))) unsigned char dmbv01 =
+ *(__attribute__((altivec(vector__))) unsigned char *)(motin+4*si1);
+ __attribute__((altivec(vector__))) unsigned char dmbv11 =
+ *(__attribute__((altivec(vector__))) unsigned char *)(motin+4*si1+16);
+ *(__attribute__((altivec(vector__))) unsigned char *)m3 = dtv00;
+ *(__attribute__((altivec(vector__))) unsigned char *)(m3+16) = dtv10;
+ *(__attribute__((altivec(vector__))) unsigned char *)(m3+si1*2) = dtv01;
+ *(__attribute__((altivec(vector__))) unsigned char *)(m3+si1*2+16) = dtv11;
+ dtv10 = vec_max (dtv10, dmmv10);
+ dtv01 = vec_max (dtv01, dmmv01);
+ dtv11 = vec_max (dtv11, dmmv11);
+ dtv00 = vec_max (dtv00, vec_max(dmtv00, dmtv01));
+ dtv10 = vec_max (dtv10, vec_max(dmtv10, dmtv11));
+ dtv01 = vec_max (dtv01, vec_max(dmtv01, dmbv01));
+ dtv11 = vec_max (dtv11, vec_max(dmtv11, dmbv11));
+ sv10e = (__attribute__((altivec(vector__))) unsigned char)vec_mule (sv10,dtv10);
+ sv10 = (__attribute__((altivec(vector__))) unsigned char)vec_mulo (sv10,dtv10);
+ tv10e = (__attribute__((altivec(vector__))) unsigned char)vec_mule (tv10,dsv10);
+ tv10 = (__attribute__((altivec(vector__))) unsigned char)vec_mulo (tv10,dsv10);
+ sv01e = (__attribute__((altivec(vector__))) unsigned char)vec_mule (sv01,dtv01);
+ sv01 = (__attribute__((altivec(vector__))) unsigned char)vec_mulo (sv01,dtv01);
+ tv01e = (__attribute__((altivec(vector__))) unsigned char)vec_mule (tv01,dsv01);
+ tv01 = (__attribute__((altivec(vector__))) unsigned char)vec_mulo (tv01,dsv01);
+ sv11e = (__attribute__((altivec(vector__))) unsigned char)vec_mule (sv11,dtv11);
+ sv11 = (__attribute__((altivec(vector__))) unsigned char)vec_mulo (sv11,dtv11);
+ tv11e = (__attribute__((altivec(vector__))) unsigned char)vec_mule (tv11,dsv11);
+ tv11 = (__attribute__((altivec(vector__))) unsigned char)vec_mulo (tv11,dsv11);
+ sv10 = (__attribute__((altivec(vector__))) unsigned char)vec_adds (
+ (__attribute__((altivec(vector__))) unsigned short)sv10,
+ (__attribute__((altivec(vector__))) unsigned short)tv10);
+ sv01e = (__attribute__((altivec(vector__))) unsigned char)vec_adds (
+ (__attribute__((altivec(vector__))) unsigned short)sv01e,
+ (__attribute__((altivec(vector__))) unsigned short)tv01e);
+ sv01 = (__attribute__((altivec(vector__))) unsigned char)vec_adds (
+ (__attribute__((altivec(vector__))) unsigned short)sv01,
+ (__attribute__((altivec(vector__))) unsigned short)tv01);
+ sv11e = (__attribute__((altivec(vector__))) unsigned char)vec_adds (
+ (__attribute__((altivec(vector__))) unsigned short)sv11e,
+ (__attribute__((altivec(vector__))) unsigned short)tv11e);
+ sv11 = (__attribute__((altivec(vector__))) unsigned char)vec_adds (
+ (__attribute__((altivec(vector__))) unsigned short)sv11,
+ (__attribute__((altivec(vector__))) unsigned short)tv11);
+ tv00e = (__attribute__((altivec(vector__))) unsigned char)vec_mule (
+ (__attribute__((altivec(vector__))) unsigned short)sv00e,
+ (__attribute__((altivec(vector__))) unsigned short)dsumev00);
+ tv00 = (__attribute__((altivec(vector__))) unsigned char)vec_mulo (
+ (__attribute__((altivec(vector__))) unsigned short)sv00e,
+ (__attribute__((altivec(vector__))) unsigned short)dsumev00);
+ sv11e = (__attribute__((altivec(vector__))) unsigned char)vec_mule (
+ (__attribute__((altivec(vector__))) unsigned short)sv11,
+ (__attribute__((altivec(vector__))) unsigned short)dsumov11);
+ sv00e = *(__attribute__((altivec(vector__))) unsigned char *)(cur_uv);
+ tv00e = *(__attribute__((altivec(vector__))) unsigned char *)(cur_uv+t16_uv+((f1 && i == 0) << 5));
+ tv11e = *(__attribute__((altivec(vector__))) unsigned char *)(cur_uv+32+t16_uv);
+ tv00 = *(__attribute__((altivec(vector__))) unsigned char *)cur;
+ tv10 = *(__attribute__((altivec(vector__))) unsigned char *)(cur+t16);
+ tv01 = *(__attribute__((altivec(vector__))) unsigned char *)(cur+32);
+ tv11 = *(__attribute__((altivec(vector__))) unsigned char *)(cur+32+t16);
+ if (even) {
+ dsv00 = (__attribute__((altivec(vector__))) unsigned char)vec_mule (
+ tv00e, (__attribute__((altivec(vector__))) unsigned char)(3));
+ dtv00 = (__attribute__((altivec(vector__))) unsigned char)vec_mulo (
+ tv00e, (__attribute__((altivec(vector__))) unsigned char )(3));
+ dsv01 = (__attribute__((altivec(vector__))) unsigned char)vec_add (
+ (__attribute__((altivec(vector__))) unsigned short)dsv01,
+ (__attribute__((altivec(vector__))) unsigned short)dsv10);
+ dtv01 = (__attribute__((altivec(vector__))) unsigned char)vec_add (
+ (__attribute__((altivec(vector__))) unsigned short)dtv01,
+ (__attribute__((altivec(vector__))) unsigned short)dtv10);
+ dsv00 = (__attribute__((altivec(vector__))) unsigned char)vec_add (
+ (__attribute__((altivec(vector__))) unsigned short)dsv00,
+ (__attribute__((altivec(vector__))) unsigned short)dsv11);
+ dtv00 = (__attribute__((altivec(vector__))) unsigned char)vec_add (
+ (__attribute__((altivec(vector__))) unsigned short)dtv00,
+ (__attribute__((altivec(vector__))) unsigned short)dtv11);
+ dsv01 = (__attribute__((altivec(vector__))) unsigned char)vec_sr (
+ (__attribute__((altivec(vector__))) unsigned short)dsv01,
+ (__attribute__((altivec(vector__))) unsigned short)(3));
+ dtv01 = (__attribute__((altivec(vector__))) unsigned char)vec_sr (
+ (__attribute__((altivec(vector__))) unsigned short)dtv01,
+ (__attribute__((altivec(vector__))) unsigned short)(3));
+ dsv00 = (__attribute__((altivec(vector__))) unsigned char)vec_sr (
+ (__attribute__((altivec(vector__))) unsigned short)dsv00,
+ (__attribute__((altivec(vector__))) unsigned short)(3));
+ dtv00 = (__attribute__((altivec(vector__))) unsigned char)vec_sr (
+ (__attribute__((altivec(vector__))) unsigned short)dtv00,
+ (__attribute__((altivec(vector__))) unsigned short)(3));
+ sv01e = vec_perm (dsv01, dtv01, dsv01);
+ tv01e = vec_perm (dsv00, dtv00, dsv00);
+ sv00e = vec_avg (sv00e, sv01e);
+ tv00e = vec_avg (tv00e, tv01e);
+ sv10e = vec_avg (sv01e, sv11e);
+ tv10e = vec_avg (tv01e, tv11e);
+ sv10 = p->proc1 (sv10);
+ tv00 = p->proc1 (tv00);
+ tv10 = p->proc1 (tv10);
+ sv11 = p->proc1 (sv11);
+ tv01 = p->proc1 (tv01);
+ tv11 = p->proc1 (tv11);
+ sv00e = p->proc2 (sv00e);
+ tv00e = p->proc2 (tv00e);
+ sv01e = p->proc2 (sv01e);
+ tv01e = p->proc2 (tv01e);
+ sv10e = p->proc2 (sv10e);
+ tv10e = p->proc2 (tv10e);
+ sv11e = p->proc2 (sv11e);
+ tv11e = p->proc2 (tv11e);
+ }
+ else {
+ if (hz == h1) {
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+si2+16 ) =
+ vec_mergel (sv10e, sv00);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+2*si2 ) =
+ vec_mergeh (sv01e, tv01);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+2*si2+16) =
+ vec_mergel (sv01e, tv01);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+3*si2 ) =
+ vec_mergeh (sv11e, sv01);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+3*si2+16) =
+ vec_mergel (sv11e, sv01);
+ }
+ else
+ {
+ tv11e = p->proc2(tv11e);
+ *(__attribute__((altivec(vector__))) unsigned char *)out =
+ vec_mergeh (sv00e, tv00);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+16) =
+ vec_mergel (sv00e, tv00);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+32) =
+ vec_mergeh (tv00e, tv10);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+48) =
+ vec_mergel (tv00e, tv10);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+si2) =
+ vec_mergeh (sv10e, sv00);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+si2+16) =
+ vec_mergel (sv10e, sv00);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+si2+32) =
+ vec_mergeh (tv10e, sv10);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+si2+48) =
+ vec_mergel (tv10e, sv10);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+2*si2) =
+ vec_mergeh (sv01e, tv01);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+2*si2+16) =
+ vec_mergel (sv01e, tv01);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+2*si2+32) =
+ vec_mergeh (tv01e, tv11);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+2*si2+48) =
+ vec_mergel (tv01e, tv11);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+3*si2) =
+ vec_mergeh (sv11e, sv01);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+3*si2+16) =
+ vec_mergel (sv11e, sv01);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+3*si2+32) =
+ vec_mergeh (tv11e, sv11);
+ *(__attribute__((altivec(vector__))) unsigned char *)(out+3*si2+48) =
+ vec_mergel (tv11e, sv11);
+ }
+ }
+ ds += 64;
+ dt += 64;
+ savg += 64;
+ tavg += 64;
+ cur += 64;
+ cur_uv += ((!(l1 && i > 3)) << 5);
+ out += 4*si2;
+ motin += 4*si1;
+ m3 += 4*si1;
+ }
+}
+
+void M::foo(unsigned si1, unsigned si2)
+{
+ unsigned char tavg[3][32*16];
+ unsigned char savg[3][32*16];
+ unsigned char dtsum[32*16];
+ unsigned char dssum[32*16];
+ unsigned t16;
+ unsigned even = 0;
+ unsigned hz = 0;
+ unsigned char *cur;
+ unsigned char *cur_uv;
+ unsigned char *motin;
+ unsigned char *m3;
+ unsigned char *res;
+ unsigned cc;
+ unsigned h1;
+ T *p = __null;
+ int l1;
+ int f1;
+ bar (savg[cc], tavg[cc], dssum, dtsum, cur, cur_uv, res, motin, m3, even,
+ hz, h1, l1, f1, si1, si2, t16,p);
+ bar (savg[cc], tavg[cc], dssum, dtsum, cur, cur_uv, res, motin, m3, even,
+ hz, h1, l1, f1, si1, si2, t16,p);
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-array-ref.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-array-ref.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-array-ref.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-array-ref.C Thu Nov 8 13:02:27 2007
@@ -18,4 +18,3 @@
{
func();
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-10.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-10.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-10.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-10.C Thu Nov 8 13:02:27 2007
@@ -8,4 +8,3 @@
and ebx, 0fffffffCh// zero low two bits
}
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-2.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-2.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-2.C Thu Nov 8 13:02:27 2007
@@ -98,4 +98,3 @@
abort ();
return 0;
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-54.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-54.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-54.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-54.C Thu Nov 8 13:02:27 2007
@@ -2,7 +2,7 @@
/* APPLE LOCAL x86_64 */
/* { dg-require-effective-target ilp32 } */
/* { dg-options { -fasm-blocks -msse3 } } */
-/* { dg-final { scan-assembler "movq -16\\\(%ebp\\\), %mm0" } } */
+/* { dg-final { scan-assembler "movq -\(16|36\)\\\(%ebp\\\), %mm0" } } */
/* Radar 4515069 */
void foo() {
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-59.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-59.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-59.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-59.C Thu Nov 8 13:02:27 2007
@@ -2,7 +2,7 @@
/* { dg-do compile { target i?86*-*-darwin* } } */
/* { dg-options { -fasm-blocks -msse3 -O2 } } */
/* { dg-require-effective-target ilp32 } */
-/* { dg-final { scan-assembler "-24\\\(%ebp,%edx,2\\\), %ebx" } } */
+/* { dg-final { scan-assembler "-\(40|44\)\\\(%ebp,%edx,2\\\), %ebx" } } */
/* Radar 4699545 */
void bar() {
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-64.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-64.C?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-64.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-64.C Thu Nov 8 13:02:27 2007
@@ -0,0 +1,76 @@
+/* { dg-do compile { target i?86*-*-darwin* } } */
+/* { dg-options { -fasm-blocks -O2 } } */
+/* Radar 5315594 */
+
+typedef unsigned char unsigned8;
+typedef long long int64;
+typedef long int32;
+typedef short int16;
+typedef char int8;
+typedef unsigned long uint32;
+typedef uint32 DWORD;
+struct MMARRAY
+{
+ DWORD RESULT1[ 2 ];
+ DWORD RESULT2[ 2 ];
+ DWORD Fst4DSTPIX[ 2 ];
+ DWORD Snd4DSTPIX[ 2 ];
+ DWORD _scr[ 2 ];
+};
+
+void X_ScreenBlend ( const unsigned8 *sPtr, unsigned8 *dPtr, const unsigned8 *mPtr,
+ int32 rows, int32 cols, int32 sRowBytes, int32 dRowBytes,
+ int32 mRowBytes)
+{
+ int32 sRowB, dRowB, mRowB, Loop8Extras, NumCols;
+ int64 RNDVAL = 0x007F007F007F007FLL;
+ int64 LoByteMask = 0x00FF00FF00FF00FFLL;
+ int64 val254 = 0x00fe00fe00fe00feLL;
+ int64 ZEROMASK = 0x0;
+ int64 ONESMASK = 0x0001000100010001LL;
+ int64 SIGNMASK = 0x8000800080008000LL;
+
+ MMARRAY *pqArray;
+ MMARRAY qArray;
+
+ if ( rows <= 0 || cols <= 0 )
+ return;
+
+ asm {
+ xor eax, eax
+ xor edx, edx
+ mov ax, WORD PTR sRowBytes
+ xor ecx, ecx
+ mov dx, WORD PTR dRowBytes
+ mov sRowB, eax
+ mov cx, WORD PTR mRowBytes
+ xor eax, eax
+ mov ax, WORD PTR cols
+ mov mRowB, ecx
+ mov dRowB, edx
+ lea ecx, qArray
+ mov ebx, eax
+ add ecx, 7
+ shr eax, 3
+ and ecx, 0fffffff8h
+ mov pqArray, ecx
+ and ebx, 7
+ mov NumCols, eax
+ mov Loop8Extras, ebx
+ Row:
+ mov esi, sPtr
+ mov edi, dPtr
+ mov edx, mPtr
+ mov ebx, sRowB
+ mov ecx, dRowB
+ add ebx, esi
+ mov eax, mRowB
+ mov sPtr, ebx
+ add ecx, edi
+ add eax, edx
+ mov dPtr, ecx
+ mov mPtr, eax
+ mov ecx, NumCols
+ mov ebx, 4
+ }
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-65.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-block-65.C?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-65.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-block-65.C Thu Nov 8 13:02:27 2007
@@ -0,0 +1,8 @@
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options { -fasm-blocks } } */
+/* Radar 5474682 */
+
+void foo() {
+ asm { jmp C }
+ asm { C: nop }
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-1.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-1.C Thu Nov 8 13:02:27 2007
@@ -36,4 +36,3 @@
abort ();
return 0;
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-10.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-10.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-10.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-10.C Thu Nov 8 13:02:27 2007
@@ -18,4 +18,3 @@
{
foo();
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-11.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-11.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-11.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-11.C Thu Nov 8 13:02:27 2007
@@ -20,5 +20,3 @@
{
foo();
}
-
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-12.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-12.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-12.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-12.C Thu Nov 8 13:02:27 2007
@@ -15,4 +15,3 @@
{
foo();
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-13.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-13.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-13.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-13.C Thu Nov 8 13:02:27 2007
@@ -22,5 +22,3 @@
{
foo();
}
-
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-14.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-14.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-14.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-14.C Thu Nov 8 13:02:27 2007
@@ -16,4 +16,3 @@
{
foo();
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-15.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-15.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-15.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-15.C Thu Nov 8 13:02:27 2007
@@ -18,4 +18,3 @@
{
return foo(1,2);
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-3.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-3.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-3.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-3.C Thu Nov 8 13:02:27 2007
@@ -23,4 +23,3 @@
abort ();
return 0;
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-4.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-4.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-4.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-4.C Thu Nov 8 13:02:27 2007
@@ -59,4 +59,3 @@
abort ();
return 0;
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-5.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/asm-function-5.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-5.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/asm-function-5.C Thu Nov 8 13:02:27 2007
@@ -53,4 +53,3 @@
abort ();
return 0;
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/format-security-attribute-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/format-security-attribute-1.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/format-security-attribute-1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/format-security-attribute-1.C Thu Nov 8 13:02:27 2007
@@ -20,4 +20,3 @@
CFLog(CFSTR("foo is %@"), CFSTR("foo is %@"), foo); // OK
CFLog(CFSTR("foo is %@")); // OK
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/format-security-attribute-2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/format-security-attribute-2.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/format-security-attribute-2.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/format-security-attribute-2.C Thu Nov 8 13:02:27 2007
@@ -29,4 +29,3 @@
}
-
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/permissive-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/permissive-1.C?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/permissive-1.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/permissive-1.C Thu Nov 8 13:02:27 2007
@@ -0,0 +1,21 @@
+/* APPLE LOCAL file pedwarn for a release 5493351 */
+/* { dg-do compile } */
+/* { dg-options { -O1 -fpermissive -w } } */
+/* { dg-final { scan-assembler "bogus" } } */
+/* Radar 5546638 */
+
+extern int bogus;
+
+int boogus_s;
+
+void Binder()
+{
+ switch (boogus_s) {
+ case 0x2:
+ int jjj = 1;
+ break;
+ case 0xb:
+ bogus=2;
+ break;
+ }
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/pubtypes.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/pubtypes.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/pubtypes.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/pubtypes.C Thu Nov 8 13:02:27 2007
@@ -2,7 +2,7 @@
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-options "-O0 -gdwarf-2 -dA -fno-eliminate-unused-debug-types" } */
/* { dg-final { scan-assembler "__debug_pubtypes" } } */
-/* { dg-final { scan-assembler "long+\[ \t\]+0x24+\[ \t\]+\[#;]+\[ \t\]+Length of Public Type Names Info" } } */
+/* { dg-final { scan-assembler "long+\[ \t\]+0x\[0-9a-f]+\[ \t\]+\[#;]+\[ \t\]+Length of Public Type Names Info" } } */
/* { dg-final { scan-assembler "\"empty\\\\0\"+\[ \t\]+\[#;]+\[ \t\]+external name" } } */
/* { dg-final { scan-assembler "\"A\\\\0\"+\[ \t\]+\[#;]+\[ \t\]+external name" } } */
/* { dg-final { scan-assembler "\"B\\\\0\"+\[ \t\]+\[#;]+\[ \t\]+external name" } } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/time-sort.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/time-sort.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/time-sort.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/time-sort.C Thu Nov 8 13:02:27 2007
@@ -46,4 +46,3 @@
d = t5 - t0;
std::printf("total time = %f\n", d.sec_ + d.nsec_/1.e9);
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/time-sort.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.apple/time-sort.h?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/time-sort.h (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.apple/time-sort.h Thu Nov 8 13:02:27 2007
@@ -223,4 +223,3 @@
}
#endif // HTIMER
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/align-test-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/align-test-1.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/align-test-1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/align-test-1.C Thu Nov 8 13:02:27 2007
@@ -196,8 +196,10 @@
} B2;
-static void check(char * rec_name, int actual, int expected32, int expected64,
- int expected_ia32, char * comment)
+/* APPLE LOCAL begin radar 4869885 */
+static void check(const char * rec_name, int actual, int expected32, int expected64,
+ int expected_ia32, const char * comment)
+/* APPLE LOCAL end radar 4869885 */
{
int expected;
#ifdef __i386__
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/ext/align2.C?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align2.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align2.C Thu Nov 8 13:02:27 2007
@@ -0,0 +1,13 @@
+/* APPLE LOCAL file for-fsf-4_4 3274130 5295549 */
+/* { dg-do compile } */
+/* { dg-options "-falign-functions=1 -falign-labels=1 -falign-loops=1" } */
+/* { dg-final { scan-assembler "align\[ \t]6" } } */
+
+int foo(int * p)
+{
+ int i, c;
+
+ for __attribute__((aligned(64))) (i = c = 0; i < 100; i++)
+ c += p[i];
+ return c;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align3.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/ext/align3.C?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align3.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align3.C Thu Nov 8 13:02:27 2007
@@ -0,0 +1,17 @@
+/* APPLE LOCAL file for-fsf-4_4 3274130 5295549 */
+/* { dg-do compile } */
+/* { dg-options "-falign-functions=1 -falign-labels=1 -falign-loops=1" } */
+/* { dg-final { scan-assembler "align\[ \t]6" } } */
+
+int foo(int * p)
+{
+ int i = 0;
+ int c = 0;
+
+ while __attribute__((aligned(64))) (i < 100)
+ {
+ c += p[i];
+ i++;
+ }
+ return c;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align4.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/ext/align4.C?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align4.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/align4.C Thu Nov 8 13:02:27 2007
@@ -0,0 +1,16 @@
+/* APPLE LOCAL file for-fsf-4_4 3274130 5295549 */
+/* { dg-do compile } */
+/* { dg-options "-falign-functions=1 -falign-labels=1 -falign-loops=1" } */
+/* { dg-final { scan-assembler "align\[ \t]6" } } */
+
+int foo(int * p)
+{
+ int i = 0;
+ int c = 0;
+
+ do __attribute__((aligned(64))) {
+ c += p[i];
+ i++;
+ } while (i < 100);
+ return c;
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/alignof2.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/ext/alignof2.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/alignof2.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/alignof2.C Thu Nov 8 13:02:27 2007
@@ -3,6 +3,9 @@
// wrong for some fields.
// { dg-do run }
+// APPLE LOCAL begin radar 5457234
+// { dg-skip-if "" { "powerpc-apple-darwin*" } { "*" } { "" } }
+// APPLE LOCAL end radar 5457234
extern "C" void abort();
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/visibility/class1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/ext/visibility/class1.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/visibility/class1.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/ext/visibility/class1.C Thu Nov 8 13:02:27 2007
@@ -3,6 +3,8 @@
// { dg-options "-fpic" }
// { dg-do compile { target i?86-*-* x86_64-*-* *-*-darwin* } }
+// APPLE LOCAL mainline candidate
+// { dg-skip-if "" { { i?86-*-darwin* x86_64-*-darwin* } && lp64 } { "*" } { "" } }
// { dg-require-visibility "" }
// { dg-final { scan-assembler "InitEv at PLT|indirect_symbol.*InitEv" } }
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/tc1/dr101.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.dg/tc1/dr101.C?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/tc1/dr101.C (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.dg/tc1/dr101.C Thu Nov 8 13:02:27 2007
@@ -1,7 +1,7 @@
// { dg-do compile }
// Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
// DR101: Redeclaration of extern "C" names via using-declarations
-
+// APPLE LOCAL file C++ using lookup 4329536
namespace Test1 {
typedef unsigned int X;
@@ -17,15 +17,14 @@
namespace Test2 {
- typedef unsigned int X; // { dg-bogus "X" "" { xfail *-*-* } }
+ typedef unsigned int X; // { dg-bogus "X" "" }
extern "C" int f2();
namespace N {
- typedef unsigned int X; // { dg-bogus "X" "" { xfail *-*-* } }
+ typedef unsigned int X; // { dg-bogus "X" "" }
extern "C" int f2();
}
using namespace N;
int i = f2(); // { dg-bogus "" "redeclaration through 'using' should not be ambiguous" }
- X x; // { dg-bogus "" "redeclaration through 'using' should not be ambiguous" { xfail *-*-* } }
+ X x; // { dg-bogus "" "redeclaration through 'using' should not be ambiguous" }
}
-
Added: llvm-gcc-4.2/trunk/gcc/testsuite/g++.old-deja/g++.mike/lookup-1.C
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/g%2B%2B.old-deja/g%2B%2B.mike/lookup-1.C?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/g++.old-deja/g++.mike/lookup-1.C (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/g++.old-deja/g++.mike/lookup-1.C Thu Nov 8 13:02:27 2007
@@ -0,0 +1,10 @@
+/* APPLE LOCAL file C++ using lookup 4329536 */
+
+typedef unsigned short ushort;
+
+namespace wfx {
+ typedef unsigned short ushort;
+}
+using namespace wfx;
+
+ushort valueUS = 567; // OK
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4283414.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4283414.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4283414.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4283414.c Thu Nov 8 13:02:27 2007
@@ -1,4 +1,4 @@
-/* APPLE LOCAL file 4283414 */
+/* APPLE LOCAL file 4283414 mainline candidate */
/* Generate -1 with pcmpeq for SSE2 (x86) */
/* { dg-do compile { target i?86-*-darwin* } } */
/* { dg-options "-O2 -msse2" } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4874471.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4874471.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4874471.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/4874471.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,45 @@
+/* APPLE LOCAL file 4874471 */
+/* Cloned from PR c/29091 */
+/* { dg-do run { target "powerpc*-*-darwin*" } } */
+/* { dg-options "-O2 -mpim-altivec" } */
+
+extern void abort (void);
+
+__attribute__ ((vector_size (sizeof (int) * 4))) int a = { 1, 2 };
+int d = 3;
+__attribute__ ((vector_size (sizeof (int) * 4))) int b = { 4, 5, 6 };
+int e = 7;
+__attribute__ ((vector_size (sizeof (int) * 4))) int c = { };
+
+int
+main (void)
+{
+ int *p = (int *) &a;
+ if (p[0] != 1)
+ abort ();
+ if (p[1] != 2)
+ abort ();
+ if (p[2] != 2)
+ abort ();
+ if (p[3] != 2)
+ abort ();
+ p = (int *) &b;
+ if (p[0] != 4)
+ abort ();
+ if (p[1] != 5)
+ abort ();
+ if (p[2] != 6)
+ abort ();
+ if (p[3] != 6)
+ abort ();
+ p = (int *) &c;
+ if (p[0] != 0)
+ abort ();
+ if (p[1] != 0)
+ abort ();
+ if (p[2] != 0)
+ abort ();
+ if (p[3] != 0)
+ abort ();
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5490617.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5490617.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5490617.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5490617.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,6 @@
+/* APPLE LOCAL file mainline candidate */
+/* { dg-do compile } */
+static char _my_endbss[1];
+char *my_endbss_static = _my_endbss;
+
+/* { dg-final { scan-assembler ".lcomm __my_endbss" } } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5280301.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5280301.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5280301.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5280301.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,46 @@
+/* APPLE LOCAL file 5280301 */
+/* { dg-do run { target powerpc*-*-darwin* } } */
+/* { dg-options "-m64 -O3 -faltivec -std=c99" } */
+typedef unsigned int uint32_t;
+typedef uint32_t vuint32 __attribute__((__vector_size__(16)));
+
+typedef union
+{
+ unsigned long long ul[2];
+ vuint32 v;
+} vec;
+
+extern void abort ();
+
+static int foo (vec *a, vec *b)
+{
+ for (int i = 0; i < 2; ++i)
+ if (a->ul[i] != b->ul[i])
+ return 1;
+ return 0;
+}
+
+int main (void)
+{
+ vec t = { 0 };
+ vec zero, one, signbit, test;
+ int i;
+ zero.ul[0] = 0;
+ zero.ul[1] = 0;
+ one.v = zero.v;
+ one.ul[1] = 1;
+ signbit.v = zero.v;
+ signbit.ul[0] = 0;
+ test.v = t.v & signbit.v;
+ if (foo(&test, &zero))
+ ;
+
+ vec p = one;
+ for (i = 0; i < 16; ++i)
+ {
+ if ((i < 15 && i[(unsigned char *) &p] != 0)
+ || (i == 15 && i[(unsigned char *) &p] != 1))
+ abort ();
+ }
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5447227.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5447227.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5447227.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-5447227.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,25 @@
+/* APPLE LOCAL file 5447227 */
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-options "-faltivec" } */
+
+vector unsigned char foo1 ()
+{
+ return vec_lvsl (); /* { dg-error "error: too few arguments to function" } */
+}
+
+void foo2 ()
+{
+ vector signed char i;
+ vec_stl (i); /* { dg-error "error: too few arguments to function" } */
+}
+
+vector float f;
+int foo3 ()
+{
+ return vec_all_in (f); /* { dg-error "error: too few arguments to function" } */
+}
+
+void foo4 ()
+{
+ vec_dst (); /* { dg-error "error: too few arguments to function|bailing out" } */
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-6.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-6.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-6.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/altivec-6.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,20 @@
+/* APPLE LOCAL file AltiVec */
+/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-options "-faltivec" } */
+
+/* Check whether we have too many args... */
+
+typedef __attribute__((altivec(vector__))) unsigned short vUInt16;
+typedef __attribute__((altivec(vector__))) unsigned int vUInt32;
+
+int main(void)
+{
+ vUInt16 vZero = (vUInt16) ( 0 );
+ vUInt16 v0;
+
+ vUInt32 sum = vec_unpackl (vZero, v0); /* { dg-error "Too many" } */
+
+ return 0;
+
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-array-ref.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-array-ref.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-array-ref.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-array-ref.c Thu Nov 8 13:02:27 2007
@@ -17,4 +17,3 @@
{
func();
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-2.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-2.c Thu Nov 8 13:02:27 2007
@@ -85,4 +85,3 @@
abort ();
return 0;
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-54.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-54.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-54.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-54.c Thu Nov 8 13:02:27 2007
@@ -1,7 +1,7 @@
/* { dg-do compile { target i?86*-*-darwin* } } */
/* { dg-skip-if "" { *-*-darwin* } { "-m64" } { "" } } */
/* { dg-options { -fasm-blocks -msse3 } } */
-/* { dg-final { scan-assembler "movq -16\\\(%ebp\\\), %mm0" } } */
+/* { dg-final { scan-assembler "movq -\(16|36\)\\\(%ebp\\\), %mm0" } } */
/* Radar 4515069 */
void foo() {
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-59.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-59.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-59.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-59.c Thu Nov 8 13:02:27 2007
@@ -2,7 +2,7 @@
/* { dg-do compile { target i?86*-*-darwin* } } */
/* { dg-options { -fasm-blocks -msse3 -O2 } } */
/* { dg-require-effective-target ilp32 } */
-/* { dg-final { scan-assembler "-24\\\(%ebp,%edx,2\\\), %ebx" } } */
+/* { dg-final { scan-assembler "-\(40|44\)\\\(%ebp,%edx,2\\\), %ebx" } } */
/* Radar 4699545 */
void bar() {
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-64.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-64.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-64.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-64.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,76 @@
+/* { dg-do compile { target i?86*-*-darwin* } } */
+/* { dg-options { -fasm-blocks -O2 } } */
+/* Radar 5315594 */
+
+typedef unsigned char unsigned8;
+typedef long long int64;
+typedef long int32;
+typedef short int16;
+typedef char int8;
+typedef unsigned long uint32;
+typedef uint32 DWORD;
+typedef struct MMARRAY
+{
+ DWORD RESULT1[ 2 ];
+ DWORD RESULT2[ 2 ];
+ DWORD Fst4DSTPIX[ 2 ];
+ DWORD Snd4DSTPIX[ 2 ];
+ DWORD _scr[ 2 ];
+} MMARRAY;
+
+void X_ScreenBlend ( const unsigned8 *sPtr, unsigned8 *dPtr, const unsigned8 *mPtr,
+ int32 rows, int32 cols, int32 sRowBytes, int32 dRowBytes,
+ int32 mRowBytes)
+{
+ int32 sRowB, dRowB, mRowB, Loop8Extras, NumCols;
+ int64 RNDVAL = 0x007F007F007F007FLL;
+ int64 LoByteMask = 0x00FF00FF00FF00FFLL;
+ int64 val254 = 0x00fe00fe00fe00feLL;
+ int64 ZEROMASK = 0x0;
+ int64 ONESMASK = 0x0001000100010001LL;
+ int64 SIGNMASK = 0x8000800080008000LL;
+
+ MMARRAY *pqArray;
+ MMARRAY qArray;
+
+ if ( rows <= 0 || cols <= 0 )
+ return;
+
+ asm {
+ xor eax, eax
+ xor edx, edx
+ mov ax, WORD PTR sRowBytes
+ xor ecx, ecx
+ mov dx, WORD PTR dRowBytes
+ mov sRowB, eax
+ mov cx, WORD PTR mRowBytes
+ xor eax, eax
+ mov ax, WORD PTR cols
+ mov mRowB, ecx
+ mov dRowB, edx
+ lea ecx, qArray
+ mov ebx, eax
+ add ecx, 7
+ shr eax, 3
+ and ecx, 0fffffff8h
+ mov pqArray, ecx
+ and ebx, 7
+ mov NumCols, eax
+ mov Loop8Extras, ebx
+ Row:
+ mov esi, sPtr
+ mov edi, dPtr
+ mov edx, mPtr
+ mov ebx, sRowB
+ mov ecx, dRowB
+ add ebx, esi
+ mov eax, mRowB
+ mov sPtr, ebx
+ add ecx, edi
+ add eax, edx
+ mov dPtr, ecx
+ mov mPtr, eax
+ mov ecx, NumCols
+ mov ebx, 4
+ }
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-65.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-65.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-65.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-65.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,8 @@
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options { -fasm-blocks } } */
+/* Radar 5474682 */
+
+void foo() {
+ asm { jmp C }
+ asm { C: nop }
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-66.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-66.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-66.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-block-66.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,11 @@
+/* APPLE LOCAL file CW asm blocks */
+/* { dg-do compile { target i?86*-*-darwin* } } */
+/* { dg-options { -fasm-blocks } } */
+/* { dg-final { scan-assembler "filds" } } */
+/* { dg-final { scan-assembler "fstps" } } */
+/* Radar 4427695 */
+
+void bar() {
+ asm fild WORD PTR [esi]
+ asm fstp DWORD PTR [edi+12]
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-11.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-11.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-11.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-11.c Thu Nov 8 13:02:27 2007
@@ -20,5 +20,3 @@
{
foo();
}
-
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-12.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-12.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-12.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-12.c Thu Nov 8 13:02:27 2007
@@ -15,4 +15,3 @@
{
foo();
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-13.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-13.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-13.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-13.c Thu Nov 8 13:02:27 2007
@@ -22,5 +22,3 @@
{
foo();
}
-
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14.c Thu Nov 8 13:02:27 2007
@@ -4,8 +4,5 @@
asm void foo()
{
- dcbst r0,r5 /* { dg-error "r0 not allowed for parameter 1" } */
-
- li r1, kUndefindedConstant /* { dg-error "expression must be absolute" } */
-
+ li r1, kUndefindedConstant /* { dg-error "kUndefindedConstant.* used but not defined" } */
}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14a.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14a.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14a.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-14a.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,8 @@
+/* APPLE LOCAL file CW asm blocks */
+/* { dg-do assemble { target powerpc*-*-* } } */
+/* { dg-options "-fasm-blocks" } */
+
+asm void foo()
+{
+ dcbst r0,r5 /* { dg-error "r0 not allowed for parameter 1" } */
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-15.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-15.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-15.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-15.c Thu Nov 8 13:02:27 2007
@@ -16,4 +16,3 @@
{
foo();
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-16.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-16.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-16.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-16.c Thu Nov 8 13:02:27 2007
@@ -18,4 +18,3 @@
{
return foo(1,2);
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-3.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-3.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-3.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-3.c Thu Nov 8 13:02:27 2007
@@ -23,4 +23,3 @@
abort ();
return 0;
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-4.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-4.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-4.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-4.c Thu Nov 8 13:02:27 2007
@@ -59,4 +59,3 @@
abort ();
return 0;
}
-
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-5.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-5.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-5.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/asm-function-5.c Thu Nov 8 13:02:27 2007
@@ -47,4 +47,3 @@
abort ();
return 0;
}
-
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ivcanon-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ivcanon-1.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ivcanon-1.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ivcanon-1.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,38 @@
+/* APPLE LOCAL file */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fno-tree-dominator-opts -funroll-loops" } */
+
+void foo(void)
+{
+ int n = 16875;
+
+ while (n)
+ {
+ if (n&1)
+ bar (n);
+ n >>= 1;
+ }
+}
+
+static inline int power (long x, unsigned int n)
+{
+ long y = n % 2 ? x : 1;
+
+ while (n >>= 1)
+ {
+ x = x * x;
+ if (n % 2)
+ y = y * x;
+ }
+
+ return y;
+}
+
+void test(long x)
+{
+ bar (power (x, 10));
+ bar (power (x, 27));
+}
+
+/* All loops should be completely unrolled, so there should be no local labels. */
+/* { dg-final { scan-assembler-not "L\[0-9\]*:" } } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ppc-5450903.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ppc-5450903.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ppc-5450903.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/ppc-5450903.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,10 @@
+/* APPLE LOCAL file radar 5450903 */
+/* { dg-do compile { target "powerpc*-*-darwin*" } } */
+/* { dg-options "-Os" } */
+float foo (float a, float b, float c)
+{
+ float result;
+ asm volatile ("fmul %0, %1, %2 \n fadds %0, %0, %3" : "=&f" (result) :
+ "f" (a), "f" (b), "f" (c) );
+ return result;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/private.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/private.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/private.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/private.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,8 @@
+/* APPLE LOCAL file private extern */
+/* { dg-do compile } */
+/* Radar 5487726 */
+
+void foo() {
+ __private_extern__ void bar();
+ bar();
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/x86-5543378.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/x86-5543378.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/x86-5543378.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/x86-5543378.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,17 @@
+/* APPLE LOCAL file 5543378 */
+/* { dg-do compile { target i?86-*-* } } */
+/* { dg-skip-if "" { i?86-*-* } { "" } { "" } } */
+/* { dg-options "-msse2" } */
+#include <xmmintrin.h>
+void foo1 (int n)
+{
+ __m128i a = _mm_slli_epi32 (a, n);
+}
+
+void foo2 (int n) {
+ __m128i a = _mm_srli_epi32 (a, n);
+}
+
+void foo3 (int n) {
+ __m128i a = _mm_srai_epi32 (a, n);
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-3.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-3.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-3.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-3.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,16 @@
+/* APPLE LOCAL file for-fsf-4_4 3274130 5295549 */
+/* { dg-do compile } */
+/* { dg-options "-falign-functions=1 -falign-labels=1 -falign-loops=1" } */
+/* { dg-final { scan-assembler "align\[ \t]6" } } */
+
+int foo(int * p)
+{
+ int i = 0;
+ int c = 0;
+
+ label: __attribute__((aligned(64)))
+ c += p[i];
+ i++;
+ if (i < 100) goto label;
+ return c;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-4.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-4.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-4.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-4.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,13 @@
+/* APPLE LOCAL file for-fsf-4_4 3274130 5295549 */
+/* { dg-do compile } */
+/* { dg-options "-falign-functions=1 -falign-labels=1 -falign-loops=1" } */
+/* { dg-final { scan-assembler "align\[ \t]6" } } */
+
+int foo(int * p)
+{
+ int i, c;
+
+ for __attribute__((aligned(64))) (i = c = 0; i < 100; i++)
+ c += p[i];
+ return c;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-5.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-5.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-5.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-5.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,17 @@
+/* APPLE LOCAL file for-fsf-4_4 3274130 5295549 */
+/* { dg-do compile } */
+/* { dg-options "-falign-functions=1 -falign-labels=1 -falign-loops=1" } */
+/* { dg-final { scan-assembler "align\[ \t]6" } } */
+
+int foo(int * p)
+{
+ int i = 0;
+ int c = 0;
+
+ while __attribute__((aligned(64))) (i < 100)
+ {
+ c += p[i];
+ i++;
+ }
+ return c;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-6.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-6.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-6.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/align-6.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,16 @@
+/* APPLE LOCAL file for-fsf-4_4 3274130 5295549 */
+/* { dg-do compile } */
+/* { dg-options "-falign-functions=1 -falign-labels=1 -falign-loops=1" } */
+/* { dg-final { scan-assembler "align\[ \t]6" } } */
+
+int foo(int * p)
+{
+ int i = 0;
+ int c = 0;
+
+ do __attribute__((aligned(64))) {
+ c += p[i];
+ i++;
+ } while (i < 100);
+ return c;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-unused-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-unused-1.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-unused-1.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/attr-unused-1.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,13 @@
+/* APPLE LOCAL file for-fsf-4_4 3274130 5295549 */
+/* { dg-do compile } */
+/* { dg-options "-Wunused" } */
+
+int foo(int * p)
+{
+ int i, c;
+
+ for __attribute__((unused))
+ (i = c = 0; i < 100; i++)
+ c += p[i]; /* { dg-warning "ignored" } */
+ return c;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-1.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-1.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-1.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,20 @@
+/* APPLE LOCAL file radar 5155743, mainline candidate */
+/* { dg-do run } */
+/* PR target/28197 */
+
+#include <setjmp.h>
+
+jmp_buf env;
+void f (int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)
+{
+ longjmp (env, 1);
+}
+
+int main()
+{
+ if (setjmp (env) == 0) {
+ void *p = __builtin_alloca (4);
+ f (1,2,3,4,5,6,7,8);
+ }
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-2.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-2.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/builtin-alloca-2.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,19 @@
+/* APPLE LOCAL file radar 5155743, mainline candidate */
+/* { dg-do run } */
+
+#include <setjmp.h>
+
+jmp_buf env;
+int main()
+{
+ char *p;
+ int i;
+ if (setjmp (env) == 0) {
+ p = __builtin_alloca (1024);
+ for (i = 0; i < 1024; i++) {
+ p[i] = 0;
+ }
+ longjmp (env, 1);
+ }
+ return 0;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/flt-rounds.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/flt-rounds.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/flt-rounds.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/flt-rounds.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,30 @@
+/* APPLE LOCAL file 3399553 */
+/* Verify that FLT_ROUNDS changes with a successful call to
+ fesetround(). */
+
+/* { dg-do run } */
+
+#include <fenv.h>
+#include <float.h>
+
+int main (void)
+{
+ if (fesetround (FE_TONEAREST) >= 0
+ && FLT_ROUNDS != 1)
+ return 1;
+
+ if (fesetround (FE_TOWARDZERO) >= 0
+ && FLT_ROUNDS != 0)
+ return 1;
+
+ if (fesetround (FE_UPWARD) >= 0
+ && FLT_ROUNDS != 2)
+ return 1;
+
+ if (fesetround (FE_DOWNWARD) >= 0
+ && FLT_ROUNDS != 3)
+ return 1;
+
+ return 0;
+}
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pragma-darwin-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pragma-darwin-2.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pragma-darwin-2.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/pragma-darwin-2.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,25 @@
+/* APPLE LOCAL file mainline 2007-10-10 5497482 */
+/* Darwin (Mac OS X) pragma exercises. */
+
+/* { dg-do compile { target *-*-darwin* } } */
+
+/* The mark pragma is valid at any point in the program. Fortunately
+ the compiler only needs to ignore it. It's also followed only
+ by pp-tokens, not necessarily real C tokens. */
+
+void foo(void)
+{
+ if (1) {
+ ;
+ }
+ else if (1) {
+ ;
+ }
+#pragma mark "last case" "hi"
+ else if (1) {
+ ;
+ }
+}
+
+#pragma mark 802.11x 1_2_3
+#pragma mark â¢â¢â¢â¢ marker â¢â¢â¢â¢
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c Thu Nov 8 13:02:27 2007
@@ -1,6 +1,5 @@
/* { dg-do compile } */
-/* APPLE LOCAL lno */
-/* { dg-options "-O1 -fdump-tree-dom3 -ftree-loop-optimize" } */
+/* { dg-options "-O1 -fdump-tree-dom3" } */
/* LLVM LOCAL test not applicable */
/* { dg-require-fdump "" } */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c Thu Nov 8 13:02:27 2007
@@ -1,6 +1,5 @@
/* { dg-do compile } */
-/* APPLE LOCAL lno */
-/* { dg-options "-O1 -fdump-tree-dom3 -ftree-loop-optimize" } */
+/* { dg-options "-O1 -fdump-tree-dom3" } */
/* LLVM LOCAL test not applicable */
/* { dg-require-fdump "" } */
Removed: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/ivcanon-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/ivcanon-1.c?rev=43898&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/ivcanon-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/tree-ssa/ivcanon-1.c (removed)
@@ -1,40 +0,0 @@
-/* APPLE LOCAL file lno */
-/* { dg-do compile } */
-/* { dg-options "-O2 -ftree-loop-optimize -funroll-loops -fdump-tree-optimized" } */
-/* LLVM LOCAL test not applicable */
-/* { dg-require-fdump "" } */
-
-void foo(void)
-{
- int n = 16875;
-
- while (n)
- {
- if (n&1)
- bar (n);
- n >>= 1;
- }
-}
-
-static inline int power (long x, unsigned int n)
-{
- long y = n % 2 ? x : 1;
-
- while (n >>= 1)
- {
- x = x * x;
- if (n % 2)
- y = y * x;
- }
-
- return y;
-}
-
-void test(long x)
-{
- bar (power (x, 10));
- bar (power (x, 27));
-}
-
-/* All loops should be completely unrolled, so there should be no labels. */
-/* { dg-final { scan-tree-dump-times "<L" 0 "optimized"} } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/unwind-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/unwind-1.c?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/unwind-1.c (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/unwind-1.c Thu Nov 8 13:02:27 2007
@@ -0,0 +1,8 @@
+/* APPLE LOCAL file for-fsf-4_4 5480287 */
+/* { dg-do assemble } */
+/* { dg-options "-fleading-underscore -funwind-tables" } */
+
+void func(void) __asm("_func");
+void _func(int x) {}
+void func(void) {}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/local2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/local2.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/local2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/local2.c Thu Nov 8 13:02:27 2007
@@ -1,6 +1,12 @@
+/* APPLE LOCAL file mainline */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -funit-at-a-time -fomit-frame-pointer" } */
/* { dg-skip-if "PR 25214" { ilp32 } { "-fpic" "-fPIC" } { "" } } */
+/* APPLE LOCAL begin radar 4875094 */
+/* Thr test relies on -mtune=i386 and the value of STACK_BOUNDARY which was
+ changed for -mpreferred-stack-boundary (radar 3232990). */
+/* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
+/* APPLE LOCAL end radar 4875094 */
/* { dg-final { scan-assembler-not "sub\[^\\n\]*sp" } } */
static __attribute__ ((noinline)) q ();
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/sse-99.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/sse-99.c?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/sse-99.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/sse-99.c Thu Nov 8 13:02:27 2007
@@ -2,7 +2,9 @@
/* { dg-do compile } */
/* APPLE LOCAL x86_64 */
/* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O3 -msse" } */
+/* APPLE LOCAL begin radar 4875125 */
+/* { dg-options "-O3 -msse -mtune=generic" } */
+/* APPLE LOCAL end radar 4875125 */
/* { dg-final { scan-assembler-times "movq" 4 } } */
/* PR target/23630 */
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/lib/scantree.exp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/lib/scantree.exp?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/lib/scantree.exp (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/lib/scantree.exp Thu Nov 8 13:02:27 2007
@@ -17,54 +17,6 @@
# Various utilities for scanning tree dump output, used by gcc-dg.exp and
# g++-dg.exp.
-# APPLE LOCAL begin lno
-# Utility for diffing compiler result against an expected output file.
-# Invoked via dg-final. Call pass if there are no differences between
-# the output of the compiler and the expected output file, otherwise
-# fail. The expected output file has the same name as the output
-# file, and is stored in the same directory as the testcase.
-#
-# Argument 0 is the suffix for the tree dump file
-# Argument 1 handles expected failures and the like
-proc diff-tree-dumps { args } {
- if { [llength $args] < 1 } {
- error "diff-tree-dumps: too few arguments"
- return
- }
- if { [llength $args] > 2 } {
- error "diff-tree-dumps:: too many arguments"
- return
- }
- if { [llength $args] >= 2 } {
- switch [dg-process-target [lindex $args 1]] {
- "S" { }
- "N" { return }
- "F" { setup_xfail "*-*-*" }
- "P" { }
- }
- }
-
- # This assumes that we are two frames down from dg-test, and that
- # it still stores the filename of the testcase in a local variable "name".
- # A cleaner solution would require a new dejagnu release.
- upvar 2 prog testcase
-
- # This must match the rule in gcc-dg.exp.
- # APPLE LOCAL Selective inlining of functions that use Altivec 3837835
- set new_file "[glob [file tail $testcase].\[ti\]??.[lindex $args 0]]"
- set reference_file "[glob $testcase.[lindex $args 0]]"
-
- set test_result [diff $reference_file $new_file]
-
- if { $test_result == 1 } {
- pass "$testcase diff-tree-dumps [lindex $args 0]"
- } else {
- fail "$testcase diff-tree-dumps [lindex $args 0]"
- local_exec (diff $reference_file $new_file 0);
- }
-}
-# APPLE LOCAL end lno
-
load_lib scandump.exp
# Utility for scanning compiler result, invoked via dg-final.
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-typeconv-func-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/cxx-typeconv-func-1.mm?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-typeconv-func-1.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/cxx-typeconv-func-1.mm Thu Nov 8 13:02:27 2007
@@ -0,0 +1,32 @@
+/* APPLE LOCAL file radar 3533972 */
+/* Test that type conversion function is applied to the 'receiver' in a method call,
+ if one is available. */
+/* { dg-options "-framework Foundation -mmacosx-version-min=10.5" } */
+/* { dg-do run { target *-*-darwin* } } */
+#include <Foundation/Foundation.h>
+
+struct wrapper
+{
+ id object;
+ wrapper (id obj) : object(obj) { }
+ operator id () const { return object; }
+};
+
+ at interface NamedObject : NSObject
+- (int) val;
+ at end
+
+ at implementation NamedObject
+- (int) val { return 123; }
+ at end
+
+int main()
+{
+
+ wrapper foo([[NamedObject alloc] init]);
+
+ if ([foo val] != 123)
+ abort ();
+ return 0;
+}
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/enhanced-proto-4.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/enhanced-proto-4.mm?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/enhanced-proto-4.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/enhanced-proto-4.mm Thu Nov 8 13:02:27 2007
@@ -0,0 +1,75 @@
+/* APPLE LOCAL file radar 4653422 */
+/* Test implementation of @optional property */
+/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" } */
+/* { dg-do run { target *-*-darwin* } } */
+#import <Foundation/Foundation.h>
+/* { dg-do run } */
+
+ at protocol Test
+ @property int required;
+
+ at optional
+ @property int optional;
+ @property int optional1;
+ @property int optional_preexisting_setter_getter;
+ @property (setter = setOptional_preexisting_setter_getter: ,
+ getter = optional_preexisting_setter_getter) int optional_with_setter_getter_attr;
+ at required
+ @property int required1;
+ at optional
+ @property int optional_to_be_defined;
+ @property (readonly, getter = optional_preexisting_setter_getter) int optional_getter_attr;
+ at end
+
+ at interface Test : NSObject <Test> {
+ int ivar;
+}
+ at property int required;
+ at property int optional_to_be_defined;
+- (int) optional_preexisting_setter_getter;
+- (void) setOptional_preexisting_setter_getter:(int)value;
+ at end
+
+ at implementation Test
+ at synthesize required = ivar;
+ at synthesize required1 = ivar;
+ at synthesize optional_to_be_defined = ivar;
+- (int) optional_preexisting_setter_getter { return ivar; }
+- (void) setOptional_preexisting_setter_getter:(int)value
+ {
+ ivar = value;
+ }
+- (void) setOptional_getter_attr:(int)value { ivar = value; }
+ at end
+
+int main ()
+{
+ Test *x = [[Test alloc] init];
+ /* 1. Test of a requred property */
+ x.required = 100;
+ if (x.required1 != 100)
+ abort ();
+
+ /* 2. Test of a synthesize optional property */
+ x.optional_to_be_defined = 123;
+ if (x.required1 != 123)
+ abort ();
+
+ /* 3. Test of optional property with pre-sxisting defined setter/getter */
+ x.optional_preexisting_setter_getter = 200;
+ if (x.optional_preexisting_setter_getter != 200)
+ abort ();
+
+ /* 4. Test of optional property with setter/getter attribute */
+ if (x.optional_with_setter_getter_attr != 200)
+ abort ();
+ return 0;
+
+ /* 5. Test of optional property with getter attribute and default setter method. */
+ x.optional_getter_attr = 1000;
+ if (x.optional_getter_attr != 1000)
+ abort ();
+
+ return 0;
+}
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-bitfield-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-bitfield-1.mm?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-bitfield-1.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-bitfield-1.mm Thu Nov 8 13:02:27 2007
@@ -0,0 +1,36 @@
+/* APPLE LOCAL file radar 5389292 */
+/* Test that ivar bitfields work for property of same underlying type. */
+/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" } */
+/* { dg-do run { target *-*-darwin* } } */
+
+#import <Foundation/Foundation.h>
+
+ at interface Foo : NSObject {
+
+ BOOL _field1 : 5;
+ BOOL _field2 : 3;
+}
+
+ at property BOOL field1;
+ at property BOOL field2;
+ at end
+
+ at implementation Foo
+
+ at synthesize field1 = _field1;
+ at synthesize field2 = _field2;
+
+ at end
+
+int main()
+{
+ Foo *f = [[Foo alloc] init];
+ f.field1 = 0xF;
+ f.field2 = 0x3;
+ f.field1 = f.field1 & f.field2;
+ if (f.field1 != 0x3)
+ abort ();
+ return 0;
+}
+
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-nowarn-unused-param.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-nowarn-unused-param.mm?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-nowarn-unused-param.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-nowarn-unused-param.mm Thu Nov 8 13:02:27 2007
@@ -1,15 +1,30 @@
-/* APPLE LOCAL file radar 5232840 */
+/* APPLE LOCAL file radar 5232840 - radar 5398274 */
/* Test that no warning is issued on 'unused' "_value" parameter even though it is used. */
/* { dg-options "-Wunused-parameter -mmacosx-version-min=10.5" } */
/* { dg-do compile { target *-*-darwin* } } */
@interface MyClass
{
+ at private
+ id retainValue;
+ id copyValue;
+ id assignValue;
+ id readOnlyValue;
int foo;
}
+ at property(readwrite, retain) id retainValue;
+ at property(readwrite, assign) id assignValue;
+ at property(readwrite, copy) id copyValue;
+ at property(readonly) id readOnlyValue;
+
@property(readwrite) int foo;
@end
@implementation MyClass
+ at synthesize retainValue;
+ at synthesize assignValue;
+ at synthesize copyValue;
+ at synthesize readOnlyValue;
+
@synthesize foo;
@end
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-warn-direct-ivar-access.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/newproperty-warn-direct-ivar-access.mm?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-warn-direct-ivar-access.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/newproperty-warn-direct-ivar-access.mm Thu Nov 8 13:02:27 2007
@@ -0,0 +1,35 @@
+/* APPLE LOCAL file radar 5376125 */
+/* Test for new objc option -Wdirect-ivar-access. */
+/* { dg-options "-mmacosx-version-min=10.5 -Wdirect-ivar-access" } */
+/* { dg-do compile { target *-*-darwin* } } */
+
+ at interface MyObject {
+ at public
+ id _myMaster;
+ id _isTickledPink;
+}
+ at property(retain) id myMaster;
+ at property(assign) id isTickledPink;
+ at end
+
+ at implementation MyObject
+
+ at synthesize myMaster = _myMaster;
+ at synthesize isTickledPink = _isTickledPink;
+
+- (void) doSomething {
+ _myMaster = _isTickledPink; /* { dg-warning "ivar \'_myMaster\' is being directly accessed" } */
+ /* { dg-warning "ivar \'_isTickledPink\' is being directly accessed" "" { target *-*-* } 21 } */
+}
+
+ at end
+
+MyObject * foo ()
+{
+ MyObject* p;
+ p.isTickledPink = p.myMaster; // ok
+ p->_isTickledPink = p->_myMaster; /* { dg-warning "ivar \'_myMaster\' is being directly accessed" } */
+ /* { dg-warning "ivar \'_isTickledPink\' is being directly accessed" "" { target *-*-* } 31 } */
+ return p->_isTickledPink; /* { dg-warning "ivar \'_isTickledPink\' is being directly accessed" } */
+}
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-neg-selector.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc-neg-selector.mm?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-neg-selector.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc-neg-selector.mm Thu Nov 8 13:02:27 2007
@@ -0,0 +1,12 @@
+/* APPLE LOCAL file radar 5409313 */
+/* { dg-do compile } */
+
+
+typedef struct objc_selector *SEL;
+
+SEL sel;
+
+void foo ()
+{
+ sel = @selector(); /* { dg-error "method name missing in @selector" } */
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-protocol-3.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/objc2-protocol-3.mm?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-protocol-3.mm (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/objc2-protocol-3.mm Thu Nov 8 13:02:27 2007
@@ -1,10 +0,0 @@
-/* APPLE LOCAL file 5433974 */
-/* { dg-options "-mmacosx-version-min=10.5 -fobjc-abi-version=2" } */
-/* { dg-do compile { target *-*-darwin* } } */
-
- at protocol Proto
-+classMethod;
- at end
-
- at implementation <Proto> @end /* { dg-error "use of @implementation" } */
-/* { dg-warning "@end' must appear in an @implementation context" "" { target *-*-darwin* } 9 } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/protocol-atttribute-1.mm
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/obj-c%2B%2B.dg/protocol-atttribute-1.mm?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/protocol-atttribute-1.mm (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/obj-c++.dg/protocol-atttribute-1.mm Thu Nov 8 13:02:27 2007
@@ -0,0 +1,43 @@
+/* APPLE LOCAL file radar 4947311 */
+/* Check implementation of protocol attributes. */
+/* { dg-options "-mmacosx-version-min=10.5" } */
+/* { dg-do compile } */
+
+__attribute ((unavailable))
+ at protocol FwProto;
+
+Class <FwProto> cFw = 0; /* { dg-warning "protocol 'FwProto' is unavailable" } */
+
+
+__attribute ((deprecated)) @protocol MyProto1
+ at end
+
+ at protocol Proto2 <MyProto1> /* { dg-warning "protocol 'MyProto1' is deprecated" } */
++method2;
+ at end
+
+
+ at interface MyClass1 <MyProto1> /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+{
+ Class isa;
+}
+ at end
+
+ at interface Derived : MyClass1 <MyProto1> /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+{
+ id <MyProto1> ivar; /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+}
+ at end
+
+ at interface MyClass1 (Category) <MyProto1, Proto2> /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+ at end
+
+
+
+Class <MyProto1> clsP1 = 0; /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+
+int main ()
+{
+ MyClass1 <MyProto1> *p1; /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/class-attribute-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/class-attribute-1.m?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/class-attribute-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/class-attribute-1.m Thu Nov 8 13:02:27 2007
@@ -1,4 +1,4 @@
-/* APPLE LOCAL file 4548636 */
+/* APPLE LOCAL file 4548636, 5556192 */
/* Check for a variety of rules for objc's class attributes. */
/* APPLE LOCAL radar 4899595 */
/* { dg-options "-mmacosx-version-min=10.5" } */
@@ -32,17 +32,17 @@
@interface UNAVAILABLE
- (int *) AnaotherInst; /* { dg-warning "unknown" } */
+ (DEPRECATED*) return_deprecated; /* { dg-warning "deprecated" } */
- - (UNAVAILABLE *) return_unavailable; /* { dg-warning "unavailable" } */
+ - (UNAVAILABLE *) return_unavailable; /* { dg-error "unavailable" } */
@end
DEPRECATED * deprecated_obj; /* { dg-warning "deprecated" } */
-UNAVAILABLE *unavailable_obj; /* { dg-warning "unavailable" } */
+UNAVAILABLE *unavailable_obj; /* { dg-error "unavailable" } */
@implementation UNAVAILABLE
- (int *) AnaotherInst { return (int*)0; }
+ (DEPRECATED *) return_deprecated { return deprecated_obj; } /* { dg-warning "deprecated" } */
- - (UNAVAILABLE *) return_unavailable { return unavailable_obj; } /* { dg-warning "unavailable" } */
+ - (UNAVAILABLE *) return_unavailable { return unavailable_obj; } /* { dg-error "unavailable" } */
@end
int foo (DEPRECATED *unavailable_obj) /* { dg-warning "deprecated" } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-8.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-8.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-8.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/const-cfstring-8.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,45 @@
+/* APPLE LOCAL file constant cfstrings */
+/* { dg-do compile } */
+/* { dg-options "-fobjc-gc -Os -mmacosx-version-min=10.5.0 -fno-tree-sra" } */
+/* Radar 5494472 */
+
+ at class NSString1, Message1;
+typedef signed long CFIndex1;
+typedef CFIndex1 CFComparisonResult1;
+typedef CFComparisonResult1 (*CFComparatorFunction1)(const void *val1,
+ const void *val2,
+ void *context);
+enum _NSComparisonResult1 {NSOrderedAscending = -1, NSOrderedSame1};
+typedef int NSInteger1;
+typedef NSInteger1 NSComparisonResult1;
+static NSComparisonResult1 _compareMsgsByReadStatus(Message1 *msg1,
+ Message1 *msg2,
+ void *context);
+typedef struct {
+ NSString1 *name;
+ CFComparatorFunction1 func;
+ int i;
+} ComparatorPair;
+
+static const ComparatorPair comparators[] = {
+ { @"readstatus", (CFComparatorFunction1)&_compareMsgsByReadStatus, 0 },
+ { ((void *)0), ((void *)0), 0 }
+};
+
+int sync(int);
+
+void foo(ComparatorPair p);
+
+void MFComparatorFunctionForSortOrder() {
+ unsigned index = 0;
+ ComparatorPair comp = comparators[0];
+ foo(comp);
+}
+
+static NSComparisonResult1
+_compareMsgsByReadStatus(Message1 *msg1,
+ Message1 *msg2, void *context) {
+ NSComparisonResult1 result = NSOrderedSame1;
+
+ return result;
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/enhanced-proto-4.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/enhanced-proto-4.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/enhanced-proto-4.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/enhanced-proto-4.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,75 @@
+/* APPLE LOCAL file radar 4653422 */
+/* Test implementation of @optional property */
+/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" } */
+/* { dg-do run { target *-*-darwin* } } */
+#import <Foundation/Foundation.h>
+/* { dg-do run } */
+
+ at protocol Test
+ @property int required;
+
+ at optional
+ @property int optional;
+ @property int optional1;
+ @property int optional_preexisting_setter_getter;
+ @property (setter = setOptional_preexisting_setter_getter: ,
+ getter = optional_preexisting_setter_getter) int optional_with_setter_getter_attr;
+ at required
+ @property int required1;
+ at optional
+ @property int optional_to_be_defined;
+ @property (readonly, getter = optional_preexisting_setter_getter) int optional_getter_attr;
+ at end
+
+ at interface Test : NSObject <Test> {
+ int ivar;
+}
+ at property int required;
+ at property int optional_to_be_defined;
+- (int) optional_preexisting_setter_getter;
+- (void) setOptional_preexisting_setter_getter:(int)value;
+ at end
+
+ at implementation Test
+ at synthesize required = ivar;
+ at synthesize required1 = ivar;
+ at synthesize optional_to_be_defined = ivar;
+- (int) optional_preexisting_setter_getter { return ivar; }
+- (void) setOptional_preexisting_setter_getter:(int)value
+ {
+ ivar = value;
+ }
+- (void) setOptional_getter_attr:(int)value { ivar = value; }
+ at end
+
+int main ()
+{
+ Test *x = [[Test alloc] init];
+ /* 1. Test of a requred property */
+ x.required = 100;
+ if (x.required1 != 100)
+ abort ();
+
+ /* 2. Test of a synthesize optional property */
+ x.optional_to_be_defined = 123;
+ if (x.required1 != 123)
+ abort ();
+
+ /* 3. Test of optional property with pre-sxisting defined setter/getter */
+ x.optional_preexisting_setter_getter = 200;
+ if (x.optional_preexisting_setter_getter != 200)
+ abort ();
+
+ /* 4. Test of optional property with setter/getter attribute */
+ if (x.optional_with_setter_getter_attr != 200)
+ abort ();
+ return 0;
+
+ /* 5. Test of optional property with getter attribute and default setter method. */
+ x.optional_getter_attr = 1000;
+ if (x.optional_getter_attr != 1000)
+ abort ();
+
+ return 0;
+}
+
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-1.m?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-1.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-1.m Thu Nov 8 13:02:27 2007
@@ -1,4 +1,4 @@
-/* APPLE LOCAL file radar 3803157, 5005756 */
+/* APPLE LOCAL file radar 3803157, 5005756, 5556192 */
/* Test implementaion of attributes on methods. */
/* { dg-do compile } */
@@ -29,11 +29,11 @@
id pid;
[p foo]; /* { dg-warning "\\'foo\\' is deprecated" } */
- /* { dg-warning "\\'foo\\' is unavailable" "" { target *-*-* } 31 } */
+ /* { dg-error "\\'foo\\' is unavailable" "" { target *-*-* } 31 } */
[p variarg:1,2]; /* { dg-warning "\\'variarg:\\' is deprecated" } */
[p fun1:1:2]; /* { dg-warning "\\'fun1::\\' is deprecated" } */
[p bar]; /* { dg-warning "\\'bar\\' is deprecated" } */
- /* { dg-warning "\\'bar\\' is unavailable" "" { target *-*-* } 35 } */
+ /* { dg-error "\\'bar\\' is unavailable" "" { target *-*-* } 35 } */
[pid foo]; // OK
[pid variarg:1,2]; // OK
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-2.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-2.m?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-2.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/method-attribute-2.m Thu Nov 8 13:02:27 2007
@@ -1,4 +1,4 @@
-/* APPLE LOCAL file radar 3803157 */
+/* APPLE LOCAL file radar 3803157, 5556192 */
/* Test implementaion of attributes on methods. */
/* { dg-do compile } */
@@ -29,7 +29,7 @@
INTF *p;
[p foo1:2]; /* { dg-warning "\\'foo1:\\' is deprecated" } */
[p foo2:2]; /* { dg-warning "\\'foo2:\\' is deprecated" } */
- /* { dg-warning "\\'foo2:\\' is unavailable" "" { target *-*-* } 31 } */
+ /* { dg-error "\\'foo2:\\' is unavailable" "" { target *-*-* } 31 } */
return [p foo:1];
}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-attr-encode-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-attr-encode-1.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-attr-encode-1.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-attr-encode-1.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,18 @@
+/* APPLE LOCAL file radar 5407792 */
+/* 'nonatomic' property requires a new 'N' property attribute encoding */
+/* { dg-options "-mmacosx-version-min=10.5" } */
+/* { dg-do compile { target *-*-darwin* } } */
+
+#import <Foundation/Foundation.h>
+
+ at interface NonAtomicTest : NSObject {
+ NSString *foo;
+}
+ at property(copy, nonatomic) NSString *foo;
+ at end
+
+ at implementation NonAtomicTest
+ at synthesize foo;
+ at end
+/* { dg-final { scan-assembler ".*C,N,Vfoo" } } */
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-bitfield-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-bitfield-1.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-bitfield-1.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-bitfield-1.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,36 @@
+/* APPLE LOCAL file radar 5389292 */
+/* Test that ivar bitfields work for property of same underlying type. */
+/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation" } */
+/* { dg-do run { target *-*-darwin* } } */
+
+#import <Foundation/Foundation.h>
+
+ at interface Foo : NSObject {
+
+ BOOL _field1 : 5;
+ BOOL _field2 : 3;
+}
+
+ at property BOOL field1;
+ at property BOOL field2;
+ at end
+
+ at implementation Foo
+
+ at synthesize field1 = _field1;
+ at synthesize field2 = _field2;
+
+ at end
+
+int main()
+{
+ Foo *f = [[Foo alloc] init];
+ f.field1 = 0xF;
+ f.field2 = 0x3;
+ f.field1 = f.field1 & f.field2;
+ if (f.field1 != 0x3)
+ abort ();
+ return 0;
+}
+
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-1.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-1.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-neg-1.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,33 @@
+/* APPLE LOCAL file radar 5390587 */
+/* Test that use of property name as 'getter' attribute of a 'readonly' property
+ does not confuse gcc into issuing bogus error. */
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options "-mmacosx-version-min=10.5" } */
+
+
+ at protocol Test
+ @property (readonly, getter = PROPERTY1) int ANOTHER_READONLY_PROPERTY;
+
+ @property int PROPERTY1;
+
+ @property (readonly, getter = PROPERTY1) int READONLY_PROPERTY;
+
+ at end
+
+ at interface Test <Test> {
+ int ivar;
+}
+- (int) PROPERTY1;
+- (void) setPROPERTY1:(int)value;
+ at end
+
+int main ()
+{
+ Test *x;
+
+ x.PROPERTY1 = 200 + x.READONLY_PROPERTY; /* OK */
+ x.READONLY_PROPERTY = x.PROPERTY1 - 100; /* { dg-error "object cannot be set - either readonly property or no setter found" } */
+ x.ANOTHER_READONLY_PROPERTY = x.PROPERTY1 - 100; /* { dg-error "object cannot be set - either readonly property or no setter found" } */
+ return 0;
+}
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-warn-direct-ivar-access.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-warn-direct-ivar-access.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-warn-direct-ivar-access.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/newproperty-warn-direct-ivar-access.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,35 @@
+/* APPLE LOCAL file radar 5376125 */
+/* Test for new objc option -Wdirect-ivar-access. */
+/* { dg-options "-mmacosx-version-min=10.5 -Wdirect-ivar-access" } */
+/* { dg-do compile { target *-*-darwin* } } */
+
+ at interface MyObject {
+ at public
+ id _myMaster;
+ id _isTickledPink;
+}
+ at property(retain) id myMaster;
+ at property(assign) id isTickledPink;
+ at end
+
+ at implementation MyObject
+
+ at synthesize myMaster = _myMaster;
+ at synthesize isTickledPink = _isTickledPink;
+
+- (void) doSomething {
+ _myMaster = _isTickledPink; /* { dg-warning "ivar \'_myMaster\' is being directly accessed" } */
+ /* { dg-warning "ivar \'_isTickledPink\' is being directly accessed" "" { target *-*-* } 21 } */
+}
+
+ at end
+
+MyObject * foo ()
+{
+ MyObject* p;
+ p.isTickledPink = p.myMaster; // ok
+ p->_isTickledPink = p->_myMaster; /* { dg-warning "ivar \'_myMaster\' is being directly accessed" } */
+ /* { dg-warning "ivar \'_isTickledPink\' is being directly accessed" "" { target *-*-* } 31 } */
+ return p->_isTickledPink; /* { dg-warning "ivar \'_isTickledPink\' is being directly accessed" } */
+}
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-10.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-10.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-10.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc-gc-10.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,10 @@
+/* APPLE LOCAL file objc gc 5547128 */
+/* { dg-do compile } */
+/* { dg-options "-fobjc-gc" } */
+/* Radar 5547128 */
+
+__strong float *fp;
+
+void foo() {
+ fp[0] = 3.14;
+}
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-protocol-3.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-protocol-3.m?rev=43899&r1=43898&r2=43899&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-protocol-3.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-protocol-3.m Thu Nov 8 13:02:27 2007
@@ -1,10 +0,0 @@
-/* APPLE LOCAL file 5433974 */
-/* { dg-options "-mmacosx-version-min=10.5 -fobjc-abi-version=2" } */
-/* { dg-do compile { target *-*-darwin* } } */
-
- at protocol Proto
-+classMethod;
- at end
-
- at implementation <Proto> @end /* { dg-error "use of @implementation" } */
-/* { dg-warning "@end' must appear in an @implementation context" "" { target *-*-darwin* } 9 } */
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-15.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-15.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-15.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/property-15.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,52 @@
+/* APPLE LOCAL file radar 5512183 */
+/* { dg-options "-mmacosx-version-min=10.5" } */
+/* { dg-do compile } */
+
+ at class SSyncSet;
+ at class SStore;
+ at class SSyncJob;
+ at class SNode;
+
+SSyncSet *slocal;
+
+ at interface SPeer
+{
+}
+ at property(nonatomic,readonly,retain) SSyncSet* syncSet;
+ at end
+
+ at class SSyncSet_iDisk;
+
+ at interface SPeer_iDisk_remote1 : SPeer
+{
+}
+- (SSyncSet_iDisk*) syncSet;
+ at end
+
+ at interface SPeer_iDisk_local
+{
+}
+- (SSyncSet_iDisk*) syncSet;
+ at end
+
+ at interface SSyncSet
+{
+}
+ at end
+
+ at interface SSyncSet_iDisk
+{
+}
+
+ at property(nonatomic,readonly,retain) SPeer_iDisk_local* localPeer;
+ at end
+
+ at interface SPeer_iDisk_remote1 (protected)
+ at end
+
+ at implementation SPeer_iDisk_remote1 (protected)
+- (void) preferredSource1
+{
+ self.syncSet.localPeer; /* { dg-error "type of accessor does not match the type of property" } */
+}
+ at end
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/protocol-atttribute-1.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/protocol-atttribute-1.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/protocol-atttribute-1.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/protocol-atttribute-1.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,43 @@
+/* APPLE LOCAL file radar 4947311, 5556192 */
+/* Check implementation of protocol attributes. */
+/* { dg-options "-mmacosx-version-min=10.5" } */
+/* { dg-do compile } */
+
+__attribute ((unavailable))
+ at protocol FwProto;
+
+Class <FwProto> cFw = 0; /* { dg-error "protocol 'FwProto' is unavailable" } */
+
+
+__attribute ((deprecated)) @protocol MyProto1
+ at end
+
+ at protocol Proto2 <MyProto1> /* { dg-warning "protocol 'MyProto1' is deprecated" } */
++method2;
+ at end
+
+
+ at interface MyClass1 <MyProto1> /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+{
+ Class isa;
+}
+ at end
+
+ at interface Derived : MyClass1 <MyProto1> /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+{
+ id <MyProto1> ivar; /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+}
+ at end
+
+ at interface MyClass1 (Category) <MyProto1, Proto2> /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+ at end
+
+
+
+Class <MyProto1> clsP1 = 0; /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+
+int main ()
+{
+ MyClass1 <MyProto1> *p1; /* { dg-warning "protocol 'MyProto1' is deprecated" } */
+}
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/pubtypes-id-test.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,35 @@
+// APPLE LOCAL file
+// Test case taken from SKTGridPanelController.m
+// Sketch Example
+//
+/* Radar 5359827 */
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options "-O0 -g -c -save-temps -dA --no-warn" } */
+/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
+/* { dg-final { scan-assembler "__debug_pubtypes" } } */
+/* { dg-final { scan-assembler "long\[ \t]+0x\[0-9a-f]+\[ \t]+\[#;]\[ \t]+Length of Public Type Names Info" } } */
+/* { dg-final { scan-assembler "id\\\\0\"\[ \t]+\[#;]\[ \t]+external name" } } */
+
+
+#import <AppKit/AppKit.h>
+
+ at implementation SKTGridPanelController
+
++ (id)sharedGridPanelController {
+ static SKTGridPanelController *sharedGridPanelController = nil;
+
+ if (!sharedGridPanelController) {
+ sharedGridPanelController = [[SKTGridPanelController allocWithZone:NULL] init];
+ }
+
+ return sharedGridPanelController;
+}
+
+- (id)init {
+ self = [self initWithWindowNibName:@"GridPanel"];
+ if (self) {
+ [self setWindowFrameAutosaveName:@"Grid"];
+ }
+ return self;
+}
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/super-finalize-3.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/super-finalize-3.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/super-finalize-3.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/super-finalize-3.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,25 @@
+/* APPLE LOCAL file radar 5424473 */
+/* Don't issue warning on lack of [super finalize] method call for a class method
+ named +finalize. */
+/* { dg-do compile { target *-*-darwin* } } */
+
+
+ at interface parent
+{
+ int data;
+}
+ at end
+
+ at interface child : parent
+{
+}
++ finalize;
+
+ at end
+
+ at implementation child
++ finalize
+{
+}
+ at end
+
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/unavailable.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/unavailable.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/unavailable.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/unavailable.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,16 @@
+/* APPLE LOCAL file "unavailable" attribute 5556192 */
+
+/* { dg-do compile } */
+
+ at interface Foo
+-(void) method3 __attribute__((unavailable));
+ at end
+
+extern void func3() __attribute__((unavailable));
+
+void test(Foo* obj)
+{
+ [obj method3]; /* { dg-error "is unavailable" } */
+
+ func3(); /* { dg-error "is unavailable" } */
+}
Added: llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/trivial.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/trivial.m?rev=43899&view=auto
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/trivial.m (added)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc/execute/trivial.m Thu Nov 8 13:02:27 2007
@@ -0,0 +1,8 @@
+/* APPLE LOCAL file add trivial.m */
+#import <objc/Object.h>
+
+int main(void)
+{
+ [Object class];
+ return 0;
+}
More information about the llvm-commits
mailing list