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 x86_64-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 .globl main15 .type main, %function16 .size main, .Lend-main17main:18 je 1f19 retq20 jmp main211:22 movl $0x2, %ebx23 retq24.Lend:25