mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
Merge pull request #38272 from vbashkirtsev/master
test/test_arch.cc: search "pni" in CPU flags also when detecting SSE3 Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
0da007a2f8
@ -1,7 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
git submodule update --init --recursive
|
||||
if [ -d .git ]; then
|
||||
git submodule update --init --recursive
|
||||
fi
|
||||
|
||||
: ${BUILD_DIR:=build}
|
||||
: ${CEPH_GIT_DIR:=..}
|
||||
|
@ -69,7 +69,7 @@ TEST(Arch, all)
|
||||
expected = strstr(flags, " sse4_1 ") ? 1 : 0;
|
||||
EXPECT_EQ(expected, ceph_arch_intel_sse41);
|
||||
|
||||
expected = (strstr(flags, " sse3 ") || strstr(flags, " ssse3 ")) ? 1 : 0;
|
||||
expected = (strstr(flags, " sse3 ") || strstr(flags, " ssse3 ") || strstr(flags, " pni ")) ? 1 : 0;
|
||||
EXPECT_EQ(expected, ceph_arch_intel_sse3);
|
||||
|
||||
expected = strstr(flags, " ssse3 ") ? 1 : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user