1*0a6a1f1dSLionel Sambuc//===-- negsf2vfp.S - Implement negsf2vfp ---------------------------------===// 2*0a6a1f1dSLionel Sambuc// 3*0a6a1f1dSLionel Sambuc// The LLVM Compiler Infrastructure 4*0a6a1f1dSLionel Sambuc// 5*0a6a1f1dSLionel Sambuc// This file is dual licensed under the MIT and the University of Illinois Open 6*0a6a1f1dSLionel Sambuc// Source Licenses. See LICENSE.TXT for details. 7*0a6a1f1dSLionel Sambuc// 8*0a6a1f1dSLionel Sambuc//===----------------------------------------------------------------------===// 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambuc#include "../assembly.h" 11*0a6a1f1dSLionel Sambuc 12*0a6a1f1dSLionel Sambuc// 13*0a6a1f1dSLionel Sambuc// extern float __negsf2vfp(float a); 14*0a6a1f1dSLionel Sambuc// 15*0a6a1f1dSLionel Sambuc// Returns the negation of a single precision floating point numbers using the 16*0a6a1f1dSLionel Sambuc// Darwin calling convention where single arguments are passsed like 32-bit ints 17*0a6a1f1dSLionel Sambuc// 18*0a6a1f1dSLionel Sambuc .syntax unified 19*0a6a1f1dSLionel Sambuc .p2align 2 20*0a6a1f1dSLionel SambucDEFINE_COMPILERRT_FUNCTION(__negsf2vfp) 21*0a6a1f1dSLionel Sambuc eor r0, r0, #-2147483648 // flip sign bit on float in r0 22*0a6a1f1dSLionel Sambuc bx lr 23*0a6a1f1dSLionel SambucEND_COMPILERRT_FUNCTION(__negsf2vfp) 24