1 ; RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -misched-cutoff=1 -o /dev/null < %s
3 ; -misched=shuffle isn't available in NDEBUG builds!
5 ; Test that the post-ra scheduler does not crash with -misched-cutoff.
7 @g_184 = external dso_local global i16, align 2
8 @g_294 = external dso_local global [1 x [9 x ptr]], align 8
14 bb1: ; preds = %bb1, %bb
15 %i = phi i64 [ 0, %bb ], [ %i22, %bb1 ]
16 %i2 = trunc i64 %i to i32
18 %i4 = select i1 false, i32 %i3, i32 undef
20 %i6 = xor i32 %i5, -306674912
21 %i7 = select i1 undef, i32 %i5, i32 %i6
23 %i9 = xor i32 %i8, -306674912
24 %i10 = select i1 undef, i32 %i8, i32 %i9
25 %i11 = lshr i32 %i10, 1
26 %i12 = xor i32 %i11, -306674912
27 %i13 = select i1 undef, i32 %i11, i32 %i12
28 %i14 = lshr i32 %i13, 1
29 %i15 = select i1 false, i32 %i14, i32 undef
30 %i16 = lshr i32 %i15, 1
31 %i17 = select i1 false, i32 %i16, i32 undef
32 %i18 = lshr i32 %i17, 1
33 %i19 = select i1 false, i32 %i18, i32 undef
34 %i20 = lshr i32 %i19, 1
35 %i21 = select i1 false, i32 %i20, i32 undef
36 store i32 %i21, ptr undef, align 4
37 %i22 = add nuw nsw i64 %i, 1
38 %i23 = icmp ult i64 %i, 255
39 br i1 %i23, label %bb1, label %bb24
42 %i25 = load volatile i16, ptr undef
43 store ptr null, ptr undef, align 8
44 store i32 -10, ptr undef, align 4
45 store i32 -10, ptr null, align 4
46 store i32 -10, ptr undef, align 4
47 store i16 0, ptr @g_184, align 2
48 store ptr null, ptr getelementptr inbounds ([1 x [9 x ptr]], ptr @g_294, i64 0, i64 0, i64 2), align 8
49 store ptr null, ptr getelementptr inbounds ([1 x [9 x ptr]], ptr @g_294, i64 0, i64 0, i64 5), align 8