24 lines · plain
1// RUN: %clang %cflags -o %t %s2// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \3// RUN: | FileCheck %s4 5 .data6 .globl d7 .p2align 38d:9 .dword 010 11 .text12 .globl _start13 .p2align 114// CHECK: Binary Function "_start" after building cfg {15_start:16 nop // Here to not make the _start and .Ltmp0 symbols coincide17// CHECK: auipc t0, %pcrel_hi(__BOLT_got_zero+{{[0-9]+}}) # Label: .Ltmp018// CHECK-NEXT: ld t0, %pcrel_lo(.Ltmp0)(t0)191:20 auipc t0, %got_pcrel_hi(d)21 ld t0, %pcrel_lo(1b)(t0)22 ret23 .size _start, .-_start24