• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
8; weak symbol resolution occurs statically in PE/COFF, ensure that we permit
9; tail calls on weak externals when targeting a COFF environment.
10define 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-OTHER: bl {{_?}}g
18
19