49 lines · plain
1; RUN: llc -mtriple=s390x-linux-gnu -mcpu=z10 -verify-machineinstrs -systemz-subreg-liveness < %s | FileCheck %s2 3; Check for successful compilation.4; CHECK: lgfrl %r1, g_655 6target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-a:8:16-n32:64"7target triple = "s390x-ibm-linux"8 9@g_65 = external dso_local global i32, align 410 11; Function Attrs: nounwind12define void @main(i1 %x) #0 {13bb:14 br label %bb115 16bb1: ; preds = %bb17 %tmp = load i32, ptr @g_65, align 418 %tmp2 = sext i32 %tmp to i6419 %tmp3 = shl i32 %tmp, 1620 %tmp4 = ashr exact i32 %tmp3, 1621 %tmp5 = shl i32 %tmp4, 022 %tmp6 = zext i32 %tmp5 to i6423 %tmp7 = shl i64 %tmp6, 4824 %tmp8 = ashr exact i64 %tmp7, 4825 br i1 undef, label %bb12, label %bb926 27bb9: ; preds = %bb128 %tmp10 = select i1 %x, i64 0, i64 %tmp229 %tmp11 = add nsw i64 %tmp10, %tmp830 br label %bb1231 32bb12: ; preds = %bb9, %bb133 %tmp13 = phi i64 [ %tmp11, %bb9 ], [ %tmp8, %bb1 ]34 %tmp14 = trunc i64 %tmp13 to i3235 %tmp15 = and i32 %tmp14, 25536 %tmp16 = shl i32 %tmp15, 037 %tmp17 = trunc i32 %tmp16 to i838 %tmp18 = icmp eq i8 %tmp17, 039 br i1 %tmp18, label %bb20, label %bb1940 41bb19: ; preds = %bb1242 unreachable43 44bb20: ; preds = %bb1245 unreachable46}47 48attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="z10" "unsafe-fp-math"="false" "use-soft-float"="false" }49