30 lines · plain
1## This script checks that BOLT is able to work in dry run mode (no output)2 3# REQUIRES: system-linux4 5# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \6# RUN: %s -o %t.o7# RUN: link_fdata %s %t.o %t.fdata8# RUN: llvm-strip --strip-unneeded %t.o9# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q10# RUN: llvm-bolt %t.exe --print-profile-stats -o /dev/null \11# RUN: --data %t.fdata | FileCheck %s12 13 .text14 .globl main15 .type main, %function16 .p2align 417main:18# FDATA: 0 [unknown] 0 1 main 0 0 51019 pushq %rbp20 movq %rsp, %rbp21 subq $0x18, %rsp22 addq $0x18, %rsp23 xorq %rax, %rax24 leaveq25 retq26.size main, .-main27 28 29# CHECK: skipping writing final binary30