mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-25 04:35:32 -04:00
9c350c822f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269312 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
239 B
LLVM
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
|
|
}
|