mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 19:59:57 +00:00
8b8fb6b298
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269933 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
608 B
LLVM
20 lines
608 B
LLVM
; RUN: llc -march=hexagon < %s | FileCheck %s
|
|
|
|
; Check that constraints q and v are handled correctly.
|
|
; CHECK: q{{.}} = vgtw(v{{.}}.w,v{{.}}.w)
|
|
; CHECK: vand
|
|
; CHECK: vmem
|
|
|
|
target triple = "hexagon"
|
|
|
|
; Function Attrs: nounwind
|
|
define void @foo(<16 x i32> %v0, <16 x i32> %v1, <16 x i32>* nocapture %p) #0 {
|
|
entry:
|
|
%0 = tail call <16 x i32> asm "$0 = vgtw($1.w,$2.w)", "=q,v,v"(<16 x i32> %v0, <16 x i32> %v1) #1
|
|
store <16 x i32> %0, <16 x i32>* %p, align 64
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,-hvx-double" }
|
|
attributes #1 = { nounwind readnone }
|