• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -filetype=obj -march=amdgcn -mcpu=gfx801 -mattr=-xnack < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=NO-XNACK-GFX801 %s
2; RUN: llc -filetype=obj -march=amdgcn -mcpu=gfx802 -mattr=+xnack < %s | llvm-readobj --file-headers - | FileCheck --check-prefixes=XNACK-GFX802 %s
3
4; NO-XNACK-GFX801:      Flags [
5; NO-XNACK-GFX801-NEXT:   EF_AMDGPU_MACH_AMDGCN_GFX801 (0x28)
6; NO-XNACK-GFX801-NEXT: ]
7
8; XNACK-GFX802:      Flags [
9; XNACK-GFX802-NEXT:   EF_AMDGPU_MACH_AMDGCN_GFX802 (0x29)
10; XNACK-GFX802-NEXT:   EF_AMDGPU_XNACK              (0x100)
11; XNACK-GFX802-NEXT: ]
12
13define amdgpu_kernel void @elf_header() {
14  ret void
15}
16