1 ; RUN: llc < %s -march=amdgcn -verify-machineinstrs | FileCheck --check-prefix=SI --check-prefix=FUNC %s
2 ; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck --check-prefix=EG --check-prefix=FUNC %s
4 ; Make sure the OpenCL Image lowering pass doesn't crash when argument metadata
5 ; is not in expected order.
9 define amdgpu_kernel void @kernel(i32 addrspace(1)* %out) {
11 store i32 0, i32 addrspace(1)* %out
15 attributes #3 = { nounwind }
17 !opencl.kernels = !{!0}
19 !0 = !{void (i32 addrspace(1)*)* @kernel, !1, !2, !3, !4, !5}
20 !1 = !{!"kernel_arg_addr_space", i32 0}
21 !2 = !{!"kernel_arg_access_qual", !"none"}
22 !3 = !{!"kernel_arg_type", !"int*"}
23 !4 = !{!"kernel_arg_type_qual", !""}
24 !5 = !{!"kernel_arg_name", !""}