[AMDGPU] Check for immediate SrcC in mfma in AsmParser
[llvm-core.git] / test / MC / AMDGPU / hsa-text.s
blobd4f67d033475d5860df6bedd9344c839ac9c0935
1 // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM
2 // RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -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