Path: blob/main/contrib/llvm-project/compiler-rt/lib/builtins/arm/adddf3vfp.S
35291 views
//===-- adddf3vfp.S - Implement adddf3vfp ---------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "../assembly.h"910// double __adddf3vfp(double a, double b) { return a + b; }11//12// Adds two double precision floating point numbers using the Darwin13// calling convention where double arguments are passsed in GPR pairs1415.syntax unified16.p2align 217DEFINE_COMPILERRT_FUNCTION(__adddf3vfp)18#if defined(COMPILER_RT_ARMHF_TARGET)19vadd.f64 d0, d0, d120#else21vmov d6, r0, r1 // move first param from r0/r1 pair into d622vmov d7, r2, r3 // move second param from r2/r3 pair into d723vadd.f64 d6, d6, d724vmov r0, r1, d6 // move result back to r0/r1 pair25#endif26bx lr27END_COMPILERRT_FUNCTION(__adddf3vfp)2829NO_EXEC_STACK_DIRECTIVE30313233