Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / ARM / ghc-tcreturn-lowered.ll
blob46729730898cf6e83e3fe491432353842979d17f
1 ; RUN: llc -mtriple=thumbv7-eabi -o - %s | FileCheck %s
3 declare ghccc void @g()
5 define ghccc void @test_direct_tail() {
6 ; CHECK-LABEL: test_direct_tail:
7 ; CHECK: b g
9   tail call ghccc void @g()
10   ret void
13 @ind_func = global ptr zeroinitializer
15 define ghccc void @test_indirect_tail() {
16 ; CHECK-LABEL: test_indirect_tail:
17 ; CHECK: bx {{r[0-9]+}}
18   %func = load ptr, ptr @ind_func
19   tail call ghccc void() %func()
20   ret void