252
|
1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 < %s | FileCheck --check-prefixes=ASM %s
|
|
2 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 --filetype=obj < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=ELF %s
|
221
|
3
|
|
4 ; ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx700"
|
|
5 ; ASM: amdhsa.target: amdgcn-amd-amdhsa--gfx700
|
|
6 ; ASM: amdhsa.version:
|
|
7 ; ASM: - 1
|
|
8 ; ASM: - 1
|
|
9
|
|
10 ; ELF: OS/ABI: AMDGPU_HSA (0x40)
|
|
11 ; ELF: ABIVersion: 2
|
|
12 ; ELF: Flags [ (0x22)
|
|
13 ; ELF-NEXT: EF_AMDGPU_MACH_AMDGCN_GFX700 (0x22)
|
|
14 ; ELF-NEXT: ]
|
|
15
|
|
16 define void @func0() {
|
|
17 entry:
|
|
18 ret void
|
|
19 }
|
|
20
|
|
21 define void @func1() {
|
|
22 entry:
|
|
23 ret void
|
|
24 }
|
|
25
|
|
26 define void @func2() {
|
|
27 entry:
|
|
28 ret void
|
|
29 }
|
252
|
30
|
|
31 !llvm.module.flags = !{!0}
|
|
32 !0 = !{i32 1, !"amdgpu_code_object_version", i32 400}
|