brintos

brintos / llvm-project-archived public Read only

0
0
Text · 564 B · c882df0 Raw
27 lines · plain
1// RUN: llvm-mc -triple riscv64 -filetype=obj -o %t.o %s2// RUN: ld.lld -q -o %t %t.o3// RUN: llvm-bolt --print-cfg --print-only=_start -o %t.null %t \4// RUN:    | FileCheck %s5 6  .data7  .globl d8  .p2align 39d:10  .dword 011 12// CHECK-LABEL: Binary Function "_start" after building cfg {13// CHECK:      lui t0, %hi(d)14// CHECK-NEXT: ld t0, %lo(d)(t0)15// CHECK-NEXT: lui t0, %hi(d)16// CHECK-NEXT: sd t0, %lo(d)(t0)17  .text18  .globl _start19  .p2align 120_start:21  lui t0, %hi(d)22  ld t0, %lo(d)(t0)23  lui t0, %hi(d)24  sd t0, %lo(d)(t0)25  ret26  .size _start, .-_start27