1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX700 --check-prefix=NOTES %s
2 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX802 --check-prefix=NOTES %s
3 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=CHECK --check-prefix=GFX900 --check-prefix=NOTES %s
5 %opencl.image1d_t = type opaque
6 %opencl.image1d_array_t = type opaque
7 %opencl.image1d_buffer_t = type opaque
8 %opencl.image2d_t = type opaque
9 %opencl.image2d_array_t = type opaque
10 %opencl.image2d_array_depth_t = type opaque
11 %opencl.image2d_array_msaa_t = type opaque
12 %opencl.image2d_array_msaa_depth_t = type opaque
13 %opencl.image2d_depth_t = type opaque
14 %opencl.image2d_msaa_t = type opaque
15 %opencl.image2d_msaa_depth_t = type opaque
16 %opencl.image3d_t = type opaque
19 ; CHECK: Version: [ 1, 0 ]
23 ; CHECK: SymbolName: 'test@kd'
26 ; CHECK: TypeName: image1d_t
28 ; CHECK: ValueKind: Image
30 ; CHECK: TypeName: image1d_array_t
32 ; CHECK: ValueKind: Image
34 ; CHECK: TypeName: image1d_buffer_t
36 ; CHECK: ValueKind: Image
38 ; CHECK: TypeName: image2d_t
40 ; CHECK: ValueKind: Image
42 ; CHECK: TypeName: image2d_array_t
44 ; CHECK: ValueKind: Image
46 ; CHECK: TypeName: image2d_array_depth_t
48 ; CHECK: ValueKind: Image
50 ; CHECK: TypeName: image2d_array_msaa_t
52 ; CHECK: ValueKind: Image
54 ; CHECK: TypeName: image2d_array_msaa_depth_t
56 ; CHECK: ValueKind: Image
58 ; CHECK: TypeName: image2d_depth_t
60 ; CHECK: ValueKind: Image
62 ; CHECK: TypeName: image2d_msaa_t
64 ; CHECK: ValueKind: Image
66 ; CHECK: TypeName: image2d_msaa_depth_t
68 ; CHECK: ValueKind: Image
70 ; CHECK: TypeName: image3d_t
72 ; CHECK: ValueKind: Image
73 define amdgpu_kernel void @test(%opencl.image1d_t addrspace(1)* %a,
74 %opencl.image1d_array_t addrspace(1)* %b,
75 %opencl.image1d_buffer_t addrspace(1)* %c,
76 %opencl.image2d_t addrspace(1)* %d,
77 %opencl.image2d_array_t addrspace(1)* %e,
78 %opencl.image2d_array_depth_t addrspace(1)* %f,
79 %opencl.image2d_array_msaa_t addrspace(1)* %g,
80 %opencl.image2d_array_msaa_depth_t addrspace(1)* %h,
81 %opencl.image2d_depth_t addrspace(1)* %i,
82 %opencl.image2d_msaa_t addrspace(1)* %j,
83 %opencl.image2d_msaa_depth_t addrspace(1)* %k,
84 %opencl.image3d_t addrspace(1)* %l)
85 !kernel_arg_type !1 !kernel_arg_base_type !1 {
89 !1 = !{!"image1d_t", !"image1d_array_t", !"image1d_buffer_t",
90 !"image2d_t", !"image2d_array_t", !"image2d_array_depth_t",
91 !"image2d_array_msaa_t", !"image2d_array_msaa_depth_t",
92 !"image2d_depth_t", !"image2d_msaa_t", !"image2d_msaa_depth_t",