22 lines · plain
1; RUN: llc -mtriple=thumbv7-eabi -o - %s | FileCheck %s2 3declare ghccc void @g()4 5define ghccc void @test_direct_tail() {6; CHECK-LABEL: test_direct_tail:7; CHECK: b g8 9 tail call ghccc void @g()10 ret void11}12 13@ind_func = global ptr zeroinitializer14 15define ghccc void @test_indirect_tail() {16; CHECK-LABEL: test_indirect_tail:17; CHECK: bx {{r[0-9]+}}18 %func = load ptr, ptr @ind_func19 tail call ghccc void() %func()20 ret void21}22