[llvm] 8db7327 - [MC] Clean up tests that depend on implicit .text in MCAsmStreamer

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 22 20:07:27 PST 2024


Author: Fangrui Song
Date: 2024-12-22T20:07:22-08:00
New Revision: 8db73270e06a7925411870afa3953dafe997a35e

URL: https://github.com/llvm/llvm-project/commit/8db73270e06a7925411870afa3953dafe997a35e
DIFF: https://github.com/llvm/llvm-project/commit/8db73270e06a7925411870afa3953dafe997a35e.diff

LOG: [MC] Clean up tests that depend on implicit .text in MCAsmStreamer

Added: 
    

Modified: 
    llvm/test/MC/AsmParser/exprs-invalid.s
    llvm/test/MC/GOFF/ppa1.ll
    llvm/test/MC/XCOFF/inlineasm.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/AsmParser/exprs-invalid.s b/llvm/test/MC/AsmParser/exprs-invalid.s
index c4d0c3e513abba..701dc43474ad38 100644
--- a/llvm/test/MC/AsmParser/exprs-invalid.s
+++ b/llvm/test/MC/AsmParser/exprs-invalid.s
@@ -1,6 +1,5 @@
-// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err | FileCheck %s
+// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err
 // RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
-// CHECK: 	.section	__TEXT,__text,regular,pure_instructions
 // CHECK-ERRORS: :[[#@LINE+1]]:10: error: invalid octal number
 .long 80+08
 

diff  --git a/llvm/test/MC/GOFF/ppa1.ll b/llvm/test/MC/GOFF/ppa1.ll
index 13971c7ec8e72d..fe2dc77bba2f52 100644
--- a/llvm/test/MC/GOFF/ppa1.ll
+++ b/llvm/test/MC/GOFF/ppa1.ll
@@ -27,7 +27,6 @@
 ; CHECK:        .short  0                               * Length/4 of Parms
 ; CHECK:        .long   L#func_end0-L#EPM_void_test_0   * Length of Code
 ; CHECK:        .long   L#EPM_void_test_0-L#PPA1_void_test_0
-; CHECK:        .section        ".text"
 ; CHECK:                                        * -- End function
 define void @void_test() {
 entry:

diff  --git a/llvm/test/MC/XCOFF/inlineasm.s b/llvm/test/MC/XCOFF/inlineasm.s
index e92d403f45a3a7..adec53df40e13e 100644
--- a/llvm/test/MC/XCOFF/inlineasm.s
+++ b/llvm/test/MC/XCOFF/inlineasm.s
@@ -1,8 +1,6 @@
 // RUN: llvm-mc -filetype=asm -triple powerpc-ibm-aix-xcoff %s | FileCheck %s
 
-// CHECK-LABEL:       .csect ..text..[PR],5
-// CHECK:L..tmp0:
-// CHECK-NEXT:        lwarx 3, 0, 4
+// CHECK:             lwarx 3, 0, 4
 // CHECK-NEXT:        cmpw    5, 3
 // CHECK-NEXT:        bne-    0, L..tmp1
 // CHECK-NEXT:        stwcx. 6, 0, 4


        


More information about the llvm-commits mailing list