1 //===-- unorddf2vfp.S - Implement unorddf2vfp ------------------------------===//
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 #include "../assembly.h"
12 // extern int __unorddf2vfp(double a, double b);
14 // Returns one iff a or b is NaN
15 // Uses Darwin calling convention where double precision arguments are passsed
20 DEFINE_COMPILERRT_FUNCTION(__unorddf2vfp)
21 #if defined(COMPILER_RT_ARMHF_TARGET)
24 vmov d6, r0, r1 // load r0/r1 pair in double register
25 vmov d7, r2, r3 // load r2/r3 pair in double register
30 movvs r0, #1 // set result register to 1 if "overflow" (any NaNs)
33 END_COMPILERRT_FUNCTION(__unorddf2vfp)
35 NO_EXEC_STACK_DIRECTIVE