1 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -regalloc=fast -optimize-regalloc=0 -relocation-model=pic | FileCheck %s
3 %struct.NSError = type opaque
4 %struct.NSManagedObjectContext = type opaque
5 %struct.NSString = type opaque
6 %struct.NSURL = type opaque
7 %struct._message_ref_t = type { ptr, ptr }
8 %struct.objc_object = type { }
9 %struct.objc_selector = type opaque
10 @"\01L_OBJC_MESSAGE_REF_2" = external global %struct._message_ref_t ; <ptr> [#uses=2]
11 @"\01L_OBJC_MESSAGE_REF_6" = external global %struct._message_ref_t ; <ptr> [#uses=2]
12 @NSXMLStoreType = external constant ptr ; <ptr> [#uses=1]
13 @"\01L_OBJC_MESSAGE_REF_4" = external global %struct._message_ref_t ; <ptr> [#uses=2]
15 ; TODO: KB: ORiginal test case was just checking it compiles; is this worth keeping?
16 ; CHECK: managedObjectContextWithModelURL
20 define ptr @"+[ListGenerator(Private) managedObjectContextWithModelURL:storeURL:]"(ptr %self, ptr %_cmd, ptr %modelURL, ptr %storeURL) {
22 %tmp27 = load ptr, ptr @"\01L_OBJC_MESSAGE_REF_2", align 8 ; <ptr> [#uses=1]
23 %tmp29 = call ptr (ptr, ptr, ...) %tmp27( ptr null, ptr @"\01L_OBJC_MESSAGE_REF_2" ) ; <ptr> [#uses=0]
24 %tmp33 = load ptr, ptr @"\01L_OBJC_MESSAGE_REF_6", align 8 ; <ptr> [#uses=1]
25 %tmp34 = load ptr, ptr @NSXMLStoreType, align 8 ; <ptr> [#uses=1]
26 %tmp40 = load ptr, ptr @"\01L_OBJC_MESSAGE_REF_4", align 8 ; <ptr> [#uses=1]
27 %tmp42 = call ptr (ptr, ptr, ...) %tmp40( ptr null, ptr @"\01L_OBJC_MESSAGE_REF_4", i32 1 ) ; <ptr> [#uses=0]
28 %tmp48 = call ptr (ptr, ptr, ...) %tmp33( ptr null, ptr @"\01L_OBJC_MESSAGE_REF_6", ptr %tmp34, ptr null, ptr null, ptr null, ptr null ) ; <ptr> [#uses=0]