brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 12c0542 Raw
62 lines · plain
1# REQUIRES: x862# This test checks that CallGraphSort ignores edges that would form "bad"3# clusters.4 5# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-win32 %s -o %t6# RUN: echo "A C 1" > %t.call_graph7# RUN: echo "E B 4" >> %t.call_graph8# RUN: echo "C D 2" >> %t.call_graph9# RUN: echo "B D 1" >> %t.call_graph10# RUN: echo "F G 6" >> %t.call_graph11# RUN: echo "G H 5" >> %t.call_graph12# RUN: echo "H I 4" >> %t.call_graph13# RUN: lld-link /subsystem:console /entry:A %t /call-graph-ordering-file:%t.call_graph /out:%t2 /debug:symtab14# RUN: llvm-nm --numeric-sort %t2 | FileCheck %s15 16    .section    .text,"ax",one_only,A17    .globl A18A:19    retq20 21    .section    .text,"ax",one_only,D22D:23    .fill 1000, 1, 024 25    .section    .text,"ax",one_only,E26E:27    retq28 29    .section    .text,"ax",one_only,C30C:31    retq32 33    .section    .text,"ax",one_only,B34B:35    .fill 1000, 1, 036 37    .section    .text,"ax",one_only,F38F:39    .fill (1024 * 1024) - 1, 1, 040 41    .section    .text,"ax",one_only,G42G:43    retq44 45    .section    .text,"ax",one_only,H46H:47    retq48 49    .section    .text,"ax",one_only,I50I:51    .fill 13, 1, 052 53# CHECK: 140001000 t H54# CHECK: 140001001 t I55# CHECK: 14000100e T A56# CHECK: 14000100f t C57# CHECK: 140001010 t E58# CHECK: 140001011 t B59# CHECK: 1400013f9 t D60# CHECK: 1400017e1 t F61# CHECK: 1401017e0 t G62