1 1.1 joerg //===-- negsf2vfp.S - Implement negsf2vfp ---------------------------------===// 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 // extern float __negsf2vfp(float a); 14 1.1 joerg // 15 1.1 joerg // Returns the negation of a single precision floating point numbers using the 16 1.1 joerg // Darwin calling convention where single arguments are passsed like 32-bit ints 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(__negsf2vfp) 21 1.1 joerg eor r0, r0, #-2147483648 // flip sign bit on float in r0 22 1.1 joerg bx lr 23 1.1 joerg END_COMPILERRT_FUNCTION(__negsf2vfp) 24