r196287 - Check IR on this test.

Rafael Espindola rafael.espindola at gmail.com
Tue Dec 3 06:46:31 PST 2013


Author: rafael
Date: Tue Dec  3 08:46:31 2013
New Revision: 196287

URL: http://llvm.org/viewvc/llvm-project?rev=196287&view=rev
Log:
Check IR on this test.

Modified:
    cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m

Modified: cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m?rev=196287&r1=196286&r2=196287&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m Tue Dec  3 08:46:31 2013
@@ -1,8 +1,7 @@
-// REQUIRES: x86-registered-target,x86-64-registered-target
-// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-64.s
-// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
-// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-32.s
-// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s
+// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | \
+// RUN: FileCheck %s
+// RUN: %clang_cc1 -fblocks -fobjc-gc -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o - | \
+// RUN: FileCheck %s
 
 @interface NSObject 
 - copy;
@@ -19,8 +18,5 @@ int main() {
     return 0;
 }
 
-// CHECK-LP64: callq    _objc_read_weak
-// CHECK-LP64: callq    _objc_read_weak
-
-// CHECK-LP32: calll     L_objc_read_weak
-// CHECK-LP32: calll     L_objc_read_weak
+// CHECK: call i8* @objc_read_weak
+// CHECK: call i8* @objc_read_weak





More information about the cfe-commits mailing list