Home | History | Annotate | Download | only in AMDGPU
      1 // RUN: llvm-mc -mattr=+code-object-v3 -triple amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj < %s > %t
      2 // RUN: llvm-objdump -s -j .rodata %t | FileCheck --check-prefix=OBJDUMP %s
      3 
      4 // big endian not supported
      5 // XFAIL: powerpc-, powerpc64-, s390x, mips-, mips64-, sparc
      6 
      7 // Check that SGPR init bug on gfx803 is corrected by the assembler, setting
      8 // GRANULATED_WAVEFRONT_SGPR_COUNT to 11.
      9 
     10 // OBJDUMP: Contents of section .rodata
     11 // OBJDUMP-NEXT: 0000 00000000 00000000 00000000 00000000
     12 // OBJDUMP-NEXT: 0010 00000000 00000000 00000000 00000000
     13 // OBJDUMP-NEXT: 0020 00000000 00000000 00000000 00000000
     14 // OBJDUMP-NEXT: 0030 c002ac00 80000000 00000000 00000000
     15 
     16 .text
     17 
     18 .amdgcn_target "amdgcn-amd-amdhsa--gfx802"
     19 
     20 .p2align 8
     21 minimal:
     22   s_endpgm
     23 
     24 .rodata
     25 
     26 .amdhsa_kernel minimal
     27   .amdhsa_next_free_vgpr 0
     28   .amdhsa_next_free_sgpr 0
     29 .end_amdhsa_kernel
     30