|
37 | 37 |
|
38 | 38 | # 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
|
39 | 39 | # 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: s5,s3,s4,s2,s1,F,C,E,D,B,A,_start,d4,d1,d3,d2, |
41 | 41 |
|
42 | 42 | # 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
|
43 | 43 | # RUN: llvm-nm -jn out.cb | tr '\n' , | FileCheck %s --check-prefix=CDATA
|
44 | 44 |
|
45 | 45 | # 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
|
46 | 46 | # 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, |
| 47 | +# CBOTH-STARTUP: s5,s3,s4,s2,s1,A,B,C,F,E,D,_start,d4,d1,d3,d2, |
48 | 48 |
|
49 | 49 | # BP-COMPRESSION-FUNC: Ordered 7 sections using balanced partitioning
|
50 | 50 | # BP-COMPRESSION-DATA: Ordered 9 sections using balanced partitioning
|
|
100 | 100 | D
|
101 | 101 | s2
|
102 | 102 | s1
|
103 |
| -r3 |
104 |
| -r2 |
105 | 103 |
|
106 | 104 | #--- a.c
|
107 | 105 | const char s5[] = "engineering";
|
|
0 commit comments