brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 80e69f2 Raw
34 lines · plain
1//===-- subsf3vfp.S - Implement subsf3vfp ---------------------------------===//2//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-exception6//7//===----------------------------------------------------------------------===//8 9#include "../assembly.h"10 11//12// extern float __subsf3vfp(float a, float b);13//14// Returns the difference between two single precision floating point numbers15// using the Darwin calling convention where single arguments are passsed16// like 32-bit ints.17//18	.syntax unified19	.p2align 220DEFINE_COMPILERRT_FUNCTION(__subsf3vfp)21#if defined(COMPILER_RT_ARMHF_TARGET)22	vsub.f32 s0, s0, s123#else24	vmov	s14, r0		// move first param from r0 into float register25	vmov	s15, r1		// move second param from r1 into float register26	vsub.f32 s14, s14, s1527	vmov	r0, s14		// move result back to r028#endif29	bx	lr30END_COMPILERRT_FUNCTION(__subsf3vfp)31 32NO_EXEC_STACK_DIRECTIVE33 34