37 lines · plain
1# REQUIRES: system-linux2 3# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \4# RUN: %s -o %t.o5# RUN: link_fdata %s %t.o %t.fdata6# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q7# RUN: llvm-bolt %t.exe --data %t.fdata --print-finalized \8# RUN: -o %t.out --three-way-branch | FileCheck %s9# RUN: %t.exe10# RUN: %t.out11 12# FDATA: 1 main 8 1 main a 0 2213# FDATA: 1 main 8 1 main #.BB1# 0 5014# FDATA: 1 main 12 1 main 14 0 3015# FDATA: 1 main 12 1 main #.BB2# 0 4016# CHECK: Successors: .Ltmp1 (mispreds: 0, count: 40), .Ltmp0 (mispreds: 0, count: 52)17# CHECK: Successors: .LFT0 (mispreds: 0, count: 22), .LFT1 (mispreds: 0, count: 30)18 19 .text20 .globl main21 .type main, %function22 .size main, .Lend-main23main:24 mov $0x0, %eax25 cmp $0x1, %eax26 jge .BB127 mov $0xf, %eax28 xor %eax, %eax29 retq30.BB1:31 jg .BB232 retq33.BB2:34 mov $0x7, %eax35 retq36.Lend:37