[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / bolt / test / X86 / jmp-after-ret.s
blob5e4af99a737d66b405614691fb34e3742ff41121
1 ## This test checks that the unreachable unconditional branch is removed
2 ## if it is located after return instruction.
4 # REQUIRES: system-linux
6 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
7 # RUN: %s -o %t.o
8 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
9 # RUN: llvm-bolt %t.exe -o %t.bolt | FileCheck %s
11 # CHECK: UCE removed 1 blocks
13 .text
14 .globl main
15 .type main, %function
16 .size main, .Lend-main
17 main:
18 je 1f
19 retq
20 jmp main
22 movl $0x2, %ebx
23 retq
24 .Lend: