This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/21236] NaN generation by optimized math functions


https://sourceware.org/bugzilla/show_bug.cgi?id=21236

--- Comment #5 from Charles Schwieters <charles at schwieters dot org> ---
Correct. This patch gets rid of the bad behavior:

diff --git a/sysdeps/x86_64/dl-trampoline.h b/sysdeps/x86_64/dl-trampoline.h
index b27fa06974..73c9003006 100644
--- a/sysdeps/x86_64/dl-trampoline.h
+++ b/sysdeps/x86_64/dl-trampoline.h
@@ -66,16 +66,7 @@
        .align 16
 _dl_runtime_resolve_avx_slow:
        cfi_startproc
-       cfi_adjust_cfa_offset(16) # Incorporate PLT
-       vorpd %ymm0, %ymm1, %ymm8
-       vorpd %ymm2, %ymm3, %ymm9
-       vorpd %ymm4, %ymm5, %ymm10
-       vorpd %ymm6, %ymm7, %ymm11
-       vorpd %ymm8, %ymm9, %ymm9
-       vorpd %ymm10, %ymm11, %ymm10
-       vpcmpeqd %xmm8, %xmm8, %xmm8
-       vorpd %ymm9, %ymm10, %ymm10
-       vptest %ymm10, %ymm8
+       jmp _dl_runtime_resolve_avx
        # Preserve %ymm0 - %ymm7 registers if the upper 128 bits of any
        # %ymm0 - %ymm7 registers aren't zero.
        PRESERVE_BND_REGS_PREFIX

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]