1 ; RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -verify-machineinstrs -systemz-subreg-liveness < %s | FileCheck %s
3 ; Check for successful compilation.
4 ; CHECK: lgfrl %r0, g_399
6 target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
7 target triple = "s390x-ibm-linux"
9 @g_439 = external global i32, align 4
10 @g_399 = external global { i8, i8, i8, i8, i8, i8 }, align 8
12 ; Function Attrs: nounwind
13 define void @main() #0 {
15 %tmp = load i48, i48* bitcast ({ i8, i8, i8, i8, i8, i8 }* @g_399 to i48*), align 8, !noalias !1
16 %tmp1 = ashr i48 %tmp, 17
17 %tmp2 = trunc i48 %tmp1 to i32
18 %tmp3 = sext i32 %tmp2 to i64
21 bb4: ; preds = %bb4, %bb
22 %tmp5 = load i64, i64* undef, align 8, !tbaa !4, !noalias !1
23 %tmp6 = urem i64 -923186811629238421, %tmp3
24 %tmp7 = or i64 %tmp6, %tmp5
25 %tmp8 = trunc i64 %tmp7 to i32
26 %tmp9 = lshr i32 %tmp8, 2
27 %tmp10 = and i32 %tmp9, 60
28 %tmp11 = xor i32 %tmp10, -1592309976
29 %tmp12 = or i32 0, %tmp11
30 %tmp13 = or i32 %tmp12, 3
31 store i32 %tmp13, i32* @g_439, align 4, !tbaa !8, !noalias !1
35 attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "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" }
39 !0 = !{!"clang version 8.0.0"}
41 !2 = distinct !{!2, !3, !"func_1: %agg.result"}
42 !3 = distinct !{!3, !"func_1"}
44 !5 = !{!"long", !6, i64 0}
45 !6 = !{!"omnipotent char", !7, i64 0}
46 !7 = !{!"Simple C/C++ TBAA"}
48 !9 = !{!"int", !6, i64 0}