brintos

brintos / llvm-project-archived public Read only

0
0
Text · 998 B · 30b5297 Raw
32 lines · plain
1# Check that --print-sorted-by-order=<ascending/descending> option works properly in llvm-bolt2#3# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o4# RUN: %clang %cflags -fPIC -pie %t.o -o %t.exe -nostdlib -Wl,-q5# RUN: link_fdata %s %t.o %t.fdata6# RUN: llvm-bolt %t.exe -o %t.bolt --print-sorted-by=all --print-sorted-by-order=ascending \7# RUN:   --data %t.fdata | FileCheck %s -check-prefix=CHECK-ASCEND8# RUN: llvm-bolt %t.exe -o %t.bolt --print-sorted-by=all --print-sorted-by-order=descending \9# RUN:   --data %t.fdata | FileCheck %s -check-prefix=CHECK-DESCEND10 11# CHECK-ASCEND: BOLT-INFO: top functions sorted by dyno stats are:12# CHECK-ASCEND-NEXT: bar13# CHECK-ASCEND-NEXT: foo14# CHECK-DESCEND: BOLT-INFO: top functions sorted by dyno stats are:15# CHECK-DESCEND-NEXT: foo16# CHECK-DESCEND-NEXT: bar17 18  .text19  .align 420  .global bar21  .type bar, %function22bar:23  mov w0, wzr24  ret25 26  .global foo27  .type foo, %function28foo:29# FDATA: 1 foo 0 1 bar 0 0 130  bl bar31  ret32