1 ; RUN: llc -mtriple=thumbv7-eabi -o - %s | FileCheck %s 2 3 declare ghccc void @g() 4 5 define ghccc void @test_direct_tail() { 6 ; CHECK-LABEL: test_direct_tail: 7 ; CHECK: b g 8 9 tail call ghccc void @g() 10 ret void 11 } 12 13 @ind_func = global void()* zeroinitializer 14 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() 20 ret void 21 } 22