brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 16b2755 Raw
46 lines · plain
1; RUN: llc < %s -mtriple=i386-apple-darwin -asm-verbose | grep "#" | not grep -v "##"2 3	%struct.AGenericCall = type { ptr, ptr, ptr }4	%struct.AGenericManager = type <{ i8 }>5	%struct.ComponentInstanceRecord = type opaque6	%struct.ComponentParameters = type { [1 x i64] }7 8define i32 @_ZN12AGenericCall10MapIDPtrAtEsRP23ComponentInstanceRecord(ptr %this, i16 signext  %param, ptr %instance) {9entry:10	%tmp4 = icmp slt i16 %param, 0		; <i1> [#uses=1]11	br i1 %tmp4, label %cond_true, label %cond_next12 13cond_true:		; preds = %entry14	%tmp1415 = shl i16 %param, 3		; <i16> [#uses=1]15	%tmp17 = getelementptr %struct.AGenericCall, ptr %this, i32 0, i32 1		; <ptr> [#uses=1]16	%tmp18 = load ptr, ptr %tmp17, align 8		; <ptr> [#uses=1]17	%tmp212223 = sext i16 %tmp1415 to i64		; <i64> [#uses=1]18	%tmp24 = getelementptr i8, ptr %tmp18, i64 %tmp212223		; <ptr> [#uses=1]19	%tmp28 = load i64, ptr %tmp24, align 8		; <i64> [#uses=1]20	%tmp2829 = inttoptr i64 %tmp28 to ptr		; <ptr> [#uses=1]21	%tmp31 = getelementptr %struct.AGenericCall, ptr %this, i32 0, i32 2		; <ptr> [#uses=1]22	store ptr %tmp2829, ptr %tmp31, align 823	br label %cond_next24 25cond_next:		; preds = %cond_true, %entry26	%tmp4243 = shl i16 %param, 3		; <i16> [#uses=1]27	%tmp46 = getelementptr %struct.AGenericCall, ptr %this, i32 0, i32 1		; <ptr> [#uses=1]28	%tmp47 = load ptr, ptr %tmp46, align 8		; <ptr> [#uses=1]29	%tmp505152 = sext i16 %tmp4243 to i64		; <i64> [#uses=1]30	%tmp53 = getelementptr i8, ptr %tmp47, i64 %tmp505152		; <ptr> [#uses=1]31	%tmp58 = load i64, ptr %tmp53, align 8		; <i64> [#uses=1]32	%tmp59 = icmp eq i64 %tmp58, 0		; <i1> [#uses=1]33	br i1 %tmp59, label %UnifiedReturnBlock, label %cond_true6334 35cond_true63:		; preds = %cond_next36	%tmp65 = getelementptr %struct.AGenericCall, ptr %this, i32 0, i32 0		; <ptr> [#uses=1]37	%tmp66 = load ptr, ptr %tmp65, align 8		; <ptr> [#uses=1]38	%tmp69 = tail call i32 @_ZN15AGenericManager24DefaultComponentInstanceERP23ComponentInstanceRecord( ptr %tmp66, ptr %instance )		; <i32> [#uses=1]39	ret i32 %tmp6940 41UnifiedReturnBlock:		; preds = %cond_next42	ret i32 undef43}44 45declare i32 @_ZN15AGenericManager24DefaultComponentInstanceERP23ComponentInstanceRecord(ptr, ptr)46