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-ELF 3 ; RUN: llc -mtriple thumbv7-macho -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-MACHO 4 5 declare i8* @f() 6 declare extern_weak i8* @g(i8*) 7 8 ; weak symbol resolution occurs statically in PE/COFF, ensure that we permit 9 ; tail calls on weak externals when targeting a COFF environment. 10 define void @test() { 11 %call = tail call i8* @f() 12 %call1 = tail call i8* @g(i8* %call) 13 ret void 14 } 15 16 ; CHECK-COFF: b g 17 ; CHECK-ELF: bl g 18 ; CHECK-MACHO: blx _g 19 20