Skip to content

Commit 5712e29

Browse files
committed
[CodeGen] Clean up tests that depend on implicit .text in MCAsmStreamer
1 parent 2e30032 commit 5712e29

8 files changed

+6
-12
lines changed

Diff for: llvm/test/CodeGen/AArch64/commandline-metadata.ll

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
; Verify that llvm.commandline metadata is emitted to the corresponding command line section.
55

6-
; CHECK: .text
76
; CHECK: .section .GCC.command.line,"MS",@progbits,1
87
; CHECK-NEXT: .zero 1
98
; CHECK-NEXT: .ascii "clang -command1"
109
; CHECK-NEXT: .zero 1
1110
; CHECK-NEXT: .ascii "clang -command2"
1211
; CHECK-NEXT: .zero 1
1312

14-
; CHECK-MACHO: .section __TEXT,__text,regular,pure_instructions
15-
; CHECK-MACHO-NEXT: .section __TEXT,__command_line
13+
; CHECK-MACHO: .section __TEXT,__command_line
1614
; CHECK-MACHO-NEXT: .space 1
1715
; CHECK-MACHO-NEXT: .ascii "clang -command1"
1816
; CHECK-MACHO-NEXT: .space 1

Diff for: llvm/test/CodeGen/AVR/sections.ll

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
; Test that functions (in address space 1) are not considered .progmem data.
1111

12-
; CHECK: .text
1312
; SECTIONS: .text.somefunc,"ax",@progbits
1413
; CHECK-LABEL: somefunc:
1514
define void @somefunc() addrspace(1) {

Diff for: llvm/test/CodeGen/Hexagon/switch-lut-explicit-section.ll

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
66
target triple = "hexagon-unknown--elf"
77

8-
;FUNCTEXT: .text
98
;FUNCTEXT: .section{{.*}}tcm.hexagon,
109
;FUNCTEXT-NOT: .section{{.*}}.rodata
1110
;FUNCTEXT-NOT: .text

Diff for: llvm/test/CodeGen/Hexagon/switch-lut-function-section.ll

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
55
target triple = "hexagon-unknown--elf"
66

7-
;FUNCTEXT: .text
87
;FUNCTEXT: .section{{.*}}text.foo,
98
;FUNCTEXT-NOT: .section{{.*}}.rodata
109
;FUNCTEXT: .Lswitch.table:

Diff for: llvm/test/CodeGen/X86/GC/ocaml-gc.ll

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s
22

3-
; CHECK: .text
4-
; CHECK-NEXT: .file "<stdin>"
3+
; CHECK: .file "<stdin>"
54

65
define i32 @main(i32 %x) nounwind gc "ocaml" {
76
; CHECK: .globl "caml<stdin>__code_begin"

Diff for: llvm/test/CodeGen/X86/basic-block-sections-blockaddress-taken.ll

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ entry:
66
%1 = select i1 %0, ptr blockaddress(@foo, %bb1), ptr blockaddress(@foo, %bb2) ; <ptr> [#uses=1]
77
indirectbr ptr %1, [label %bb1, label %bb2]
88

9-
; CHECK: .text
109
; CHECK: .section .text.foo,"ax",@progbits
1110
; CHECK-LABEL: foo:
1211
; CHECK: movl $.Ltmp0, %eax

Diff for: llvm/test/CodeGen/X86/elf-unique-sections-by-flags.ll

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ define i32 @fn_text() {
1111
entry:
1212
ret i32 0
1313
}
14-
; CHECK: .text{{$}}
15-
; CHECK-NEXT: .file
1614
; FNSECTIONS: .section .text.fn_text,"ax",@progbits{{$}}
17-
; CHECK-NEXT: .globl fn_text
15+
; CHECK: .globl fn_text
1816
; CHECK: fn_text:
1917

2018
; A second function placed in .text, to check the behaviour with -function-sections.

Diff for: llvm/test/CodeGen/Xtensa/simple.ll

+3
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33

44
; CHECK: .text
55
; DUMP: file format elf32-xtensa
6+
define void @f() {
7+
ret void
8+
}

0 commit comments

Comments
 (0)