xref: /llvm-project/llvm/test/CodeGen/SystemZ/list-ilp-crash.ll (revision 11d251c05cc498194945cac07ab5d17770e298bf)
1; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 -pre-RA-sched=list-ilp | FileCheck %s
2;
3; Check that list-ilp scheduler does not crash due to SystemZ's current use
4; of MVT::Untyped.
5
6define void @pr32723(i8) {
7; CHECK: .text
8BB:
9  br label %CF245
10
11CF245:                                            ; preds = %CF245, %BB
12  %Shuff57 = shufflevector <4 x i8> zeroinitializer, <4 x i8> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
13  %Cmp84 = icmp uge i8 %0, undef
14  br i1 %Cmp84, label %CF245, label %CF260
15
16CF260:                                            ; preds = %CF245
17  %B156 = sdiv <4 x i8> %Shuff57, %Shuff57
18  br label %CF255
19
20CF255:                                            ; preds = %CF255, %CF260
21  %I186 = insertelement <4 x i8> %B156, i8 %0, i32 2
22  br label %CF255
23}
24