1//===-- call_apsr.S - Helpers for ARM EABI floating point tests -----------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 10// This file implements helpers for ARM EABI floating point tests for the 11// compiler_rt library. 12// 13//===- 14 15#include "pico/asm_helper.S" 16 17pico_default_asm_setup 18 19.align 2 20 21.global call_apsr_f 22.type call_apsr_f,%function 23.thumb_func 24call_apsr_f: 25 push {lr} 26 blx r2 27 mrs r0, apsr 28 pop {pc} 29 30.global call_apsr_d 31.type call_apsr_d,%function 32.thumb_func 33call_apsr_d: 34 push {r4, lr} 35 ldr r4, [sp, #8] 36 blx r4 37 mrs r0, apsr 38 pop {r4, pc} 39