28 lines · plain
1# This test checks that tentative code layout for cold blocks always runs.2# It commonly happens when using lite mode with split functions.3 4# REQUIRES: system-linux, asserts5 6# RUN: %clang %cflags -o %t %s7# RUN: %clang %s %cflags -Wl,-q -o %t8# RUN: link_fdata --no-lbr %s %t %t.fdata9# RUN: llvm-bolt %t -o %t.bolt --data %t.fdata -split-functions \10# RUN: -debug 2>&1 | FileCheck %s11 12 .text13 .globl foo14 .type foo, %function15foo:16.entry_bb:17# FDATA: 1 foo #.entry_bb# 1018 cmp x0, #019 b.eq .Lcold_bb120 ret21.Lcold_bb1:22 ret23 24## Force relocation mode.25.reloc 0, R_AARCH64_NONE26 27# CHECK: foo{{.*}} cold tentative: {{.*}}28