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:
9 tail call ghccc void @g()
13 @ind_func = global void()* zeroinitializer
15 define ghccc void @test_indirect_tail() {
16 ; CHECK-LABEL: test_indirect_tail:
17 ; CHECK: bx {{r[0-9]+}}
18 %func = load void()*, void()** @ind_func
19 tail call ghccc void() %func()