blob: af2a55ea47d5c8cd791dd7cca8c68ef415eb4c8b [file] [log] [blame]
Krzysztof Parzyszek8f6b0c82017-12-20 14:44:05 +00001; RUN: llc -march=hexagon -debug-only=isel < %s 2>/dev/null
2; REQUIRES: asserts
3
4; Make sure that this doesn't crash. Debug option enabled a failing assertion
5; about type mismatch in formal arguments.
6; CHECK: vaddub
7
8define i1 @t_i4x8(<4 x i8> %a, <4 x i8> %b) nounwind {
9entry:
10 %0 = add <4 x i8> %a, %b
11 %1 = bitcast <4 x i8> %0 to <32 x i1>
12 %2 = extractelement <32 x i1> %1, i32 0
13 ret i1 %2
14}