mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
f2f6ce65b7
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
1.3 KiB
LLVM
28 lines
1.3 KiB
LLVM
; RUN: opt < %s -instcombine -S | \
|
|
; RUN: grep {call float bitcast} | count 1
|
|
%struct.NSObject = type { %struct.objc_class* }
|
|
%struct.NSArray = type { %struct.NSObject }
|
|
%struct.objc_class = type opaque
|
|
%struct.objc_selector = type opaque
|
|
|
|
@"\01L_OBJC_METH_VAR_NAME_112" = internal global [15 x i8] c"whiteComponent\00", section "__TEXT,__cstring,cstring_literals"
|
|
@"\01L_OBJC_SELECTOR_REFERENCES_81" = internal global %struct.objc_selector* bitcast ([15 x i8]* @"\01L_OBJC_METH_VAR_NAME_112" to %struct.objc_selector*), section "__OBJC,__message_refs,literal_pointers,no_dead_strip"
|
|
|
|
define void @bork() nounwind {
|
|
entry:
|
|
%color = alloca %struct.NSArray*
|
|
%color.466 = alloca %struct.NSObject*
|
|
%tmp103 = load %struct.NSArray** %color, align 4
|
|
%tmp103104 = getelementptr %struct.NSArray* %tmp103, i32 0, i32 0
|
|
store %struct.NSObject* %tmp103104, %struct.NSObject** %color.466, align 4
|
|
%tmp105 = load %struct.objc_selector** @"\01L_OBJC_SELECTOR_REFERENCES_81", align 4
|
|
%tmp106 = load %struct.NSObject** %color.466, align 4
|
|
%tmp107 = call float bitcast (void (%struct.NSObject*, ...)* @objc_msgSend_fpret to float (%struct.NSObject*, %struct.objc_selector*)*)( %struct.NSObject* %tmp106, %struct.objc_selector* %tmp105 ) nounwind
|
|
br label %exit
|
|
|
|
exit:
|
|
ret void
|
|
}
|
|
|
|
declare void @objc_msgSend_fpret(%struct.NSObject*, ...)
|