brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 5bed619 Raw
51 lines · plain
1## Test random function splitting option2 3# RUN: llvm-mc --filetype=obj --triple x86_64-unknown-unknown %s -o %t.o4# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q5# RUN: llvm-bolt %t.exe -o %t.random2 --split-functions \6# RUN:         --split-strategy=random2 --print-finalized \7# RUN:         --print-only=two_block --bolt-seed=7 2>&1 | \8# RUN:     FileCheck %s9# RUN: llvm-bolt %t.exe -o %t.randomN --split-functions \10# RUN:         --split-strategy=randomN --print-finalized \11# RUN:         --print-only=two_block --bolt-seed=7 2>&1 | \12# RUN:     FileCheck %s13 14# CHECK: Binary Function "two_block"15# CHECK:   IsSplit     :16# CHECK-SAME: {{ 1$}}17 18        .text19        .globl  single_block20        .type   single_block, @function21single_block:22        ret23        .size   single_block, .-single_block24 25 26        .globl  two_block27        .type   two_block, @function28two_block:29.L3:30        subl    $1, %edi31        testl   %edi, %edi32        jg      .L333        jmp     .L434.L4:35        subl    $1, %edi36        subl    $1, %edi37        subl    $1, %edi38        subl    $1, %edi39        ret40        .size   two_block, .-two_block41 42 43        .globl  main44        .type   main, @function45main:46        call    single_block47        movl    $10, %edi48        call    two_block49        ret50        .size   main, .-main51