aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-03-09 19:15:10 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-03-09 19:15:10 +0000
commit40ac5178f88abe38f4d6da122e05d1d2555d05a4 (patch)
treebf5005bc9ee774fba892a8b5cbcac0f1f73091a2
parent683f6db0b7f0475123f66887f333c40fb2d791a2 (diff)
Code gen test for a previous patch for
radar 7709015 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98073 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGenObjC/id-isa-codegen.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/CodeGenObjC/id-isa-codegen.m b/test/CodeGenObjC/id-isa-codegen.m
index e893aaa4f3..a1f3d66a59 100644
--- a/test/CodeGenObjC/id-isa-codegen.m
+++ b/test/CodeGenObjC/id-isa-codegen.m
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix LP64 %s
+// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -o - %s | FileCheck -check-prefix LP32 %s
typedef struct objc_class *Class;
@@ -63,4 +64,10 @@ id Test2() {
((id)cat)->isa = dynamicSubclass;
}
@end
+// CHECK-LP64: %tmp2 = load i8** %
+// CHECK-LP64: %1 = bitcast i8* %tmp2 to i8**
+// CHECK-LP64: store i8* %tmp, i8** %1
+// CHECK-LP32: %tmp2 = load i8** %
+// CHECK-LP32: %1 = bitcast i8* %tmp2 to i8**
+// CHECK-LP32: store i8* %tmp, i8** %1