1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/CodeGen/Hexagon/vsplat-isel.ll
2016-05-12 17:21:40 +00:00

11 lines
239 B
LLVM

; 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
}