Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AMDGPU / hsa-sgpr-init-bug-v3.s
blob2c83329df03543d7887428f07e445c8a916c148d
1 // RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj < %s > %t
2 // RUN: llvm-objdump -s -j .rodata %t | FileCheck --check-prefix=OBJDUMP %s
4 // Check that SGPR init bug on gfx803 is corrected by the assembler, setting
5 // GRANULATED_WAVEFRONT_SGPR_COUNT to 11.
7 // OBJDUMP: Contents of section .rodata
8 // OBJDUMP-NEXT: 0000 00000000 00000000 00000000 00000000
9 // OBJDUMP-NEXT: 0010 00000000 00000000 00000000 00000000
10 // OBJDUMP-NEXT: 0020 00000000 00000000 00000000 00000000
11 // OBJDUMP-NEXT: 0030 c002ac00 80000000 00000000 00000000
13 .text
15 .amdgcn_target "amdgcn-amd-amdhsa--gfx802"
17 .p2align 8
18 minimal:
19 s_endpgm
21 .rodata
23 .amdhsa_kernel minimal
24 .amdhsa_next_free_vgpr 0
25 .amdhsa_next_free_sgpr 0
26 .end_amdhsa_kernel