bolt/deps/llvm-18.1.8/llvm/test/CodeGen/ARM/tail-call-weak.ll

22 lines
634 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; 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