source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/tail-call-weak.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 650 bytes
Line 
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
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-ELF: bl g
18; CHECK-MACHO: blx _g
19
Note: See TracBrowser for help on using the repository browser.