25 lines · plain
1## This test checks that the unreachable unconditional branch is removed2## if it is located after return instruction.3 4# REQUIRES: system-linux5 6# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \7# RUN: %s -o %t.o8# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q9# RUN: llvm-bolt %t.exe -o %t.bolt | FileCheck %s10 11# CHECK: UCE removed 1 blocks12 13 .text14 .align 415 .global main16 .type main, %function17main:18 b.eq 1f19 ret20 b main211:22 mov x1, #123 ret24 .size main, .-main25