[cfe-commits] r98073 - /cfe/trunk/test/CodeGenObjC/id-isa-codegen.m

Fariborz Jahanian fjahanian at apple.com
Tue Mar 9 11:15:10 PST 2010


Author: fjahanian
Date: Tue Mar  9 13:15:10 2010
New Revision: 98073

URL: http://llvm.org/viewvc/llvm-project?rev=98073&view=rev
Log:
Code gen test for a previous patch for
radar 7709015

Modified:
    cfe/trunk/test/CodeGenObjC/id-isa-codegen.m

Modified: cfe/trunk/test/CodeGenObjC/id-isa-codegen.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/id-isa-codegen.m?rev=98073&r1=98072&r2=98073&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/id-isa-codegen.m (original)
+++ cfe/trunk/test/CodeGenObjC/id-isa-codegen.m Tue Mar  9 13:15:10 2010
@@ -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)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





More information about the cfe-commits mailing list