1 //===-- call_apsr.h - Helpers for ARM EABI floating point tests -----------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file declares helpers for ARM EABI floating point tests for the
10 // compiler_rt library.
12 //===----------------------------------------------------------------------===//
17 #if __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
18 #error big endian support not implemented
32 extern __attribute__((pcs("aapcs")))
33 uint32_t call_apsr_f(float a
, float b
, __attribute__((pcs("aapcs"))) void (*fn
)(float, float));
35 extern __attribute__((pcs("aapcs")))
36 uint32_t call_apsr_d(double a
, double b
, __attribute__((pcs("aapcs"))) void (*fn
)(double, double));