brintos

brintos / llvm-project-archived public Read only

0
0
Text · 480 B · 55ba1fe Raw
14 lines · plain
1## Check that we don't fail processing a function with conditional tail call and2## a fall-through to a next function (result of builtin_unreachable()).3 4RUN: %clang %cflags %p/Inputs/ctc_and_unreachable.s -o %t.exe -Wl,-q5RUN: llvm-bolt %t.exe -o %t --print-after-lowering --print-only=foo 2>&1 | FileCheck %s6 7CHECK: Binary Function "foo"8CHECK:  cmpq $0x1, %rdi9CHECK:  je bar # TAILCALL10CHECK:  retq11CHECK:  cmpq	$0x1, %rdi12CHECK:  jmp	.Ltmp[[#]]13CHECK: End of Function "foo"14