blob: 75cde66e984e5a67881f7a748758ecd587bdbad4 [file] [log] [blame]
Krzysztof Parzyszek046090d2018-03-12 14:01:28 +00001; RUN: llc -march=hexagon < %s
2; REQUIRES: asserts
3; Used to fail with "Cannot select: 0x16cb2d0: v4i16 = zero_extend"
4
5target triple = "hexagon-unknown-linux-gnu"
6
7; Function Attrs: nounwind
8define void @f0() #0 {
9b0:
10 br i1 undef, label %b1, label %b3
11
12b1: ; preds = %b0
13 br label %b2
14
15b2: ; preds = %b2, %b1
16 %v0 = load <3 x i8>, <3 x i8>* undef, align 8
17 %v1 = zext <3 x i8> %v0 to <3 x i16>
18 store <3 x i16> %v1, <3 x i16>* undef, align 8
19 br label %b2
20
21b3: ; preds = %b0
22 ret void
23}
24
25attributes #0 = { nounwind }