Skip to content

Commit da67eb8

Browse files
[test][IRGen] Split arch specific checks in section.swift into a separate file
1 parent 8b40353 commit da67eb8

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

test/IRGen/section.swift

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %target-swift-frontend -enable-experimental-feature SymbolLinkageMarkers -primary-file %s -emit-sil -parse-as-library | %FileCheck %s --check-prefix=SIL
22
// RUN: %target-swift-frontend -enable-experimental-feature SymbolLinkageMarkers -primary-file %s -emit-ir -parse-as-library | %FileCheck %s --check-prefix=IR
3-
// RUN: %target-swift-frontend -enable-experimental-feature SymbolLinkageMarkers -primary-file %s -S -parse-as-library | %FileCheck %s --check-prefix=ASM --check-prefix ASM-%target-os
43

54
// REQUIRES: swift_in_compiler
65

@@ -46,22 +45,3 @@
4645
// IR: @"$s7section2g5_Wz" = internal global {{i64|i32}} 0
4746
// IR: @"$s7section2g5SpySiGSgvp" = hidden global {{i64|i32}} 1111638594, section "__TEXT,__mysection"
4847
// IR: define {{.*}}@"$s7section3fooyyF"(){{.*}} section "__TEXT,__mysection"
49-
50-
// ASM: .section{{.*}}__TEXT,__mysection
51-
// ASM-NOT: .section
52-
// ASM: $s7section3fooyyF:
53-
// ASM-linux-gnu: .section{{.*}}__TEXT,__mysection
54-
// ASM-linux-android: .section{{.*}}__TEXT,__mysection
55-
// ASM-linux-androideabi: .section{{.*}}__TEXT,__mysection
56-
// ASM-NOT: .section
57-
// ASM: $s7section2g0Sivp:
58-
// ASM-NOT: .section
59-
// ASM: $s7section2g1Si_Sitvp:
60-
// ASM-NOT: .section
61-
// ASM: $s7section2g2Sbvp:
62-
// ASM-NOT: .section
63-
// ASM: $s7section2g3Sbvp:
64-
// ASM-NOT: .section
65-
// ASM: $s7section2g4SpySiGSgvp:
66-
// ASM-NOT: .section
67-
// ASM: $s7section2g5SpySiGSgvp:

test/IRGen/section_asm.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// RUN: %target-swift-frontend -enable-experimental-feature SymbolLinkageMarkers -primary-file %S/section.swift -S -parse-as-library | %FileCheck %s --check-prefix=ASM --check-prefix ASM-%target-os
2+
// REQUIRES: swift_in_compiler
3+
4+
// ASM: .section{{.*}}__TEXT,__mysection
5+
// ASM-NOT: .section
6+
// ASM: $s7section3fooyyF:
7+
// ASM-linux-gnu: .section{{.*}}__TEXT,__mysection
8+
// ASM-linux-android: .section{{.*}}__TEXT,__mysection
9+
// ASM-linux-androideabi: .section{{.*}}__TEXT,__mysection
10+
// ASM-NOT: .section
11+
// ASM: $s7section2g0Sivp:
12+
// ASM-NOT: .section
13+
// ASM: $s7section2g1Si_Sitvp:
14+
// ASM-NOT: .section
15+
// ASM: $s7section2g2Sbvp:
16+
// ASM-NOT: .section
17+
// ASM: $s7section2g3Sbvp:
18+
// ASM-NOT: .section
19+
// ASM: $s7section2g4SpySiGSgvp:
20+
// ASM-NOT: .section
21+
// ASM: $s7section2g5SpySiGSgvp:

0 commit comments

Comments
 (0)