brintos

brintos / llvm-project-archived public Read only

0
0
Text · 389 B · 09ef4d2 Raw
19 lines · plain
1; RUN: llc < %s -mtriple=i686-- | FileCheck %s2 3@foo = global i8 1274 5define i32 @main() nounwind {6; CHECK-LABEL: main:7; CHECK-NOT: ret8; CHECK: sar{{.}} $59; CHECK: ret10 11   %tmp = load i8, ptr @foo12   %bf.lo = lshr i8 %tmp, 513   %bf.lo.cleared = and i8 %bf.lo, 714   %1 = shl i8 %bf.lo.cleared, 515   %bf.val.sext = ashr i8 %1, 516   %conv = sext i8 %bf.val.sext to i3217   ret i32 %conv18}19