Skip to content

Commit 4f7ff6b

Browse files
committed
[MC] Clean up tests that implicit .text MCAsmStreamer
1 parent edca1d9 commit 4f7ff6b

23 files changed

+10
-23
lines changed

llvm/test/MC/AArch64/armv8.3a-complex.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+complxnum,+fullfp16 -o - %s 2>%t | FileCheck %s
22
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.3a,+fullfp16 -o - %s 2>%t | FileCheck %s
3+
.text
34
fcmla v0.4h, v1.4h, v2.4h, #0
45
fcmla v0.8h, v1.8h, v2.8h, #0
56
fcmla v0.2s, v1.2s, v2.2s, #0

llvm/test/MC/AArch64/armv8.3a-complex_nofp16.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+complxnum -o - %s 2>%t | FileCheck %s
2+
.text
23
fcmla v0.2s, v1.2s, v2.2s, #0
34
fcmla v0.4s, v1.4s, v2.4s, #0
45
fcmla v0.2d, v1.2d, v2.2d, #0

llvm/test/MC/AArch64/armv8.3a-pauth.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
paciasp
44

5-
// CHECK: .text
65
// CHECK: paciasp // encoding: [0x3f,0x23,0x03,0xd5]

llvm/test/MC/AArch64/armv8.3a-signed-pointer.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// RUN: FileCheck --check-prefix=CHECK-REQ %s < %t.2
77

88
// ALL: .text
9+
.text
910
mrs x0, apiakeylo_el1
1011
mrs x0, apiakeyhi_el1
1112
mrs x0, apibkeylo_el1

llvm/test/MC/AArch64/armv8.4a-flagm.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
cfinv
44

5-
// CHECK: .text
6-
cfinv // encoding: [0x1f,0x40,0x00,0xd5]
5+
// CHECK: encoding: [0x1f,0x40,0x00,0xd5]
6+
cfinv

llvm/test/MC/AArch64/armv8.6a-amvs.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+amvs -o - %s | FileCheck %s
22
// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+v8.6a -o - %s | FileCheck %s
33
// RUN: not llvm-mc -triple aarch64 -show-encoding -o - %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
4+
.text
45
mrs x0, AMCG1IDR_EL0
56
msr AMEVCNTVOFF00_EL2, x0
67
msr AMEVCNTVOFF01_EL2, x0

llvm/test/MC/AArch64/armv9.6a-ras.s

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ dc CIVAPS, x3
66
// NO-POPS: error: DC CIGDVAPS requires: pops
77
// NO-POPS: error: DC CIVAPS requires: pops
88

9-
# HAS-POPS: .text
10-
119
# HAS-POPS: dc cigdvaps, x3 // encoding: [0xa3,0x7f,0x08,0xd5]
1210
# HAS-POPS-NEXT: dc civaps, x3 // encoding: [0x23,0x7f,0x08,0xd5]

llvm/test/MC/AArch64/armv9.6a-rme-gpc3.s

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
mrs x3, GPCBW_EL3
66
msr GPCBW_EL3, x4
77

8-
# CHECK: .text
9-
# CHECK-NEXT: .func:
8+
# CHECK: .func:
109
# CHECK-NEXT: apas x0 // encoding: [0x1f,0x70,0x0e,0xd5]
1110
# CHECK-NEXT: mrs x3, GPCBW_EL3 // encoding: [0xa3,0x21,0x3e,0xd5]
1211
# CHECK-NEXT: msr GPCBW_EL3, x4 // encoding: [0xa4,0x21,0x1e,0xd5]

llvm/test/MC/ARM/directive-object_arch-3.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.arch armv7
66
.object_arch armv4
77

8-
@ CHECK: .text
98
@ CHECK: .arch armv7
109
@ CHECK: .object_arch armv4
1110

llvm/test/MC/ARM/inst-directive-emit.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
emit_asm:
1010
.inst.w 0xf2400000, 0xf2c00000
1111

12-
@ CHECK: .text
1312
@ CHECK: .code 16
1413
@ CHECK: .p2align 2
1514
@ CHECK: .globl emit_asm

llvm/test/MC/Mips/dsp/valid.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# RUN: llvm-mc -show-encoding -triple=mips-unknown-unknown -mattr=dsp %s | FileCheck %s
22
#
3-
# CHECK: .text
43
.set noat
54
absq_s.ph $1, $2 # CHECK: absq_s.ph $1, $2 # encoding: [0x7c,0x02,0x0a,0x52]
65
absq_s.w $5, $6 # CHECK: absq_s.w $5, $6 # encoding: [0x7c,0x06,0x2c,0x52]

llvm/test/MC/Mips/dspr2/valid.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# RUN: llvm-mc -show-encoding -triple=mips-unknown-unknown -mattr=dspr2 %s | FileCheck %s
22
#
3-
# CHECK: .text
43
.set noat
54
absq_s.ph $1, $2 # CHECK: absq_s.ph $1, $2 # encoding: [0x7c,0x02,0x0a,0x52]
65
absq_s.qb $3, $4 # CHECK: absq_s.qb $3, $4 # encoding: [0x7c,0x04,0x18,0x52]

