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