diff options
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/vsplat-isel.ll')
-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 +} |