1; RUN: llc -mtriple thumbv7-windows-coff -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-COFF 2; RUN: llc -mtriple thumbv7-elf -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-OTHER 3; RUN: llc -mtriple thumbv7-macho -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-OTHER 4 5declare i8* @f() 6declare extern_weak i8* @g(i8*) 7 8define void @test() { 9 %call = tail call i8* @f() 10 %call1 = tail call i8* @g(i8* %call) 11 ret void 12} 13 14; CHECK-COFF: movw r0, :lower16:.refptr.g 15; CHECK-COFF: movt r0, :upper16:.refptr.g 16; CHECK-COFF: ldr r4, [r0] 17; CHECK-COFF: mov r1, r4 18; CHECK-COFF: bx r1 19 20; CHECK-OTHER: bl {{_?}}g 21 22