1 ; RUN: llc -mtriple thumbv7--windows-itanium -filetype asm -o - %s | FileCheck %s
3 declare void @llvm.trap()
4 declare arm_aapcs_vfpcc zeroext i1 @g()
6 define arm_aapcs_vfpcc i8* @f() {
8 %call = tail call arm_aapcs_vfpcc zeroext i1 @g()
9 br i1 %call, label %if.then, label %if.end
12 ret i8* bitcast (i1 ()* @g to i8*)
15 tail call void @llvm.trap()
19 ; CHECK: push.w {r11, lr}
21 ; CHECK: movw [[REG:r[0-9]+]], :lower16:g
22 ; CHECK: movt [[REG]], :upper16:g
23 ; CHECK: pop.w {r11, pc}