repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
lld
/
test
/
MachO
/
cgprofile-print.s
blob
9435891695c9d0e3750718c36eed7c3aa35db1c5
1
# REQUIRES: x86
2
3
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t
4
# RUN: %lld -e A %t -o %t2 --print-symbol-order=%t3
5
# RUN: FileCheck %s --input-file %t3
6
7
# CHECK: B
8
# CHECK-NEXT: C
9
# CHECK-NEXT: D
10
# CHECK-NEXT: A
11
12
.text
13
.globl A
14
A
:
15
nop
16
17
.globl B
18
B
:
19
nop
20
21
.globl C
22
C
:
23
nop
24
25
.globl D
26
D
:
27
nop
28
29
.subsections_via_symbols
30
31
.cg_profile A, B, 5
32
.cg_profile B, C, 50
33
.cg_profile C, D, 40
34
.cg_profile D, B, 10