1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 -O3 | FileCheck %s
4 target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
6 @g_150 = external dso_local unnamed_addr global [9 x i32], align 4
7 @g_317 = external dso_local unnamed_addr global [1 x [10 x [8 x i32]]], align 4
9 define dso_local void @main() local_unnamed_addr {
11 ; CHECK: # %bb.0: # %bb
12 ; CHECK-NEXT: lhi %r0, 0
13 ; CHECK-NEXT: strl %r0, g_317+296
14 ; CHECK-NEXT: lhi %r0, 6
15 ; CHECK-NEXT: strl %r0, g_150+12
19 bb1: ; preds = %bb1, %bb
20 br i1 undef, label %bb2, label %bb1
23 store i32 0, ptr getelementptr inbounds ([1 x [10 x [8 x i32]]], ptr @g_317, i64 0, i64 0, i64 9, i64 2), align 4
24 %i = load i32, ptr getelementptr inbounds ([1 x [10 x [8 x i32]]], ptr @g_317, i64 0, i64 0, i64 9, i64 2), align 4
25 %i3 = insertelement <8 x i32> undef, i32 %i, i32 0
26 %i4 = shufflevector <8 x i32> %i3, <8 x i32> undef, <8 x i32> zeroinitializer
27 %i5 = add nsw <8 x i8> zeroinitializer, <i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6>
28 %i6 = zext <8 x i8> %i5 to <8 x i32>
29 %i7 = icmp slt <8 x i32> undef, %i6
30 %i8 = or <8 x i1> zeroinitializer, %i7
31 %i9 = select <8 x i1> %i8, <8 x i32> zeroinitializer, <8 x i32> %i4
32 %i10 = shl <8 x i32> %i6, %i9
33 %i11 = xor <8 x i32> %i10, zeroinitializer
34 %i12 = xor <8 x i32> %i11, zeroinitializer
35 %i13 = xor <8 x i32> %i12, zeroinitializer
36 %i14 = extractelement <8 x i32> %i13, i32 0
37 %i15 = xor i32 %i14, 0
38 %i16 = xor i32 %i15, 0
39 %i17 = shl i32 %i16, 24
40 %i18 = ashr exact i32 %i17, 24
41 store i32 %i18, ptr getelementptr inbounds ([9 x i32], ptr @g_150, i64 0, i64 3), align 4
45 attributes #0 = { "use-soft-float"="false" }