brintos

brintos / llvm-project-archived public Read only

0
0
Text · 674 B · 2109f91 Raw
35 lines · plain
1// This test checks that BOLT does not split remember and restore CFI states2// into different lists, which would cause an assertion failure.3 4# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o5# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q6# RUN: llvm-bolt %t.exe -o %t.bolt 2>&1 | FileCheck %s7 8# CHECK: BOLT-INFO: Starting stub-insertion pass9 10.text11.global main12.type main, %function13 14main:15.cfi_startproc16.cfi_remember_state17  mov	w0, wzr18  b.ne .L119.L0:20  mov	w0, wzr21.L1:22  cmp	x0, #023  b.lt .L224.L2:25  nop26  .cfi_restore_state27  mov	x8, xzr28  b.ls .L029  ret30.cfi_endproc31    .size main, .-main32 33## Force relocation mode.34  .reloc 0, R_AARCH64_NONE35