llvm-project/llvm/test/CodeGen/PowerPC/2007-10-21-LocalRegAllocAssert.ll
Kai Nacke 427fb35192 [PPC] Opaque pointer migration, part 1.
The LIT test cases were migrated with the script provided by
Nikita Popov. Due to the size of the change it is split into
several parts.

Reviewed By: nemanja, amyk, nikic, PowerPC

Differential Revision: https://reviews.llvm.org/D135470
2022-10-11 17:24:06 +00:00

33 lines
1.8 KiB
LLVM

; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -regalloc=fast -optimize-regalloc=0 -relocation-model=pic | FileCheck %s
%struct.NSError = type opaque
%struct.NSManagedObjectContext = type opaque
%struct.NSPersistentStoreCoordinator = type opaque
%struct.NSString = type opaque
%struct.NSURL = type opaque
%struct._message_ref_t = type { ptr, ptr }
%struct.objc_object = type { }
%struct.objc_selector = type opaque
@"\01L_OBJC_MESSAGE_REF_2" = external global %struct._message_ref_t ; <ptr> [#uses=1]
@"\01L_OBJC_MESSAGE_REF_6" = external global %struct._message_ref_t ; <ptr> [#uses=1]
@NSXMLStoreType = external constant ptr ; <ptr> [#uses=1]
@"\01L_OBJC_MESSAGE_REF_5" = external global %struct._message_ref_t ; <ptr> [#uses=2]
@"\01L_OBJC_MESSAGE_REF_4" = external global %struct._message_ref_t ; <ptr> [#uses=1]
; TODO: KB: ORiginal test case was just checking it compiles; is this worth keeping?
; CHECK: managedObjectContextWithModelURL
; CHECK-NOT: blr
; CHECK: .cfi_endproc
define ptr @"+[ListGenerator(Private) managedObjectContextWithModelURL:storeURL:]"(ptr %self, ptr %_cmd, ptr %modelURL, ptr %storeURL) {
entry:
%storeCoordinator = alloca ptr ; <ptr> [#uses=0]
%tmp29 = call ptr (ptr, ptr, ...) null( ptr null, ptr @"\01L_OBJC_MESSAGE_REF_2" ) ; <ptr> [#uses=0]
%tmp34 = load ptr, ptr @NSXMLStoreType, align 8 ; <ptr> [#uses=1]
%tmp37 = load ptr, ptr @"\01L_OBJC_MESSAGE_REF_5", align 8 ; <ptr> [#uses=1]
%tmp42 = call ptr (ptr, ptr, ...) null( ptr null, ptr @"\01L_OBJC_MESSAGE_REF_4", i32 1 ) ; <ptr> [#uses=1]
%tmp45 = call ptr (ptr, ptr, ...) %tmp37( ptr null, ptr @"\01L_OBJC_MESSAGE_REF_5", ptr %tmp42, ptr null ) ; <ptr> [#uses=1]
%tmp48 = call ptr (ptr, ptr, ...) null( ptr null, ptr @"\01L_OBJC_MESSAGE_REF_6", ptr %tmp34, ptr null, ptr null, ptr %tmp45, ptr null ) ; <ptr> [#uses=0]
unreachable
}