xref: /llvm-project/llvm/test/CodeGen/X86/2008-04-15-LiveVariableBug.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mtriple=x86_64-apple-darwin
2; RUN: llc < %s -mtriple=x86_64-apple-darwin -relocation-model=pic -frame-pointer=all -O0 -regalloc=fast
3; PR5534
4
5	%struct.CGPoint = type { double, double }
6	%struct.NSArray = type { %struct.NSObject }
7	%struct.NSAssertionHandler = type { %struct.NSObject, ptr }
8	%struct.NSDockTile = type { %struct.NSObject, ptr, ptr, ptr, ptr, ptr, ptr, %struct._SPFlags, %struct.CGPoint, [5 x ptr] }
9	%struct.NSDocument = type { %struct.NSObject, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr, %struct._BCFlags2, ptr }
10	%struct.AA = type { %struct.NSObject, ptr, ptr, ptr, ptr }
11	%struct.NSError = type { %struct.NSObject, ptr, i64, ptr, ptr }
12	%struct.NSImage = type { %struct.NSObject, ptr, %struct.CGPoint, %struct._BCFlags2, ptr, ptr }
13	%struct.NSMutableArray = type { %struct.NSArray }
14	%struct.NSObject = type { ptr }
15	%struct.NSPrintInfo = type { %struct.NSObject, ptr, ptr }
16	%struct.NSRect = type { %struct.CGPoint, %struct.CGPoint }
17	%struct.NSRegion = type opaque
18	%struct.NSResponder = type { %struct.NSObject, ptr }
19	%struct.NSToolbar = type { %struct.NSObject, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, %struct._BCFlags2, i64, ptr }
20	%struct.NSURL = type { %struct.NSObject, ptr, ptr, ptr, ptr }
21	%struct.NSUndoManager = type { %struct.NSObject, ptr, ptr, ptr, i64, %struct._SPFlags, ptr, ptr, ptr, ptr }
22	%struct.NSView = type { %struct.NSResponder, %struct.NSRect, %struct.NSRect, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct._BCFlags, %struct._SPFlags }
23	%struct.NSWindow = type { %struct.NSResponder, %struct.NSRect, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i64, i32, ptr, ptr, i8, i8, i8, i8, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, %struct.__wFlags, ptr, ptr, ptr }
24	%struct.NSWindowAuxiliary = type { %struct.NSObject, ptr, ptr, ptr, %struct.NSRect, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.CGPoint, ptr, ptr, ptr, i32, ptr, ptr, double, %struct.CGPoint, ptr, ptr, ptr, ptr, ptr, ptr, %struct.__auxWFlags, i32, ptr, double, ptr, ptr, ptr, ptr, ptr, %struct.NSRect, ptr, %struct.NSRect, ptr }
25	%struct.NSWindowController = type { %struct.NSResponder, ptr, ptr, ptr, ptr, ptr, %struct._SPFlags, ptr, ptr }
26	%struct._BCFlags = type <{ i8, i8, i8, i8 }>
27	%struct._BCFlags2 = type <{ i8, [3 x i8] }>
28	%struct._NSImageAuxiliary = type opaque
29	%struct._NSViewAuxiliary = type opaque
30	%struct._NSWindowAnimator = type opaque
31	%struct._SPFlags = type <{ i32 }>
32	%struct.__CFArray = type opaque
33	%struct.__CFRunLoopObserver = type opaque
34	%struct.__auxWFlags = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i16 }
35	%struct.__wFlags = type <{ i8, i8, i8, i8, i8, i8, i8, i8 }>
36	%struct._message_ref_t = type { ptr, ptr }
37	%struct.objc_selector = type opaque
38@"\01L_OBJC_MESSAGE_REF_228" = internal global %struct._message_ref_t zeroinitializer		; <ptr> [#uses=1]
39@llvm.used1 = appending global [1 x ptr] [ ptr @"-[AA BB:optionIndex:delegate:CC:contextInfo:]" ], section "llvm.metadata"		; <ptr> [#uses=0]
40
41define void @"-[AA BB:optionIndex:delegate:CC:contextInfo:]"(ptr %self, ptr %_cmd, ptr %inError, i64 %inOptionIndex, ptr %inDelegate, ptr %inDidRecoverSelector, ptr %inContextInfo) {
42entry:
43	%tmp105 = load ptr, ptr null, align 8		; <ptr> [#uses=1]
44	%tmp107 = load ptr, ptr null, align 8		; <ptr> [#uses=1]
45	call void null( ptr %tmp107, ptr @"\01L_OBJC_MESSAGE_REF_228", ptr %tmp105, i8 signext  0 )
46	%tmp111 = call ptr (ptr, ptr, ...) @objc_msgSend( ptr null, ptr null, i32 0, ptr null )		; <ptr> [#uses=0]
47	ret void
48}
49
50declare ptr @objc_msgSend(ptr, ptr, ...)
51