blob: b20760b535bed7c71efdc7dd3e0a1d98a9248e35 [file]
; REQUIRES: arm-registered-target
; Make sure that codegen flags work to change the set of libcalls
; RUN: opt -S -passes=declare-runtime-libcalls -mtriple=arm-none-eabi -float-abi=hard -exception-model=sjlj < %s | FileCheck %s
; Depends on -exception-model
; CHECK: declare arm_aapcs_vfpcc void @_Unwind_SjLj_Register(...)
; CHECK: declare arm_aapcs_vfpcc void @_Unwind_SjLj_Resume(...)
; CHECK: declare arm_aapcs_vfpcc void @_Unwind_SjLj_Unregister(...)
; Calling convention depends on -float-abi
; CHECK: declare arm_aapcs_vfpcc void @__addtf3(...)
; memclr functions depend on -meabi
; CHECK: declare arm_aapcscc void @__aeabi_memclr(...)
; CHECK: declare arm_aapcscc void @__aeabi_memclr4(...)
; CHECK: declare arm_aapcscc void @__aeabi_memclr8(...)