Path: blob/main/contrib/llvm-project/compiler-rt/lib/builtins/arm/divdf3vfp.S
35291 views
//===-- divdf3vfp.S - Implement divdf3vfp ---------------------------------===//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//11// extern double __divdf3vfp(double a, double b);12//13// Divides two double precision floating point numbers using the Darwin14// calling convention where double arguments are passsed in GPR pairs15//16.syntax unified17.p2align 218DEFINE_COMPILERRT_FUNCTION(__divdf3vfp)19#if defined(COMPILER_RT_ARMHF_TARGET)20vdiv.f64 d0, d0, d121#else22vmov d6, r0, r1 // move first param from r0/r1 pair into d623vmov d7, r2, r3 // move second param from r2/r3 pair into d724vdiv.f64 d5, d6, d725vmov r0, r1, d5 // move result back to r0/r1 pair26#endif27bx lr28END_COMPILERRT_FUNCTION(__divdf3vfp)2930NO_EXEC_STACK_DIRECTIVE31323334