55
66# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
77# RUN: ld.lld %t.o -o %t --branch-to-branch
8- # RUN: llvm-objdump -d -s %t | FileCheck --check-prefix= B2B %s
8+ # RUN: llvm-objdump -d -s %t | FileCheck --check-prefixes=CHECK, B2B %s
99# RUN: ld.lld %t.o -o %t -O2
10- # RUN: llvm-objdump -d -s %t | FileCheck --check-prefix= B2B %s
10+ # RUN: llvm-objdump -d -s %t | FileCheck --check-prefixes=CHECK, B2B %s
1111
1212## Test that branch-to-branch is disabled by default.
1313
1414# RUN: ld.lld %t.o -o %t
15- # RUN: llvm-objdump -d -s %t | FileCheck --check-prefix= NOB2B %s
15+ # RUN: llvm-objdump -d -s %t | FileCheck --check-prefixes=CHECK, NOB2B %s
1616# RUN: ld.lld %t.o -o %t -O2 --no-branch-to-branch
17- # RUN: llvm-objdump -d -s %t | FileCheck --check-prefix= NOB2B %s
17+ # RUN: llvm-objdump -d -s %t | FileCheck --check-prefixes=CHECK, NOB2B %s
1818
1919## Test that branch-to-branch is disabled for preemptible symbols.
2020
2121# RUN: ld.lld %t.o -o %t --branch-to-branch -shared
22- # RUN: llvm-objdump -d -s %t | FileCheck --check-prefix= NOB2B %s
22+ # RUN: llvm-objdump -d -s %t | FileCheck --check-prefixes=CHECK, NOB2B %s
2323
2424.section .rodata.vtable,"a"
2525.globl vtable
@@ -34,12 +34,13 @@ vtable:
3434
3535.section .text ._start,"ax"
3636.globl _start
37+ # CHECK: <_start>:
3738_start:
38- # B2B: jmp {{.*}} <f3>
39- # NOB2B: jmp {{.*}} <f1{{.*}}>
39+ # B2B-NEXT : jmp {{.*}} <f3>
40+ # NOB2B-NEXT : jmp {{.*}} <f1{{.*}}>
4041jmp f1
41- # B2B: jmp {{.*}} <f3>
42- # NOB2B: jmp {{.*}} <f2{{.*}}>
42+ # B2B-NEXT : jmp {{.*}} <f3>
43+ # NOB2B-NEXT : jmp {{.*}} <f2{{.*}}>
4344jmp f2
4445
4546.section .text .f1,"ax"
4950
5051.section .text .f2,"ax"
5152.globl f2
53+ # CHECK: <f2>:
5254f2:
55+ # CHECK-NEXT: jmp {{.*}} <f3{{.*}}>
5356jmp f3
5457
5558.section .text .f3,"ax"
0 commit comments