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 ptr @g(ptr)
9 %call = tail call ptr @f()
10 %call1 = tail call ptr @g(ptr %call)
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
20 ; CHECK-OTHER: bl {{_?}}g