brintos

brintos / llvm-project-archived public Read only

0
0
Text · 723 B · e926f98 Raw
34 lines · plain
1# REQUIRES: system-linux,bolt-runtime2 3# RUN: %clang %cflags -Wl,-q -o %t.exe %s4# RUN: llvm-bolt --instrument --instrumentation-file=%t.fdata -o %t.instr %t.exe5 6## Run the profiled binary and check that the profile reports at least that `f`7## has been called.8# RUN: rm -f %t.fdata9# RUN: %t.instr10# RUN: cat %t.fdata | FileCheck %s11# CHECK: f 0 0 1{{$}}12 13## Check BOLT works with this profile14# RUN: llvm-bolt --data %t.fdata --reorder-blocks=cache -o %t.bolt %t.exe15 16    .text17    .globl main18    .type main, @function19main:20    addi sp, sp, -821    sd ra, 0(sp)22    call f23    ld ra, 0(sp)24    addi sp, sp, 825    li a0, 026    ret27    .size main, .-main28 29    .globl f30    .type f, @function31f:32    ret33    .size f, .-f34