Home | History | Annotate | Line # | Download | only in arm
      1      1.1  joerg //===-- adddf3vfp.S - Implement adddf3vfp ---------------------------------===//
      2      1.1  joerg //
      3      1.1  joerg //                     The LLVM Compiler Infrastructure
      4      1.1  joerg //
      5      1.1  joerg // This file is dual licensed under the MIT and the University of Illinois Open
      6      1.1  joerg // Source Licenses. See LICENSE.TXT for details.
      7      1.1  joerg //
      8      1.1  joerg //===----------------------------------------------------------------------===//
      9      1.1  joerg 
     10      1.1  joerg #include "../assembly.h"
     11      1.1  joerg 
     12      1.1  joerg //
     13      1.1  joerg // double __adddf3vfp(double a, double b) { return a + b; }
     14      1.1  joerg //
     15      1.1  joerg // Adds two double precision floating point numbers using the Darwin
     16      1.1  joerg // calling convention where double arguments are passsed in GPR pairs
     17      1.1  joerg //
     18      1.1  joerg 	.syntax unified
     19  1.1.1.2  joerg 	.p2align 2
     20      1.1  joerg DEFINE_COMPILERRT_FUNCTION(__adddf3vfp)
     21      1.1  joerg 	vmov	d6, r0, r1		// move first param from r0/r1 pair into d6
     22      1.1  joerg 	vmov	d7, r2, r3		// move second param from r2/r3 pair into d7
     23      1.1  joerg 	vadd.f64 d6, d6, d7
     24      1.1  joerg 	vmov	r0, r1, d6		// move result back to r0/r1 pair
     25      1.1  joerg 	bx	lr
     26      1.1  joerg END_COMPILERRT_FUNCTION(__adddf3vfp)
     27