summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorManuel Mohr <manuelmohr@gmail.com>2020-05-21 16:24:51 +0200
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2021-03-04 16:02:23 +0100
commitc93b5172a556fefc0fa071199dbed90fcc8b2bff (patch)
tree8f56a653f05d9684dca8b15fd4312edf67279579
parent6dabd82983e8a42960484880c88f194346830d30 (diff)
Recognize quad precision floats as used on AArch64.
-rw-r--r--ir/tv/fltcalc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c
index dafdffc..02c1e5e 100644
--- a/ir/tv/fltcalc.c
+++ b/ir/tv/fltcalc.c
@@ -1074,6 +1074,9 @@ void init_fltcalc(unsigned precision)
#elif LDBL_MANT_DIG == 53
assert(sizeof(long double) == 8);
long_double_desc = (float_descriptor_t) { 11, 52, 0 };
+#elif LDBL_MANT_DIG == 113
+ assert(sizeof(long double) == 16);
+ long_double_desc = (float_descriptor_t) { 15, 112, 0 };
#else
#error "Unsupported long double format"
#endif