Skip to content

Commit 688acb1

Browse files
committed
[MC] Clean up tests that depend on implicit .text in MCAsmStreamer
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.
1 parent 8daba2c commit 688acb1

File tree

6 files changed

+0
-16
lines changed

6 files changed

+0
-16
lines changed

llvm/test/MC/AMDGPU/hsa-exp.s

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
// ELF: Section: .text
1414
// ELF: }
1515

16-
.text
17-
// ASM: .text
18-
1916
.amdgcn_target "amdgcn-unknown-amdhsa--gfx700"
2017
// ASM: .amdgcn_target "amdgcn-unknown-amdhsa--gfx700"
2118

llvm/test/MC/AMDGPU/hsa-gfx12-v4.s

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
// OBJDUMP-NEXT: 00f0 00000c60 80000000 00040000 00000000
4848

4949
.text
50-
// ASM: .text
5150

5251
.amdgcn_target "amdgcn-amd-amdhsa--gfx1200"
5352
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx1200"

llvm/test/MC/AMDGPU/hsa-tg-split.s

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// OBJDUMP-NEXT: 0020 00000000 00000000 00000000 00000100
99
// OBJDUMP-NEXT: 0030 0000ac00 80000000 00000000 00000000
1010

11-
.text
12-
// ASM: .text
13-
1411
.amdgcn_target "amdgcn-amd-amdhsa--gfx90a:xnack+"
1512
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx90a:xnack+"
1613

llvm/test/MC/AMDGPU/hsa-v4.s

-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
// OBJDUMP-NEXT: 00e0 00000000 00000000 00000000 00000000
4747
// OBJDUMP-NEXT: 00f0 0000ac00 80000000 00000000 00000000
4848

49-
.text
50-
// ASM: .text
51-
5249
.amdgcn_target "amdgcn-amd-amdhsa--gfx904:xnack+"
5350
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx904:xnack+"
5451

llvm/test/MC/AMDGPU/hsa-v5-uses-dynamic-stack.s

-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@
5151
// OBJDUMP-NEXT: 00e0 00000000 00000000 00000000 00000000
5252
// OBJDUMP-NEXT: 00f0 0000ac00 80000000 00000000 00000000
5353

54-
.text
55-
// ASM: .text
56-
5754
.amdgcn_target "amdgcn-amd-amdhsa--gfx904:xnack+"
5855
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx904:xnack+"
5956

llvm/test/MC/AMDGPU/user-sgpr-count.s

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx90a --amdhsa-code-object-version=4 -mattr=+xnack < %s | FileCheck --check-prefix=ASM %s
22

3-
.text
4-
// ASM: .text
5-
63
.amdgcn_target "amdgcn-amd-amdhsa--gfx90a:xnack+"
74
// ASM: .amdgcn_target "amdgcn-amd-amdhsa--gfx90a:xnack+"
85

0 commit comments

Comments
 (0)