brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.3 KiB · 6415545 Raw
68 lines · plain
1; RUN: llc < %s -mtriple=i386-apple-darwin52 3; rdar://77617904 5%"struct..0$_485" = type { i16, i16, i32 }6%union.PPToken = type { %"struct..0$_485" }7%struct.PPOperation = type { %union.PPToken, %union.PPToken, [6 x %union.PPToken], i32, i32, i32, [1 x i32], [0 x i8] }8 9define ptr @t() align 2 nounwind {10entry:11  %operation = alloca %struct.PPOperation, align 8 ; <ptr> [#uses=2]12  %0 = load ptr, ptr null, align 4  ; [#uses=1]13  %1 = ptrtoint ptr %0 to i32   ; <i32> [#uses=1]14  %2 = sub nsw i32 %1, undef                      ; <i32> [#uses=2]15  br i1 false, label %bb20, label %bb.nph38016 17bb20:                                             ; preds = %entry18  ret ptr null19 20bb.nph380:                                        ; preds = %entry21  %scevgep403 = getelementptr %struct.PPOperation, ptr %operation, i32 0, i32 1, i32 0, i32 2 ; <ptr> [#uses=1]22  %3 = ashr i32 %2, 1                             ; <i32> [#uses=1]23  %tmp405 = and i32 %3, -2                        ; <i32> [#uses=1]24  %scevgep408 = getelementptr %struct.PPOperation, ptr %operation, i32 0, i32 1, i32 0, i32 1 ; <ptr> [#uses=1]25  %tmp410 = and i32 %2, -4                        ; <i32> [#uses=1]26  br label %bb16927 28bb169:                                            ; preds = %bb169, %bb.nph38029  %index.6379 = phi i32 [ 0, %bb.nph380 ], [ %4, %bb169 ] ; <i32> [#uses=3]30  %tmp404 = mul i32 %index.6379, -2               ; <i32> [#uses=1]31  %tmp406 = add i32 %tmp405, %tmp404              ; <i32> [#uses=1]32  %scevgep407 = getelementptr i32, ptr %scevgep403, i32 %tmp406 ; <ptr> [#uses=1]33  %tmp409 = mul i32 %index.6379, -4               ; <i32> [#uses=1]34  %tmp411 = add i32 %tmp410, %tmp409              ; <i32> [#uses=1]35  %scevgep412 = getelementptr i16, ptr %scevgep408, i32 %tmp411 ; <ptr> [#uses=1]36  store i16 undef, ptr %scevgep412, align 237  store i32 undef, ptr %scevgep407, align 438  %4 = add nsw i32 %index.6379, 1                 ; <i32> [#uses=1]39  br label %bb16940}41 42; PR736843 44%struct.bufBit_s = type { ptr, i8 }45 46define fastcc void @printSwipe(ptr nocapture %colourLines) nounwind {47entry:48  br label %for.body19049  50for.body261.i:                                    ; preds = %for.body261.i, %for.body19051  %line.3300.i = phi i32 [ undef, %for.body190 ], [ %add292.i, %for.body261.i ] ; <i32> [#uses=3]52  %conv268.i = and i32 %line.3300.i, 255          ; <i32> [#uses=1]53  %tmp278.i = getelementptr [2 x [256 x %struct.bufBit_s]], ptr %colourLines, i32 undef, i32 %pen.1100, i32 %conv268.i, i32 0 ; <ptr> [#uses=1]54  store ptr undef, ptr %tmp278.i55  %tmp338 = shl i32 %line.3300.i, 3               ; <i32> [#uses=1]56  %tmp339 = and i32 %tmp338, 2040                 ; <i32> [#uses=1]57  %tmp285.i = getelementptr i8, ptr %scevgep328, i32 %tmp339 ; <ptr> [#uses=1]58  store i8 undef, ptr %tmp285.i59  %add292.i = add nsw i32 0, %line.3300.i         ; <i32> [#uses=1]60  br i1 undef, label %for.body190, label %for.body261.i61 62for.body190:                                      ; preds = %for.body261.i, %for.body190, %bb.nph10463  %pen.1100 = phi i32 [ 0, %entry ], [ %inc230, %for.body261.i ], [ %inc230, %for.body190 ] ; <i32> [#uses=3]64  %scevgep328 = getelementptr [2 x [256 x %struct.bufBit_s]], ptr %colourLines, i32 undef, i32 %pen.1100, i32 0, i32 1 ; <ptr> [#uses=1]65  %inc230 = add i32 %pen.1100, 1                  ; <i32> [#uses=2]66  br i1 undef, label %for.body190, label %for.body261.i67}68