llvm/test/MC/Mips/expr1.s

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# RUN: FileCheck %s --check-prefix=MM-32R2-EL
55

66
# Check that the assembler can handle the expressions as operands.
7-
# 32R2-EL: .text
87
# 32R2-EL: .globl foo
98
# 32R2-EL: foo:
109
# 32R2-EL: lw $4, %lo(foo)($4) # encoding: [A,A,0x84,0x8c]
@@ -26,7 +25,6 @@
2625
# 32R2-EL: lw $4, 6($4) # encoding: [0x06,0x00,0x84,0x8c]
2726
# 32R2-EL: .space 64
2827

29-
# MM-32R2-EL: .text
3028
# MM-32R2-EL: .globl foo
3129
# MM-32R2-EL: foo:
3230
# MM-32R2-EL: lw $4, %lo(foo)($4) # encoding: [0x84'A',0xfc'A',0x00,0x00]

llvm/test/MC/Mips/macro-ld-sd.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# RUN: | FileCheck --check-prefixes=ALL,64 %s
1111

1212
# ALL: .text
13+
.text
1314
ld $8, 0($5)
1415
# 32: lw $8, 0($5) # encoding: [0x8c,0xa8,0x00,0x00]
1516
# 32: lw $9, 4($5) # encoding: [0x8c,0xa9,0x00,0x04]

llvm/test/MC/Mips/macro-seq.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# RUN: llvm-mc -triple=mips -mcpu=mips1 < %s | FileCheck --check-prefixes=ALL,MIPS32 %s
22
# RUN: llvm-mc -triple=mips -mcpu=mips64 < %s | FileCheck --check-prefixes=ALL,MIPS64 %s
33

4-
# ALL: .text
54
seq $2, $11, $0
65
# ALL: sltiu $2, $11, 1
76
seq $2, $0, $11

llvm/test/MC/Mips/mips_directives.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# RUN: llvm-mc -show-encoding -mcpu=mips32 -triple mips-unknown-unknown %s | FileCheck %s
22
#
3-
# CHECK: .text
43
# CHECK: $BB0_2:
54
# CHECK: .abicalls
65
$BB0_2:

llvm/test/MC/RISCV/compress-debug-info.s

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
# This file ensures that compressing an instruction preserves its debug info.
88

99

10-
# BOTH-LABEL: .text
11-
1210
# BOTH: .file 1
1311
# BOTH-SAME: "compress-debug-info.s"
1412

llvm/test/MC/RISCV/custom_reloc.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# CHECK-ASM: .text
1414
# CHECK-OBJ: <.text>:
1515

16+
.text
1617
nop
1718
# CHECK-ASM: nop
1819
# CHECK-OBJ: addi zero, zero, 0x0

llvm/test/MC/SystemZ/asm-match.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
// CHECK: Matching formal operand class MCK_PCRelTLS32 against actual operand at index 2 (ImmTLS:fun): match success using generic matcher
6666
// CHECK: Matching formal operand class InvalidMatchClass against actual operand at index 3: actual operand index out of range
6767
// CHECK: Opcode result: complete match, selecting this opcode
68-
// CHECK: .text
6968
// CHECK: sllg %r3, %r0, 3
7069
// CHECK: llill %r0, 0
7170
// CHECK: lgr %r1, %r0

llvm/test/MC/SystemZ/gnu-attributes.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# RUN: llvm-mc -triple s390x-linux-gnu -filetype=obj %s | \
44
# RUN: llvm-objdump --mcpu=z14 -D - | FileCheck %s --check-prefix=OBJ
55

6-
#ASM: .text
76
#ASM: .gnu_attribute 8, 2
87

98
#OBJ: 0000000000000000 <.gnu.attributes>:

llvm/test/MC/WebAssembly/assembler-binary.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ entry:
2020
; Checking assembly is not the point of this test, but if something breaks
2121
; it is easier to spot it here than in the yaml output.
2222

23-
; ASM: .text
2423
; ASM: .file "assembler-binary.ll"
2524
; ASM: .functype bar () -> ()
2625
; ASM: .globl foo

llvm/test/MC/WebAssembly/basic-assembly.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ empty_funcref_table:
152152
.tabletype empty_exnref_table, exnref
153153
empty_exnref_table:
154154

155-
# CHECK: .text
156155
# CHECK: .globaltype __stack_pointer, i32
157156

158157
# CHECK-LABEL: empty_func:

llvm/test/MC/WebAssembly/stack-ptr-mclower.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ entry:
1515
ret void
1616
}
1717

18-
; CHECK: .text
19-
; CHECK-NEXT: .file "stack-ptr-mclower.ll"
18+
; CHECK: .file "stack-ptr-mclower.ll"
2019
; CHECK-NEXT: .globaltype __stack_pointer, [[PTR]]
2120
; CHECK-NEXT: .functype bar () -> ()
2221
; CHECK-NEXT: .functype foo () -> ()

0 commit comments

Comments
 (0)