1 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s --check-prefix=R600-CHECK 2 ; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s --check-prefix=SI-CHECK 3 4 ; R600-CHECK: @v4i32_kernel_arg 5 ; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR:[0-9]]].X, KC0[3].Y 6 ; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].Y, KC0[3].Z 7 ; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].Z, KC0[3].W 8 ; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].W, KC0[4].X 9 ; SI-CHECK: @v4i32_kernel_arg 10 ; SI-CHECK: BUFFER_STORE_DWORDX4 11 define void @v4i32_kernel_arg(<4 x i32> addrspace(1)* %out, <4 x i32> %in) { 12 entry: 13 store <4 x i32> %in, <4 x i32> addrspace(1)* %out 14 ret void 15 } 16 17 ; R600-CHECK: @v4f32_kernel_arg 18 ; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR:[0-9]]].X, KC0[3].Y 19 ; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].Y, KC0[3].Z 20 ; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].Z, KC0[3].W 21 ; R600-CHECK-DAG: MOV {{[* ]*}}T[[GPR]].W, KC0[4].X 22 ; SI-CHECK: @v4f32_kernel_arg 23 ; SI-CHECK: BUFFER_STORE_DWORDX4 24 define void @v4f32_kernel_args(<4 x float> addrspace(1)* %out, <4 x float> %in) { 25 entry: 26 store <4 x float> %in, <4 x float> addrspace(1)* %out 27 ret void 28 } 29