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
6 declare extern_weak i8* @g(i8*)
8 ; weak symbol resolution occurs statically in PE/COFF, ensure that we permit
9 ; tail calls on weak externals when targeting a COFF environment.
11 %call = tail call i8* @f()
12 %call1 = tail call i8* @g(i8* %call)
17 ; CHECK-OTHER: bl {{_?}}g