1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/CodeGen/Hexagon/vect/vect-extract-i1.ll
Ron Lieberman 824af7939a [Hexagon] Patch to Extract i1 element from vector of i1
This patch extracts 1 element from vector consisting
of elements of size 1 bit at given index.

llvm-svn: 314641
2017-10-02 00:16:15 +00:00

10 lines
227 B
LLVM

; RUN: llc -march=hexagon < %s
define i1 @t_i4x8(<4 x i8> %a, <4 x i8> %b) nounwind {
entry:
%0 = add <4 x i8> %a, %b
%1 = bitcast <4 x i8> %0 to <32 x i1>
%2 = extractelement <32 x i1> %1, i32 0
ret i1 %2
}