pico-sdk/test/pico_float_test/llvm/call_apsr.S
graham sanderson 26653ea81e Initial Release
2021-01-20 10:44:27 -06:00

39 lines
807 B
ArmAsm

//===-- call_apsr.S - Helpers for ARM EABI floating point tests -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements helpers for ARM EABI floating point tests for the
// compiler_rt library.
//
//===-
.syntax unified
.cpu cortex-m0plus
.thumb
.align 2
.global call_apsr_f
.type call_apsr_f,%function
.thumb_func
call_apsr_f:
push {lr}
blx r2
mrs r0, apsr
pop {pc}
.global call_apsr_d
.type call_apsr_d,%function
.thumb_func
call_apsr_d:
push {r4, lr}
ldr r4, [sp, #8]
blx r4
mrs r0, apsr
pop {r4, pc}