Blame SOURCES/valgrind-3.13.0-suppress-dl-trampoline-sse-avx.patch

b895e3
commit 3c3aa1c62767c48ac8f2015df66f04f354dd897b
b895e3
Author: Mark Wielaard <mark@klomp.org>
b895e3
Date:   Tue Oct 17 17:49:26 2017 +0200
b895e3
b895e3
    Suppress _dl_runtime_resolve_avx_slow for memcheck conditional.
b895e3
    
b895e3
    glibc ld.so has an optimization when resolving a symbol that checks
b895e3
    whether or not the upper 128 bits of the ymm registers are zero. If
b895e3
    so it uses "cheaper" instructions to save/restore them using the xmm
b895e3
    registers. If those upper 128 bits contain undefined values memcheck
b895e3
    will issue an Conditional jump or move depends on uninitialised value(s)
b895e3
    warning whenever trying to resolve a symbol.
b895e3
    
b895e3
    This triggers in our sh-mem-vecxxx test cases. Suppress the warning
b895e3
    by default.
b895e3
b895e3
diff --git a/glibc-2.X.supp.in b/glibc-2.X.supp.in
b895e3
index 8edeb4a..126e8b3 100644
b895e3
--- a/glibc-2.X.supp.in
b895e3
+++ b/glibc-2.X.supp.in
b895e3
@@ -236,3 +236,15 @@
b895e3
    Memcheck:Cond
b895e3
    fun:_dl_relocate_object
b895e3
 }
b895e3
+
b895e3
+# glibc ld.so has an optimization when resolving a symbol that checks
b895e3
+# whether or not the upper 128 bits of the ymm registers are zero. If
b895e3
+# so it uses "cheaper" instructions to save/restore them using the xmm
b895e3
+# registers. If those upper 128 bits contain undefined values memcheck
b895e3
+# will issue an Conditional jump or move depends on uninitialised value(s)
b895e3
+# warning whenever trying to resolve a symbol.
b895e3
+{
b895e3
+   dl-trampoline-sse-avx
b895e3
+   Memcheck:Cond
b895e3
+   fun:_dl_runtime_resolve_avx_slow
b895e3
+}