blob: cc6ffcf9f61c5b0fd542199f66b6b53089d87195 [file] [log] [blame]
; RUN: llc -mtriple thumbv7-windows-coff -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-COFF
; RUN: llc -mtriple thumbv7-elf -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-OTHER
; RUN: llc -mtriple thumbv7-macho -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-OTHER
declare ptr @f()
declare extern_weak ptr @g(ptr)
define void @test() {
%call = tail call ptr @f()
%call1 = tail call ptr @g(ptr %call)
ret void
}
; CHECK-COFF: movw r0, :lower16:.refptr.g
; CHECK-COFF: movt r0, :upper16:.refptr.g
; CHECK-COFF: ldr r4, [r0]
; CHECK-COFF: mov r1, r4
; CHECK-COFF: bx r1
; CHECK-OTHER: bl {{_?}}g