blob: 63c1c6363189ffaf1e468c70036e15e03fa45c62 [file] [log] [blame]
Jonas Paulssoncad72ef2017-04-07 12:35:11 +00001; RUN: llc -mtriple=s390x-linux-gnu -mcpu=zEC12 < %s | FileCheck %s
2;
3; Check that DAGCombiner doesn't crash in SystemZ combineTruncateExtract()
4; when handling EXTRACT_VECTOR_ELT without vector support.
5
6define void @autogen_SD21598(<2 x i8> %Arg) {
7; CHECK: stc %r3, 0(%r1)
8; CHECK: j .LBB0_1
9
10entry:
11 br label %loop
12
13loop: ; preds = %CF249, %CF247
14 %Shuff = shufflevector <2 x i8> undef, <2 x i8> %Arg, <2 x i32> <i32 3, i32 1>
15 %E = extractelement <2 x i8> %Shuff, i32 0
16 store i8 %E, i8* undef
17 br label %loop
18}