1 ; RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -verify-machineinstrs -systemz-subreg-liveness < %s | FileCheck %s
2 ; RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -verify-machineinstrs -systemz-subreg-liveness -early-live-intervals < %s | FileCheck %s
4 ; Check for successful compilation.
5 ; CHECK: lgfrl %r0, g_399
7 target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
8 target triple = "s390x-ibm-linux"
10 @g_439 = external dso_local global i32, align 4
11 @g_399 = external dso_local global { i8, i8, i8, i8, i8, i8 }, align 8
13 ; Function Attrs: nounwind
14 define void @main() #0 {
16 %tmp = load i48, ptr @g_399, align 8, !noalias !1
17 %tmp1 = ashr i48 %tmp, 17
18 %tmp2 = trunc i48 %tmp1 to i32
19 %tmp3 = sext i32 %tmp2 to i64
22 bb4: ; preds = %bb4, %bb
23 %tmp5 = load i64, ptr undef, align 8, !tbaa !4, !noalias !1
24 %tmp6 = urem i64 -923186811629238421, %tmp3
25 %tmp7 = or i64 %tmp6, %tmp5
26 %tmp8 = trunc i64 %tmp7 to i32
27 %tmp9 = lshr i32 %tmp8, 2
28 %tmp10 = and i32 %tmp9, 60
29 %tmp11 = xor i32 %tmp10, -1592309976
30 %tmp12 = or i32 0, %tmp11
31 %tmp13 = or i32 %tmp12, 3
32 store i32 %tmp13, ptr @g_439, align 4, !tbaa !8, !noalias !1
36 attributes #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"="z13" "target-features"="+transactional-execution,+vector" "unsafe-fp-math"="false" "use-soft-float"="false" }
40 !0 = !{!"clang version 8.0.0"}
42 !2 = distinct !{!2, !3, !"func_1: %agg.result"}
43 !3 = distinct !{!3, !"func_1"}
45 !5 = !{!"long", !6, i64 0}
46 !6 = !{!"omnipotent char", !7, i64 0}
47 !7 = !{!"Simple C/C++ TBAA"}
49 !9 = !{!"int", !6, i64 0}