mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
a7eea0568c
Reviewed-by: Vincent Lejeune <vljn at ovi.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186918 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
1.1 KiB
LLVM
29 lines
1.1 KiB
LLVM
; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s --check-prefix=R600-CHECK
|
|
; RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s --check-prefix=SI-CHECK
|
|
|
|
; R600-CHECK: @v4i32_kernel_arg
|
|
; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR:[0-9]]].X, KC0[3].Y
|
|
; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].Y, KC0[3].Z
|
|
; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].Z, KC0[3].W
|
|
; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].W, KC0[4].X
|
|
; SI-CHECK: @v4i32_kernel_arg
|
|
; SI-CHECK: BUFFER_STORE_DWORDX4
|
|
define void @v4i32_kernel_arg(<4 x i32> addrspace(1)* %out, <4 x i32> %in) {
|
|
entry:
|
|
store <4 x i32> %in, <4 x i32> addrspace(1)* %out
|
|
ret void
|
|
}
|
|
|
|
; R600-CHECK: @v4f32_kernel_arg
|
|
; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR:[0-9]]].X, KC0[3].Y
|
|
; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].Y, KC0[3].Z
|
|
; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].Z, KC0[3].W
|
|
; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].W, KC0[4].X
|
|
; SI-CHECK: @v4f32_kernel_arg
|
|
; SI-CHECK: BUFFER_STORE_DWORDX4
|
|
define void @v4f32_kernel_args(<4 x float> addrspace(1)* %out, <4 x float> %in) {
|
|
entry:
|
|
store <4 x float> %in, <4 x float> addrspace(1)* %out
|
|
ret void
|
|
}
|