Skip to content

Commit

Permalink
[MC] Clean up tests that depend on implicit .text in MCAsmStreamer
Browse files Browse the repository at this point in the history
AMDGPUTargetAsmStreamer::EmitDirectiveAMDGCNTarget called by
onBeginOfFile emits .amdgcn_target, which will not be before
.text when we change the .text parser to actually print .text .
The current .text is from initSections.
  • Loading branch information
MaskRay committed Dec 23, 2024
1 parent 8daba2c commit 688acb1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions llvm/test/MC/AMDGPU/hsa-exp.s
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
// ELF: Section: .text
// ELF: }

.text
// ASM: .text

.amdgcn_target "amdgcn-unknown-amdhsa--gfx700"
// ASM: .amdgcn_target "amdgcn-unknown-amdhsa--gfx700"

Expand Down
1 change: 0 additions & 1 deletion llvm/test/MC/AMDGPU/hsa-gfx12-v4.s
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
// OBJDUMP-NEXT: 00f0 00000c60 80000000 00040000 00000000

.text
// ASM: .text

.amdgcn_target "amdgcn-amd-amdhsa--gfx1200"
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx1200"
Expand Down
3 changes: 0 additions & 3 deletions llvm/test/MC/AMDGPU/hsa-tg-split.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
// OBJDUMP-NEXT: 0020 00000000 00000000 00000000 00000100
// OBJDUMP-NEXT: 0030 0000ac00 80000000 00000000 00000000

.text
// ASM: .text

.amdgcn_target "amdgcn-amd-amdhsa--gfx90a:xnack+"
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx90a:xnack+"

Expand Down
3 changes: 0 additions & 3 deletions llvm/test/MC/AMDGPU/hsa-v4.s
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
// OBJDUMP-NEXT: 00e0 00000000 00000000 00000000 00000000
// OBJDUMP-NEXT: 00f0 0000ac00 80000000 00000000 00000000

.text
// ASM: .text

.amdgcn_target "amdgcn-amd-amdhsa--gfx904:xnack+"
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx904:xnack+"

Expand Down
3 changes: 0 additions & 3 deletions llvm/test/MC/AMDGPU/hsa-v5-uses-dynamic-stack.s
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
// OBJDUMP-NEXT: 00e0 00000000 00000000 00000000 00000000
// OBJDUMP-NEXT: 00f0 0000ac00 80000000 00000000 00000000

.text
// ASM: .text

.amdgcn_target "amdgcn-amd-amdhsa--gfx904:xnack+"
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx904:xnack+"

Expand Down
3 changes: 0 additions & 3 deletions llvm/test/MC/AMDGPU/user-sgpr-count.s
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx90a --amdhsa-code-object-version=4 -mattr=+xnack < %s | FileCheck --check-prefix=ASM %s

.text
// ASM: .text

.amdgcn_target "amdgcn-amd-amdhsa--gfx90a:xnack+"
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx90a:xnack+"

Expand Down

0 comments on commit 688acb1

Please sign in to comment.