2 ## basic-block-sections tests.
3 ## This simple test checks foo is folded into bar with bb sections
4 ## and the jumps are deleted.
6 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
7 # RUN: ld.lld --optimize-bb-jumps --icf=all %t.o -o %t.out
8 # RUN: llvm-objdump -d %t.out| FileCheck %s
11 # CHECK-NEXT: nopl (%rax)
12 # CHECK-NEXT: je 0x{{[[:xdigit:]]+}} <aa.BB.foo>
16 ## Explicity check that bar is folded and not emitted.
18 # CHECK-NOT: <a.BB.bar>:
19 # CHECK-NOT: <aa.BB.bar>:
21 .section .text.bar,"ax",@progbits
28 .section .text.a.BB.bar,"ax",@progbits,unique,3
35 .section .text.foo,"ax",@progbits
42 .section .text.a.BB.foo,"ax",@progbits,unique,2