1; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=2 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
2
3; CHECK:      - Name:            test_ro_arg
4; CHECK-NEXT:   SymbolName:      'test_ro_arg@kd'
5; CHECK-NEXT:   Args:
6; CHECK-NEXT: - Name:            in
7; CHECK-NEXT:   TypeName:        'float*'
8; CHECK-NEXT:   Size:            8
9; CHECK-NEXT:   Align:           8
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*'
17; CHECK-NEXT:   Size:            8
18; CHECK-NEXT:   Align:           8
19; CHECK-NEXT:   ValueKind:       GlobalBuffer
20; CHECK-NEXT:   AddrSpaceQual:   Global
21; CHECK-NEXT:   AccQual:         Default
22
23define 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 {
26  ret void
27}
28
29!0 = !{i32 1, i32 1}
30!1 = !{!"none", !"none"}
31!2 = !{!"float*", !"float*"}
32!3 = !{!"const restrict", !""}
33