1 ; RUN: opt -S -march=z13 -tbaa -licm -enable-mssa-loop-dependency -licm-control-flow-hoisting -verify-memoryssa < %s | FileCheck %s
3 target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
4 target triple = "s390x-ibm-linux"
6 %0 = type { %1, %1, i16, %2 }
7 %1 = type <{ i16, i8, i32, i32, i32, i64, i64 }>
8 %2 = type { i8, i16, i16, [2 x i8] }
10 @0 = internal global %0 { %1 <{ i16 22437, i8 117, i32 2017322857, i32 900074563, i32 -1390364, i64 0, i64 0 }>, %1 <{ i16 0, i8 7, i32 -387299562, i32 925371866, i32 -1, i64 4826244575317081679, i64 1 }>, i16 8, %2 { i8 0, i16 0, i16 3, [2 x i8] undef } }, align 2
11 @g_18 = external dso_local global i64, align 8
13 ; Function Attrs: argmemonly nounwind
14 declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i1) #1
16 ; CHECK-LABEL: @func_94
18 ; CHECK: tail call void @llvm.memset.p0i8.i64
21 ; Function Attrs: noreturn nounwind
22 define dso_local void @func_94(i16 %arg, i64* nocapture %arg1) local_unnamed_addr #3 {
24 tail call void @llvm.memset.p0i8.i64(i8* align 8 undef, i8 0, i64 80, i1 false)
27 bb3: ; preds = %bb13, %bb
28 %tmp5 = icmp eq i16 %arg, 0
29 br i1 %tmp5, label %bb6, label %bb13
32 %tmp7 = load i32, i32* getelementptr inbounds (%0, %0* @0, i64 0, i32 1, i32 2), align 1, !tbaa !11
33 %tmp8 = zext i32 %tmp7 to i64
34 %sext = shl i64 %tmp8, 56
35 %tmp10 = ashr exact i64 %sext, 56
36 store i64 %tmp10, i64* %arg1, align 8, !tbaa !12
39 bb13: ; preds = %bb3, %bb6
43 attributes #0 = { "use-soft-float"="false" }
44 attributes #1 = { argmemonly nounwind }
45 attributes #2 = { norecurse nounwind readnone "use-soft-float"="false" }
46 attributes #3 = { noreturn nounwind "use-soft-float"="false" }
50 !0 = !{!"clang version 8.0.0 (http://llvm.org/git/clang.git e593a791f2cf19db84237b0b9d632e9966a00a39) (http://llvm.org/git/llvm.git fe0523d1bd7def3ef62cfb3dd37a8b1941aafa81)"}
51 !1 = !{!2, !8, i64 46}
52 !2 = !{!"S5", !3, i64 0, !3, i64 31, !4, i64 62, !9, i64 64}
53 !3 = !{!"S2", !4, i64 0, !5, i64 2, !7, i64 3, !7, i64 7, !7, i64 11, !8, i64 15, !8, i64 23}
54 !4 = !{!"short", !5, i64 0}
55 !5 = !{!"omnipotent char", !6, i64 0}
56 !6 = !{!"Simple C/C++ TBAA"}
57 !7 = !{!"int", !5, i64 0}
58 !8 = !{!"long", !5, i64 0}
59 !9 = !{!"S3", !7, i64 0, !4, i64 2, !4, i64 4}
60 !10 = !{!2, !7, i64 42}
61 !11 = !{!2, !7, i64 34}
62 !12 = !{!8, !8, i64 0}