From dc0aceae66b013c8ae16eabc3427767a72b37638 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 6 Feb 2018 15:53:53 -0800 Subject: Work around lack of .tfloat in clang assembler --- sysdeps/x86_64/fpu/s_log1pl.S | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sysdeps/x86_64/fpu/s_log1pl.S b/sysdeps/x86_64/fpu/s_log1pl.S index 947e5e4552..5fe18c60e4 100644 --- a/sysdeps/x86_64/fpu/s_log1pl.S +++ b/sysdeps/x86_64/fpu/s_log1pl.S @@ -17,7 +17,13 @@ RCSID("$NetBSD: s_log1p.S,v 1.7 1995/05/09 00:10:58 jtc Exp $") -1 + sqrt(2) / 2 <= x <= 1 - sqrt(2) / 2 0.29 is a safe value. */ +#if defined(__clang__) +/* Necessary in the absence of a .tfloat directive in the assembler. */ +limit: + .byte 0xe1, 0x7a, 0x14, 0xae, 0x47, 0xe1, 0x7a, 0x94, 0xfd, 0x3f +#else limit: .tfloat 0.29 +#endif /* Please note: we use a double value here. Since 1.0 has an exact representation this does not effect the accuracy but it helps to optimize the code. */ -- cgit 1.4.1