1 //===-- gtsf2vfp.S - Implement gtsf2vfp -----------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "../assembly.h"
13 // extern int __gtsf2vfp(float a, float b);
15 // Returns one iff a > b and neither is NaN.
16 // Uses Darwin calling convention where single precision arguments are passsed
21 DEFINE_COMPILERRT_FUNCTION(__gtsf2vfp)
22 vmov s14, r0 // move from GPR 0 to float register
23 vmov s15, r1 // move from GPR 1 to float register
26 movgt r0, #1 // set result register to 1 if equal
29 END_COMPILERRT_FUNCTION(__gtsf2vfp)