Skip to content

Commit f44410a

Browse files
committed
[test] Fixes llvm#120514
1 parent f1b075d commit f44410a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lld/test/ELF/bp-section-orderer.s

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,18 @@
3737

3838
# RUN: ld.lld -o out.cd a.o --verbose-bp-section-orderer --bp-compression-sort=data 2>&1 | FileCheck %s --check-prefix=BP-COMPRESSION-DATA
3939
# RUN: llvm-nm -jn out.cd | tr '\n' , | FileCheck %s --check-prefix=CDATA
40-
# CDATA: s4,s2,s1,s5,s3,F,C,E,D,B,A,_start,d4,d1,d3,d2,
40+
# CDATA-DAG: s4,s2,s1
41+
# CDATA-DAG: s5,s3
42+
# CDATA: F,C,E,D,B,A,_start,d4,d1,d3,d2,
4143

4244
# RUN: ld.lld -o out.cb a.o --verbose-bp-section-orderer --bp-compression-sort=both 2>&1 | FileCheck %s --check-prefix=BP-COMPRESSION-BOTH
4345
# RUN: llvm-nm -jn out.cb | tr '\n' , | FileCheck %s --check-prefix=CDATA
4446

4547
# RUN: ld.lld -o out.cbs a.o --verbose-bp-section-orderer --bp-compression-sort=both --irpgo-profile=a.profdata --bp-startup-sort=function 2>&1 | FileCheck %s --check-prefix=BP-COMPRESSION-BOTH
4648
# RUN: llvm-nm -jn out.cbs | tr '\n' , | FileCheck %s --check-prefix=CBOTH-STARTUP
47-
# CBOTH-STARTUP: s4,s2,s1,s5,s3,A,B,C,F,E,D,_start,d4,d1,d3,d2,
49+
# CBOTH-STARTUP-DAG: s4,s2,s1,
50+
# CBOTH-STARTUP-DAG: s5,s3
51+
# CBOTH-STARTUP: A,B,C,F,E,D,_start,d4,d1,d3,d2,
4852

4953
# BP-COMPRESSION-FUNC: Ordered 7 sections using balanced partitioning
5054
# BP-COMPRESSION-DATA: Ordered 9 sections using balanced partitioning
@@ -100,8 +104,6 @@ E
100104
D
101105
s2
102106
s1
103-
r3
104-
r2
105107

106108
#--- a.c
107109
const char s5[] = "engineering";

0 commit comments

Comments
 (0)