[llvm] 4f7ff6b - [MC] Clean up tests that implicit .text MCAsmStreamer
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 22 18:11:56 PST 2024
Author: Fangrui Song
Date: 2024-12-22T18:11:50-08:00
New Revision: 4f7ff6bb38c8952a24b5cbae07031d78e359e573
URL: https://github.com/llvm/llvm-project/commit/4f7ff6bb38c8952a24b5cbae07031d78e359e573
DIFF: https://github.com/llvm/llvm-project/commit/4f7ff6bb38c8952a24b5cbae07031d78e359e573.diff
LOG: [MC] Clean up tests that implicit .text MCAsmStreamer
Added:
Modified:
llvm/test/MC/AArch64/armv8.3a-complex.s
llvm/test/MC/AArch64/armv8.3a-complex_nofp16.s
llvm/test/MC/AArch64/armv8.3a-pauth.s
llvm/test/MC/AArch64/armv8.3a-signed-pointer.s
llvm/test/MC/AArch64/armv8.4a-flagm.s
llvm/test/MC/AArch64/armv8.6a-amvs.s
llvm/test/MC/AArch64/armv9.6a-ras.s
llvm/test/MC/AArch64/armv9.6a-rme-gpc3.s
llvm/test/MC/ARM/directive-object_arch-3.s
llvm/test/MC/ARM/inst-directive-emit.s
llvm/test/MC/Mips/dsp/valid.s
llvm/test/MC/Mips/dspr2/valid.s
llvm/test/MC/Mips/expr1.s
llvm/test/MC/Mips/macro-ld-sd.s
llvm/test/MC/Mips/macro-seq.s
llvm/test/MC/Mips/mips_directives.s
llvm/test/MC/RISCV/compress-debug-info.s
llvm/test/MC/RISCV/custom_reloc.s
llvm/test/MC/SystemZ/asm-match.s
llvm/test/MC/SystemZ/gnu-attributes.s
llvm/test/MC/WebAssembly/assembler-binary.ll
llvm/test/MC/WebAssembly/basic-assembly.s
llvm/test/MC/WebAssembly/stack-ptr-mclower.ll
Removed:
################################################################################
diff --git a/llvm/test/MC/AArch64/armv8.3a-complex.s b/llvm/test/MC/AArch64/armv8.3a-complex.s
index dae5d477951005..e34fb5e1f5908c 100644
--- a/llvm/test/MC/AArch64/armv8.3a-complex.s
+++ b/llvm/test/MC/AArch64/armv8.3a-complex.s
@@ -1,5 +1,6 @@
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+complxnum,+fullfp16 -o - %s 2>%t | FileCheck %s
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.3a,+fullfp16 -o - %s 2>%t | FileCheck %s
+.text
fcmla v0.4h, v1.4h, v2.4h, #0
fcmla v0.8h, v1.8h, v2.8h, #0
fcmla v0.2s, v1.2s, v2.2s, #0
diff --git a/llvm/test/MC/AArch64/armv8.3a-complex_nofp16.s b/llvm/test/MC/AArch64/armv8.3a-complex_nofp16.s
index 63d6d3c52c97d0..fee90518265413 100644
--- a/llvm/test/MC/AArch64/armv8.3a-complex_nofp16.s
+++ b/llvm/test/MC/AArch64/armv8.3a-complex_nofp16.s
@@ -1,4 +1,5 @@
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+complxnum -o - %s 2>%t | FileCheck %s
+.text
fcmla v0.2s, v1.2s, v2.2s, #0
fcmla v0.4s, v1.4s, v2.4s, #0
fcmla v0.2d, v1.2d, v2.2d, #0
diff --git a/llvm/test/MC/AArch64/armv8.3a-pauth.s b/llvm/test/MC/AArch64/armv8.3a-pauth.s
index 153bf687fcc8c8..ab771df8e6f20b 100644
--- a/llvm/test/MC/AArch64/armv8.3a-pauth.s
+++ b/llvm/test/MC/AArch64/armv8.3a-pauth.s
@@ -2,5 +2,4 @@
paciasp
-// CHECK: .text
// CHECK: paciasp // encoding: [0x3f,0x23,0x03,0xd5]
diff --git a/llvm/test/MC/AArch64/armv8.3a-signed-pointer.s b/llvm/test/MC/AArch64/armv8.3a-signed-pointer.s
index e95c9309a3d4d2..accba62517808b 100644
--- a/llvm/test/MC/AArch64/armv8.3a-signed-pointer.s
+++ b/llvm/test/MC/AArch64/armv8.3a-signed-pointer.s
@@ -6,6 +6,7 @@
// RUN: FileCheck --check-prefix=CHECK-REQ %s < %t.2
// ALL: .text
+.text
mrs x0, apiakeylo_el1
mrs x0, apiakeyhi_el1
mrs x0, apibkeylo_el1
diff --git a/llvm/test/MC/AArch64/armv8.4a-flagm.s b/llvm/test/MC/AArch64/armv8.4a-flagm.s
index 2ed43b6cc8749b..33949696f4b673 100644
--- a/llvm/test/MC/AArch64/armv8.4a-flagm.s
+++ b/llvm/test/MC/AArch64/armv8.4a-flagm.s
@@ -2,5 +2,5 @@
cfinv
-// CHECK: .text
-cfinv // encoding: [0x1f,0x40,0x00,0xd5]
+// CHECK: encoding: [0x1f,0x40,0x00,0xd5]
+cfinv
diff --git a/llvm/test/MC/AArch64/armv8.6a-amvs.s b/llvm/test/MC/AArch64/armv8.6a-amvs.s
index 668074b54c131b..8b555736fce6ef 100644
--- a/llvm/test/MC/AArch64/armv8.6a-amvs.s
+++ b/llvm/test/MC/AArch64/armv8.6a-amvs.s
@@ -1,6 +1,7 @@
// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+amvs -o - %s | FileCheck %s
// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+v8.6a -o - %s | FileCheck %s
// RUN: not llvm-mc -triple aarch64 -show-encoding -o - %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
+.text
mrs x0, AMCG1IDR_EL0
msr AMEVCNTVOFF00_EL2, x0
msr AMEVCNTVOFF01_EL2, x0
diff --git a/llvm/test/MC/AArch64/armv9.6a-ras.s b/llvm/test/MC/AArch64/armv9.6a-ras.s
index 2a188d7613d569..80fcb6b59f69ab 100644
--- a/llvm/test/MC/AArch64/armv9.6a-ras.s
+++ b/llvm/test/MC/AArch64/armv9.6a-ras.s
@@ -6,7 +6,5 @@ dc CIVAPS, x3
// NO-POPS: error: DC CIGDVAPS requires: pops
// NO-POPS: error: DC CIVAPS requires: pops
-# HAS-POPS: .text
-
# HAS-POPS: dc cigdvaps, x3 // encoding: [0xa3,0x7f,0x08,0xd5]
# HAS-POPS-NEXT: dc civaps, x3 // encoding: [0x23,0x7f,0x08,0xd5]
diff --git a/llvm/test/MC/AArch64/armv9.6a-rme-gpc3.s b/llvm/test/MC/AArch64/armv9.6a-rme-gpc3.s
index c6387ea2ef2abd..baf05f10b9a1e3 100644
--- a/llvm/test/MC/AArch64/armv9.6a-rme-gpc3.s
+++ b/llvm/test/MC/AArch64/armv9.6a-rme-gpc3.s
@@ -5,8 +5,7 @@
mrs x3, GPCBW_EL3
msr GPCBW_EL3, x4
-# CHECK: .text
-# CHECK-NEXT: .func:
+# CHECK: .func:
# CHECK-NEXT: apas x0 // encoding: [0x1f,0x70,0x0e,0xd5]
# CHECK-NEXT: mrs x3, GPCBW_EL3 // encoding: [0xa3,0x21,0x3e,0xd5]
# CHECK-NEXT: msr GPCBW_EL3, x4 // encoding: [0xa4,0x21,0x1e,0xd5]
diff --git a/llvm/test/MC/ARM/directive-object_arch-3.s b/llvm/test/MC/ARM/directive-object_arch-3.s
index 5dd26197ab1621..c5b6bb68bf2761 100644
--- a/llvm/test/MC/ARM/directive-object_arch-3.s
+++ b/llvm/test/MC/ARM/directive-object_arch-3.s
@@ -5,7 +5,6 @@
.arch armv7
.object_arch armv4
-@ CHECK: .text
@ CHECK: .arch armv7
@ CHECK: .object_arch armv4
diff --git a/llvm/test/MC/ARM/inst-directive-emit.s b/llvm/test/MC/ARM/inst-directive-emit.s
index fbcc9c91d68174..c979a81cbdf03e 100644
--- a/llvm/test/MC/ARM/inst-directive-emit.s
+++ b/llvm/test/MC/ARM/inst-directive-emit.s
@@ -9,7 +9,6 @@
emit_asm:
.inst.w 0xf2400000, 0xf2c00000
-@ CHECK: .text
@ CHECK: .code 16
@ CHECK: .p2align 2
@ CHECK: .globl emit_asm
diff --git a/llvm/test/MC/Mips/dsp/valid.s b/llvm/test/MC/Mips/dsp/valid.s
index f5926f3e25939f..fc1498b0748533 100644
--- a/llvm/test/MC/Mips/dsp/valid.s
+++ b/llvm/test/MC/Mips/dsp/valid.s
@@ -1,6 +1,5 @@
# RUN: llvm-mc -show-encoding -triple=mips-unknown-unknown -mattr=dsp %s | FileCheck %s
#
-# CHECK: .text
.set noat
absq_s.ph $1, $2 # CHECK: absq_s.ph $1, $2 # encoding: [0x7c,0x02,0x0a,0x52]
absq_s.w $5, $6 # CHECK: absq_s.w $5, $6 # encoding: [0x7c,0x06,0x2c,0x52]
diff --git a/llvm/test/MC/Mips/dspr2/valid.s b/llvm/test/MC/Mips/dspr2/valid.s
index c50e9d6e5ae1e8..2d22de063f6ccc 100644
--- a/llvm/test/MC/Mips/dspr2/valid.s
+++ b/llvm/test/MC/Mips/dspr2/valid.s
@@ -1,6 +1,5 @@
# RUN: llvm-mc -show-encoding -triple=mips-unknown-unknown -mattr=dspr2 %s | FileCheck %s
#
-# CHECK: .text
.set noat
absq_s.ph $1, $2 # CHECK: absq_s.ph $1, $2 # encoding: [0x7c,0x02,0x0a,0x52]
absq_s.qb $3, $4 # CHECK: absq_s.qb $3, $4 # encoding: [0x7c,0x04,0x18,0x52]
diff --git a/llvm/test/MC/Mips/expr1.s b/llvm/test/MC/Mips/expr1.s
index a1897126abeb70..0707037870f451 100644
--- a/llvm/test/MC/Mips/expr1.s
+++ b/llvm/test/MC/Mips/expr1.s
@@ -4,7 +4,6 @@
# RUN: FileCheck %s --check-prefix=MM-32R2-EL
# Check that the assembler can handle the expressions as operands.
-# 32R2-EL: .text
# 32R2-EL: .globl foo
# 32R2-EL: foo:
# 32R2-EL: lw $4, %lo(foo)($4) # encoding: [A,A,0x84,0x8c]
@@ -26,7 +25,6 @@
# 32R2-EL: lw $4, 6($4) # encoding: [0x06,0x00,0x84,0x8c]
# 32R2-EL: .space 64
-# MM-32R2-EL: .text
# MM-32R2-EL: .globl foo
# MM-32R2-EL: foo:
# MM-32R2-EL: lw $4, %lo(foo)($4) # encoding: [0x84'A',0xfc'A',0x00,0x00]
diff --git a/llvm/test/MC/Mips/macro-ld-sd.s b/llvm/test/MC/Mips/macro-ld-sd.s
index 658c6dc14cd7dc..28559d8537ef06 100644
--- a/llvm/test/MC/Mips/macro-ld-sd.s
+++ b/llvm/test/MC/Mips/macro-ld-sd.s
@@ -10,6 +10,7 @@
# RUN: | FileCheck --check-prefixes=ALL,64 %s
# ALL: .text
+.text
ld $8, 0($5)
# 32: lw $8, 0($5) # encoding: [0x8c,0xa8,0x00,0x00]
# 32: lw $9, 4($5) # encoding: [0x8c,0xa9,0x00,0x04]
diff --git a/llvm/test/MC/Mips/macro-seq.s b/llvm/test/MC/Mips/macro-seq.s
index 404247edbecc78..3622dbe781fbd3 100644
--- a/llvm/test/MC/Mips/macro-seq.s
+++ b/llvm/test/MC/Mips/macro-seq.s
@@ -1,7 +1,6 @@
# RUN: llvm-mc -triple=mips -mcpu=mips1 < %s | FileCheck --check-prefixes=ALL,MIPS32 %s
# RUN: llvm-mc -triple=mips -mcpu=mips64 < %s | FileCheck --check-prefixes=ALL,MIPS64 %s
-# ALL: .text
seq $2, $11, $0
# ALL: sltiu $2, $11, 1
seq $2, $0, $11
diff --git a/llvm/test/MC/Mips/mips_directives.s b/llvm/test/MC/Mips/mips_directives.s
index d15f8aa3d327c3..7431fa19abaca5 100644
--- a/llvm/test/MC/Mips/mips_directives.s
+++ b/llvm/test/MC/Mips/mips_directives.s
@@ -1,6 +1,5 @@
# RUN: llvm-mc -show-encoding -mcpu=mips32 -triple mips-unknown-unknown %s | FileCheck %s
#
-# CHECK: .text
# CHECK: $BB0_2:
# CHECK: .abicalls
$BB0_2:
diff --git a/llvm/test/MC/RISCV/compress-debug-info.s b/llvm/test/MC/RISCV/compress-debug-info.s
index b7ad2ff3e2a64b..70aaefba3f8208 100644
--- a/llvm/test/MC/RISCV/compress-debug-info.s
+++ b/llvm/test/MC/RISCV/compress-debug-info.s
@@ -7,8 +7,6 @@
# This file ensures that compressing an instruction preserves its debug info.
-# BOTH-LABEL: .text
-
# BOTH: .file 1
# BOTH-SAME: "compress-debug-info.s"
diff --git a/llvm/test/MC/RISCV/custom_reloc.s b/llvm/test/MC/RISCV/custom_reloc.s
index d6fea8fac36713..4bd470008ee520 100644
--- a/llvm/test/MC/RISCV/custom_reloc.s
+++ b/llvm/test/MC/RISCV/custom_reloc.s
@@ -13,6 +13,7 @@
# CHECK-ASM: .text
# CHECK-OBJ: <.text>:
+.text
nop
# CHECK-ASM: nop
# CHECK-OBJ: addi zero, zero, 0x0
diff --git a/llvm/test/MC/SystemZ/asm-match.s b/llvm/test/MC/SystemZ/asm-match.s
index 0353f27583a9eb..286adbe202189c 100644
--- a/llvm/test/MC/SystemZ/asm-match.s
+++ b/llvm/test/MC/SystemZ/asm-match.s
@@ -65,7 +65,6 @@
// CHECK: Matching formal operand class MCK_PCRelTLS32 against actual operand at index 2 (ImmTLS:fun): match success using generic matcher
// CHECK: Matching formal operand class InvalidMatchClass against actual operand at index 3: actual operand index out of range
// CHECK: Opcode result: complete match, selecting this opcode
-// CHECK: .text
// CHECK: sllg %r3, %r0, 3
// CHECK: llill %r0, 0
// CHECK: lgr %r1, %r0
diff --git a/llvm/test/MC/SystemZ/gnu-attributes.s b/llvm/test/MC/SystemZ/gnu-attributes.s
index fc62062b7c50cf..531a89974fb87d 100644
--- a/llvm/test/MC/SystemZ/gnu-attributes.s
+++ b/llvm/test/MC/SystemZ/gnu-attributes.s
@@ -3,7 +3,6 @@
# RUN: llvm-mc -triple s390x-linux-gnu -filetype=obj %s | \
# RUN: llvm-objdump --mcpu=z14 -D - | FileCheck %s --check-prefix=OBJ
-#ASM: .text
#ASM: .gnu_attribute 8, 2
#OBJ: 0000000000000000 <.gnu.attributes>:
diff --git a/llvm/test/MC/WebAssembly/assembler-binary.ll b/llvm/test/MC/WebAssembly/assembler-binary.ll
index 815d3470479746..32f7d679b89683 100644
--- a/llvm/test/MC/WebAssembly/assembler-binary.ll
+++ b/llvm/test/MC/WebAssembly/assembler-binary.ll
@@ -20,7 +20,6 @@ entry:
; Checking assembly is not the point of this test, but if something breaks
; it is easier to spot it here than in the yaml output.
-; ASM: .text
; ASM: .file "assembler-binary.ll"
; ASM: .functype bar () -> ()
; ASM: .globl foo
diff --git a/llvm/test/MC/WebAssembly/basic-assembly.s b/llvm/test/MC/WebAssembly/basic-assembly.s
index 2028fcea6aeae4..e843dab832599e 100644
--- a/llvm/test/MC/WebAssembly/basic-assembly.s
+++ b/llvm/test/MC/WebAssembly/basic-assembly.s
@@ -152,7 +152,6 @@ empty_funcref_table:
.tabletype empty_exnref_table, exnref
empty_exnref_table:
-# CHECK: .text
# CHECK: .globaltype __stack_pointer, i32
# CHECK-LABEL: empty_func:
diff --git a/llvm/test/MC/WebAssembly/stack-ptr-mclower.ll b/llvm/test/MC/WebAssembly/stack-ptr-mclower.ll
index f545e9c7cdb27e..1ec55ae5bbcb56 100644
--- a/llvm/test/MC/WebAssembly/stack-ptr-mclower.ll
+++ b/llvm/test/MC/WebAssembly/stack-ptr-mclower.ll
@@ -15,8 +15,7 @@ entry:
ret void
}
-; CHECK: .text
-; CHECK-NEXT: .file "stack-ptr-mclower.ll"
+; CHECK: .file "stack-ptr-mclower.ll"
; CHECK-NEXT: .globaltype __stack_pointer, [[PTR]]
; CHECK-NEXT: .functype bar () -> ()
; CHECK-NEXT: .functype foo () -> ()
More information about the llvm-commits
mailing list