brintos

brintos / llvm-project-archived public Read only

0
0
Text · 625 B · 5cb1701 Raw
32 lines · plain
1# This test checks that remove double jumps pass works properly with2# non-local branches.3 4# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o5# RUN: %clang %cflags -nostartfiles -nodefaultlibs %t.o -o %t.exe -Wl,-q6# RUN: llvm-bolt %t.exe -o %t.bolt --peepholes=double-jumps7 8  .text9  .align 410  .global dummy111  .type dummy1, %function12dummy1:13  mov x2, x014  ret15  .size dummy1, .-dummy116 17  .global dummy218  .type dummy2, %function19dummy2:20  mov x1, x021  ret22  .size dummy2, .-dummy223 24  .global _start25  .type _start, %function26_start:27  cbz  x10, 1f28  b dummy1291:30  b dummy231  .size _start, .-_start32