ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/branches/FreeBSD/contrib/compiler_rt/lib/arm/floatsisfvfp.S
Revision: 5069
Committed: Sat Jul 21 14:35:28 2012 UTC (11 years, 9 months ago) by laffer1
File size: 849 byte(s)
Log Message:
Import FreeBSD version of compiler_rt.

File Contents

# Content
1 //===-- floatsisfvfp.S - Implement floatsisfvfp ---------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "../assembly.h"
11
12 //
13 // extern float __floatsisfvfp(int a);
14 //
15 // Converts single precision float to a 32-bit int rounding towards zero.
16 // Uses Darwin calling convention where a single precision result is
17 // return in a GPR..
18 //
19 .syntax unified
20 .align 2
21 DEFINE_COMPILERRT_FUNCTION(__floatsisfvfp)
22 vmov s15, r0 // move int to float register s15
23 vcvt.f32.s32 s15, s15 // convert 32-bit int in s15 to float in s15
24 vmov r0, s15 // move s15 to result register
25 bx lr

Properties

Name Value
cvs2svn:cvs-rev 1.1.1.1