mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
x86: Update tst-gnu2-tls2 tests
Update tst-gnu2-tls2 tests to set XMM0...XMM7 to all 1s in malloc to verify that XMM registers are preserved when _dl_tlsdesc_dynamic is called by clearing vectors with zeroed XMM registers before _dl_tlsdesc_dynamic and using these XMM registers to clear vectors after _dl_tlsdesc_dynamic. This improves the BZ #31372 test. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include <support/xthread.h>
|
||||
#include <support/check.h>
|
||||
#include <support/test-driver.h>
|
||||
#include "tst-gnu2-tls2.h"
|
||||
#include <tst-gnu2-tls2.h>
|
||||
|
||||
#ifndef IS_SUPPORTED
|
||||
# define IS_SUPPORTED() true
|
||||
@@ -75,7 +75,7 @@ close_mod (int i)
|
||||
static void
|
||||
access_mod (int i, const char *sym)
|
||||
{
|
||||
struct tls var = { -1, -1, -1, -1 };
|
||||
struct tls var = { -4, -4, -4, -4 };
|
||||
struct tls *(*f) (struct tls *) = xdlsym (mod[i], sym);
|
||||
/* Check that our malloc is called. */
|
||||
malloc_counter = 0;
|
||||
|
Reference in New Issue
Block a user