2013-06-25 10:39:25 +08:00
|
|
|
; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s --check-prefix=R600-CHECK
|
2013-10-11 01:11:46 +08:00
|
|
|
; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s --check-prefix=SI-CHECK
|
2013-02-14 06:05:20 +08:00
|
|
|
|
2013-06-25 10:39:25 +08:00
|
|
|
; R600-CHECK: @v4i32_kernel_arg
|
2013-07-23 09:48:18 +08:00
|
|
|
; 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
|
2013-06-25 10:39:25 +08:00
|
|
|
; SI-CHECK: @v4i32_kernel_arg
|
|
|
|
; SI-CHECK: BUFFER_STORE_DWORDX4
|
2013-02-14 06:05:20 +08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2013-06-25 10:39:25 +08:00
|
|
|
; R600-CHECK: @v4f32_kernel_arg
|
2013-07-23 09:48:18 +08:00
|
|
|
; 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
|
2013-06-25 10:39:25 +08:00
|
|
|
; SI-CHECK: @v4f32_kernel_arg
|
|
|
|
; SI-CHECK: BUFFER_STORE_DWORDX4
|
2013-02-14 06:05:20 +08:00
|
|
|
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
|
|
|
|
}
|