1 ; RUN: opt < %s -instcombine -S | \
2 ; RUN: grep {call float bitcast} | count 1
3 %struct.NSObject = type { %struct.objc_class* }
4 %struct.NSArray = type { %struct.NSObject }
5 %struct.objc_class = type opaque
6 %struct.objc_selector = type opaque
8 @"\01L_OBJC_METH_VAR_NAME_112" = internal global [15 x i8] c"whiteComponent\00", section "__TEXT,__cstring,cstring_literals"
9 @"\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"
11 define void @bork() nounwind {
13 %color = alloca %struct.NSArray*
14 %color.466 = alloca %struct.NSObject*
15 %tmp103 = load %struct.NSArray** %color, align 4
16 %tmp103104 = getelementptr %struct.NSArray* %tmp103, i32 0, i32 0
17 store %struct.NSObject* %tmp103104, %struct.NSObject** %color.466, align 4
18 %tmp105 = load %struct.objc_selector** @"\01L_OBJC_SELECTOR_REFERENCES_81", align 4
19 %tmp106 = load %struct.NSObject** %color.466, align 4
20 %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
27 declare void @objc_msgSend_fpret(%struct.NSObject*, ...)