1; RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -verify-machineinstrs -systemz-subreg-liveness < %s | FileCheck %s
2
3; Check for successful compilation.
4; CHECK: lgfrl %r0, g_399
5
6target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
7target triple = "s390x-ibm-linux"
8
9@g_439 = external dso_local global i32, align 4
10@g_399 = external dso_local global { i8, i8, i8, i8, i8, i8 }, align 8
11
12; Function Attrs: nounwind
13define void @main() #0 {
14bb:
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
19  br label %bb4
20
21bb4:                                              ; 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
32  br label %bb4
33}
34
35attributes #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" }
36
37!llvm.ident = !{!0}
38
39!0 = !{!"clang version 8.0.0"}
40!1 = !{!2}
41!2 = distinct !{!2, !3, !"func_1: %agg.result"}
42!3 = distinct !{!3, !"func_1"}
43!4 = !{!5, !5, i64 0}
44!5 = !{!"long", !6, i64 0}
45!6 = !{!"omnipotent char", !7, i64 0}
46!7 = !{!"Simple C/C++ TBAA"}
47!8 = !{!9, !9, i64 0}
48!9 = !{!"int", !6, i64 0}
49