diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-05-12 17:21:40 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-05-12 17:21:40 +0000 |
commit | e60e5fee0a16e1792f336bf4ae97d2f5ec7abb4a (patch) | |
tree | df39661ffc6108ea4aaf4d6b5b699cba04d4f305 /llvm/test/CodeGen/Hexagon | |
parent | 7a947b6c6d4e4502aab21f51fa2be7144bcb757f (diff) | |
download | bcm5719-llvm-e60e5fee0a16e1792f336bf4ae97d2f5ec7abb4a.tar.gz bcm5719-llvm-e60e5fee0a16e1792f336bf4ae97d2f5ec7abb4a.zip |
[Hexagon] Properly handle instruction selection of vsplat intrinsics
llvm-svn: 269312
Diffstat (limited to 'llvm/test/CodeGen/Hexagon')
-rw-r--r-- | llvm/test/CodeGen/Hexagon/vsplat-isel.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/vsplat-isel.ll b/llvm/test/CodeGen/Hexagon/vsplat-isel.ll new file mode 100644 index 00000000000..9c5e3e17c4e --- /dev/null +++ b/llvm/test/CodeGen/Hexagon/vsplat-isel.ll @@ -0,0 +1,10 @@ +; RUN: llc -march=hexagon -O0 < %s | FileCheck %s +; CHECK: vsplatb + +declare i32 @llvm.hexagon.S2.vsplatrb(i32) #0 + +define i32 @foo(i8 %x) { + %p0 = zext i8 %x to i32 + %p1 = tail call i32 @llvm.hexagon.S2.vsplatrb(i32 %p0) + ret i32 %p1 +} |