switch arm, sh, and mips fenv asm from .sub system to .S files

This commit is contained in:
Rich Felker 2016-01-20 02:07:59 +00:00
parent 4b9a08f293
commit af21a82ccc
12 changed files with 21 additions and 6 deletions

View File

@ -1,3 +1,5 @@
#if __ARM_PCS_VFP
.syntax unified
.fpu vfp
@ -63,3 +65,5 @@ fesetenv:
fmxr fpscr, r3
mov r0, #0
bx lr
#endif

3
src/fenv/arm/fenv.c Normal file
View File

@ -0,0 +1,3 @@
#if !__ARM_PCS_VFP
#include "../fenv.c"
#endif

View File

@ -1 +0,0 @@
../armhf/fenv.s

View File

@ -1 +0,0 @@
fenv.s

View File

@ -1 +0,0 @@
../fenv.c

3
src/fenv/mips/fenv-sf.c Normal file
View File

@ -0,0 +1,3 @@
#ifdef __mips_soft_float
#include "../fenv.c"
#endif

View File

@ -1,3 +1,5 @@
#ifndef __mips_soft_float
.set noreorder
.global feclearexcept
@ -65,3 +67,5 @@ fesetenv:
1: ctc1 $5, $31
jr $ra
li $2, 0
#endif

View File

@ -1 +0,0 @@
../fenv.c

View File

@ -1 +0,0 @@
../fenv.c

3
src/fenv/sh/fenv-nofpu.c Normal file
View File

@ -0,0 +1,3 @@
#if !__SH_FPU_ANY__ && !__SH4__
#include "../fenv.c"
#endif

View File

@ -1,3 +1,5 @@
#if __SH_FPU_ANY__ || __SH4__
.global fegetround
.type fegetround, @function
fegetround:
@ -72,3 +74,5 @@ fesetenv:
2: lds r0, fpscr
rts
mov #0, r0
#endif

View File

@ -1 +0,0 @@
../fenv.c