1## This script checks that BOLT is able to work in dry run mode (no output) 2 3# REQUIRES: system-linux 4 5# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \ 6# RUN: %s -o %t.o 7# RUN: link_fdata %s %t.o %t.fdata 8# RUN: llvm-strip --strip-unneeded %t.o 9# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q 10# RUN: llvm-bolt %t.exe --print-profile-stats -o /dev/null \ 11# RUN: --data %t.fdata | FileCheck %s 12 13 .text 14 .globl main 15 .type main, %function 16 .p2align 4 17main: 18# FDATA: 0 [unknown] 0 1 main 0 0 510 19 pushq %rbp 20 movq %rsp, %rbp 21 subq $0x18, %rsp 22 addq $0x18, %rsp 23 xorq %rax, %rax 24 leaveq 25 retq 26.size main, .-main 27 28 29# CHECK: skipping writing final binary 30