1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=2 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
3 ; CHECK: - Name: test_ro_arg
4 ; CHECK-NEXT: SymbolName: 'test_ro_arg@kd'
6 ; CHECK-NEXT: - Name: in
7 ; CHECK-NEXT: TypeName: 'float*'
10 ; CHECK-NEXT: ValueKind: GlobalBuffer
11 ; CHECK-NEXT: AddrSpaceQual: Global
12 ; CHECK-NEXT: AccQual: ReadOnly
13 ; CHECK-NEXT: IsConst: true
14 ; CHECK-NEXT: IsRestrict: true
15 ; CHECK-NEXT: - Name: out
16 ; CHECK-NEXT: TypeName: 'float*'
18 ; CHECK-NEXT: Align: 8
19 ; CHECK-NEXT: ValueKind: GlobalBuffer
20 ; CHECK-NEXT: AddrSpaceQual: Global
21 ; CHECK-NEXT: AccQual: Default
23 define amdgpu_kernel void @test_ro_arg(float addrspace(1)* noalias readonly %in, float addrspace(1)* %out)
24 !kernel_arg_addr_space !0 !kernel_arg_access_qual !1 !kernel_arg_type !2
25 !kernel_arg_base_type !2 !kernel_arg_type_qual !3 {
30 !1 = !{!"none", !"none"}
31 !2 = !{!"float*", !"float*"}
32 !3 = !{!"const restrict", !""}