brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 297ff09 Raw
42 lines · plain
1; RUN: llc < %s2; PR1011	3%struct.mng_data = type { ptr, i32, i32, i32, i8, i8, i32, i32, i32, i32, i32 }4 5define void @mng_display_bgr565() {6entry:7	br i1 false, label %bb.preheader, label %return8 9bb.preheader:		; preds = %entry10	br i1 false, label %cond_true48, label %cond_next8011 12cond_true48:		; preds = %bb.preheader13	%tmp = load i8, ptr null		; <i8> [#uses=1]14	%tmp51 = zext i8 %tmp to i16		; <i16> [#uses=1]15	%tmp99 = load i8, ptr null		; <i8> [#uses=1]16	%tmp54 = bitcast i8 %tmp99 to i8		; <i8> [#uses=1]17	%tmp54.upgrd.1 = zext i8 %tmp54 to i32		; <i32> [#uses=1]18	%tmp55 = lshr i32 %tmp54.upgrd.1, 3		; <i32> [#uses=1]19	%tmp55.upgrd.2 = trunc i32 %tmp55 to i16		; <i16> [#uses=1]20	%tmp52 = shl i16 %tmp51, 5		; <i16> [#uses=1]21	%tmp56 = and i16 %tmp55.upgrd.2, 28		; <i16> [#uses=1]22	%tmp57 = or i16 %tmp56, %tmp52		; <i16> [#uses=1]23	%tmp60 = zext i16 %tmp57 to i32		; <i32> [#uses=1]24	%tmp62 = xor i32 0, 65535		; <i32> [#uses=1]25	%tmp63 = mul i32 %tmp60, %tmp62		; <i32> [#uses=1]26	%tmp65 = add i32 0, %tmp63		; <i32> [#uses=1]27	%tmp69 = add i32 0, %tmp65		; <i32> [#uses=1]28	%tmp70 = lshr i32 %tmp69, 16		; <i32> [#uses=1]29	%tmp70.upgrd.3 = trunc i32 %tmp70 to i16		; <i16> [#uses=1]30	%tmp75 = lshr i16 %tmp70.upgrd.3, 8		; <i16> [#uses=1]31	%tmp75.upgrd.4 = trunc i16 %tmp75 to i8		; <i8> [#uses=1]32	%tmp76 = lshr i8 %tmp75.upgrd.4, 5		; <i8> [#uses=1]33	store i8 %tmp76, ptr null34	ret void35 36cond_next80:		; preds = %bb.preheader37	ret void38 39return:		; preds = %entry40	ret void41}42