projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
527c89c
)
x86-64: Update tst-glibc-hwcaps-2.c for x86-64 baseline
author
H.J. Lu
<hjl.tools@gmail.com>
Thu, 21 Jan 2021 19:57:27 +0000
(11:57 -0800)
committer
H.J. Lu
<hjl.tools@gmail.com>
Fri, 22 Jan 2021 17:37:44 +0000
(09:37 -0800)
Return EXIT_FAILURE only if the level 2 libx86-64-isa-level.so is used
on x86-64 baseline machine.
sysdeps/unix/sysv/linux/x86_64/tst-glibc-hwcaps-2.c
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/x86_64/tst-glibc-hwcaps-2.c
b/sysdeps/unix/sysv/linux/x86_64/tst-glibc-hwcaps-2.c
index
2d8f7ec
..
b223420
100644
(file)
--- a/
sysdeps/unix/sysv/linux/x86_64/tst-glibc-hwcaps-2.c
+++ b/
sysdeps/unix/sysv/linux/x86_64/tst-glibc-hwcaps-2.c
@@
-51,7
+51,7
@@
do_test (void)
case 2:
/* The default libx86-64-isa-level.so is used. */
printf ("The default shared library is used.\n");
- if (has_isa_v3 || has_isa_v4 ||
!has_isa_v2
)
+ if (has_isa_v3 || has_isa_v4 ||
(!has_isa_v2 && level == 2)
)
ret = EXIT_FAILURE;
else
ret = EXIT_SUCCESS;