[v6,2/6] LoongArch: Add support for LA32 in sysdeps/loongarch/fpu
Checks
| Context |
Check |
Description |
| redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
| linaro-tcwg-bot/tcwg_glibc_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_glibc_check--master-arm |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 |
success
|
Test passed
|
Commit Message
Move the loongarch64 implementation to sysdeps/loongarch/lp64/fpu.
---
sysdeps/loongarch/fpu/math-use-builtins-llrint.h | 2 +-
sysdeps/loongarch/fpu/math-use-builtins-logb.h | 2 +-
sysdeps/loongarch/fpu/math-use-builtins-lrint.h | 2 +-
sysdeps/loongarch/fpu/math-use-builtins-rint.h | 2 +-
sysdeps/loongarch/fpu/math-use-builtins-sqrt.h | 10 ++++++++--
sysdeps/loongarch/lp64/fpu/Implies | 1 +
sysdeps/loongarch/{ => lp64}/fpu/e_scalb.c | 0
sysdeps/loongarch/{ => lp64}/fpu/e_scalbf.c | 0
sysdeps/loongarch/{ => lp64}/fpu/s_scalbn.c | 0
sysdeps/loongarch/{ => lp64}/fpu/s_scalbnf.c | 0
sysdeps/loongarch/{ => lp64}/fpu/w_ilogb-impl.h | 0
sysdeps/loongarch/{ => lp64}/fpu/w_ilogbf-impl.h | 0
12 files changed, 13 insertions(+), 6 deletions(-)
create mode 100644 sysdeps/loongarch/lp64/fpu/Implies
rename sysdeps/loongarch/{ => lp64}/fpu/e_scalb.c (100%)
rename sysdeps/loongarch/{ => lp64}/fpu/e_scalbf.c (100%)
rename sysdeps/loongarch/{ => lp64}/fpu/s_scalbn.c (100%)
rename sysdeps/loongarch/{ => lp64}/fpu/s_scalbnf.c (100%)
rename sysdeps/loongarch/{ => lp64}/fpu/w_ilogb-impl.h (100%)
rename sysdeps/loongarch/{ => lp64}/fpu/w_ilogbf-impl.h (100%)
@@ -1,4 +1,4 @@
-#if __GNUC_PREREQ (13, 0)
+#if __GNUC_PREREQ (13, 0) && __loongarch_grlen == 64
# define USE_LLRINT_BUILTIN 1
# define USE_LLRINTF_BUILTIN 1
#else
@@ -1,4 +1,4 @@
-#if __GNUC_PREREQ (13, 0)
+#if __GNUC_PREREQ (13, 0) && __loongarch_grlen == 64
# define USE_LOGB_BUILTIN 1
# define USE_LOGBF_BUILTIN 1
#else
@@ -1,4 +1,4 @@
-#if __GNUC_PREREQ (13, 0)
+#if __GNUC_PREREQ (13, 0) && __loongarch_grlen == 64
# define USE_LRINT_BUILTIN 1
# define USE_LRINTF_BUILTIN 1
#else
@@ -1,4 +1,4 @@
-#if __GNUC_PREREQ (13, 0)
+#if __GNUC_PREREQ (13, 0) && __loongarch_grlen == 64
# define USE_RINT_BUILTIN 1
# define USE_RINTF_BUILTIN 1
#else
@@ -1,4 +1,10 @@
-#define USE_SQRT_BUILTIN 1
-#define USE_SQRTF_BUILTIN 1
+#if __loongarch_grlen == 64
+ #define USE_SQRT_BUILTIN 1
+ #define USE_SQRTF_BUILTIN 1
+#else
+ #define USE_SQRT_BUILTIN 0
+ #define USE_SQRTF_BUILTIN 0
+#endif
+
#define USE_SQRTL_BUILTIN 0
#define USE_SQRTF128_BUILTIN 0
new file mode 100644
@@ -0,0 +1 @@
+loongarch/lp64/fpu
similarity index 100%
rename from sysdeps/loongarch/fpu/e_scalb.c
rename to sysdeps/loongarch/lp64/fpu/e_scalb.c
similarity index 100%
rename from sysdeps/loongarch/fpu/e_scalbf.c
rename to sysdeps/loongarch/lp64/fpu/e_scalbf.c
similarity index 100%
rename from sysdeps/loongarch/fpu/s_scalbn.c
rename to sysdeps/loongarch/lp64/fpu/s_scalbn.c
similarity index 100%
rename from sysdeps/loongarch/fpu/s_scalbnf.c
rename to sysdeps/loongarch/lp64/fpu/s_scalbnf.c
similarity index 100%
rename from sysdeps/loongarch/fpu/w_ilogb-impl.h
rename to sysdeps/loongarch/lp64/fpu/w_ilogb-impl.h
similarity index 100%
rename from sysdeps/loongarch/fpu/w_ilogbf-impl.h
rename to sysdeps/loongarch/lp64/fpu/w_ilogbf-impl.h