diff options
| author | Ron Lieberman <ronl@codeaurora.org> | 2017-10-02 00:16:15 +0000 |
|---|---|---|
| committer | Ron Lieberman <ronl@codeaurora.org> | 2017-10-02 00:16:15 +0000 |
| commit | f90493d220acae49407a6142c9ddd6841c11fc2b (patch) | |
| tree | 0038b8a7e2ee0b989ad403a4c6b7e9b5904456c5 /llvm/test/CodeGen/Hexagon | |
| parent | 6e025a3ecc92c818bc7efd8db2d8a960adb0322e (diff) | |
| download | bcm5719-llvm-f90493d220acae49407a6142c9ddd6841c11fc2b.tar.gz bcm5719-llvm-f90493d220acae49407a6142c9ddd6841c11fc2b.zip | |
[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
Diffstat (limited to 'llvm/test/CodeGen/Hexagon')
| -rw-r--r-- | llvm/test/CodeGen/Hexagon/vect/vect-extract-i1.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/vect/vect-extract-i1.ll b/llvm/test/CodeGen/Hexagon/vect/vect-extract-i1.ll new file mode 100644 index 00000000000..8bcf1768b88 --- /dev/null +++ b/llvm/test/CodeGen/Hexagon/vect/vect-extract-i1.ll @@ -0,0 +1,9 @@ +; 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 +} |

