1 //===-- gtsf2vfp.S - Implement gtsf2vfp -----------------------------------===//
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 __gtsf2vfp(float a, float b);
14 // Returns one iff a > b and neither is NaN.
15 // Uses Darwin calling convention where single precision arguments are passsed
20 DEFINE_COMPILERRT_FUNCTION(__gtsf2vfp)
21 #if defined(COMPILER_RT_ARMHF_TARGET)
24 vmov s14, r0 // move from GPR 0 to float register
25 vmov s15, r1 // move from GPR 1 to float register
30 movgt r0, #1 // set result register to 1 if equal
33 END_COMPILERRT_FUNCTION(__gtsf2vfp)
35 NO_EXEC_STACK_DIRECTIVE