[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / hsa-metadata-kernel-debug-props.s
blobc5d8da79f3e23f5eaf05ea100606d079284a1bc6
1 // RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx700 --amdhsa-code-object-version=2 -show-encoding %s | FileCheck --check-prefix=CHECK %s
2 // RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 --amdhsa-code-object-version=2 -show-encoding %s | FileCheck --check-prefix=CHECK %s
3 // RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 --amdhsa-code-object-version=2 -show-encoding %s | FileCheck --check-prefix=CHECK %s
5 // CHECK: .amd_amdgpu_hsa_metadata
6 // CHECK: Version: [ 1, 0 ]
7 // CHECK: Kernels:
8 // CHECK: - Name: test_kernel
9 // CHECK: SymbolName: 'test_kernel@kd'
10 // CHECK: DebugProps:
11 // CHECK: DebuggerABIVersion: [ 1, 0 ]
12 // CHECK: ReservedNumVGPRs: 4
13 // CHECK: ReservedFirstVGPR: 11
14 // CHECK: PrivateSegmentBufferSGPR: 0
15 // CHECK: WavefrontPrivateSegmentOffsetSGPR: 11
16 .amd_amdgpu_hsa_metadata
17 Version: [ 1, 0 ]
18 Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ]
19 Kernels:
20 - Name: test_kernel
21 SymbolName: test_kernel@kd
22 DebugProps:
23 DebuggerABIVersion: [ 1, 0 ]
24 ReservedNumVGPRs: 4
25 ReservedFirstVGPR: 11
26 PrivateSegmentBufferSGPR: 0
27 WavefrontPrivateSegmentOffsetSGPR: 11
28 .end_amd_amdgpu_hsa_metadata