Skip to content

Commit

Permalink
Merge pull request ceph#38272 from vbashkirtsev/master
Browse files Browse the repository at this point in the history
test/test_arch.cc: search "pni" in CPU flags also when detecting SSE3

Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Jan 9, 2021
2 parents b5fd5b5 + b951696 commit 0da007a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion do_cmake.sh
Original file line number Diff line number Diff line change
@@ -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:=..}
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_arch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0da007a

Please sign in to comment.