1 //===-- nedf2vfp.S - Implement nedf2vfp -----------------------------------===//
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"
11 // extern double __nedf2vfp(double a, double b);
13 // Returns zero if a and b are unequal and neither is NaN.
14 // Uses Darwin calling convention where double precision arguments are passsed
19 DEFINE_COMPILERRT_FUNCTION(__nedf2vfp)
20 #if defined(COMPILER_RT_ARMHF_TARGET)
23 vmov d6, r0, r1 // load r0/r1 pair in double register
24 vmov d7, r2, r3 // load r2/r3 pair in double register
29 movne r0, #1 // set result register to 0 if unequal
32 END_COMPILERRT_FUNCTION(__nedf2vfp)
34 NO_EXEC_STACK_DIRECTIVE