[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / hsa-text.s
blob8f0b56b963e806fe89b2c4700223c72294e44f32
1 // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri --amdhsa-code-object-version=2 -show-encoding %s | FileCheck %s --check-prefix=ASM
2 // RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri --amdhsa-code-object-version=2 -show-encoding %s | llvm-readobj -S --sd - | FileCheck %s --check-prefix=ELF
4 // For compatibility reasons we treat convert .text sections to .hsatext
6 // ELF: Section {
8 // ELF: Name: .text
9 // ELF: Type: SHT_PROGBITS (0x1)
10 // ELF: Flags [ (0x6)
11 // ELF: SHF_ALLOC (0x2)
12 // ELF: SHF_EXECINSTR (0x4)
13 // ELF: Size: 260
14 // ELF: }
16 .text
17 // ASM: .text
19 .hsa_code_object_version 1,0
20 // ASM: .hsa_code_object_version 1,0
22 .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
23 // ASM: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
25 .amd_kernel_code_t
26 .end_amd_kernel_code_t
28 s_endpgm