-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP][OSPP] Add a new test flamework for libcxx-simd #46
[WIP][OSPP] Add a new test flamework for libcxx-simd #46
Conversation
4dce80a
to
0844b9f
Compare
2fbe12d
to
0379b9a
Compare
ff0421f
to
cbf199e
Compare
aab830f
to
0425f8e
Compare
fb13482
to
0404b17
Compare
fe68822
to
ab85e2d
Compare
ac6c9dc
to
2efd2f3
Compare
69add33
to
181dc48
Compare
458dd38
to
9bc59c6
Compare
* need recheck split and concat
…-project into simd_for_upstream
ca03182
to
e126af6
Compare
libcxx/.clang-format
Outdated
@@ -85,4 +85,4 @@ ReflowComments: false | |||
IndentPPDirectives: AfterHash | |||
|
|||
# libc++ has some long names so we need more than the 80 column limit imposed by LLVM style, for sensible formatting | |||
ColumnLimit: 120 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why, but there seems to be an unwanted diff here
sub_simd_mask[i] = static_cast<bool>(i); | ||
} | ||
} | ||
auto res = ex::concat<_Tp, SimdAbi, _Np>(arr); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
libcxx/test/std/experimental/simd/simd.nonmembers/simd_alg.pass.cpp
Outdated
Show resolved
Hide resolved
libcxx/test/std/experimental/simd/simd.nonmembers/simd_binary.pass.cpp
Outdated
Show resolved
Hide resolved
libcxx/test/std/experimental/simd/simd.nonmembers/simd_binary.pass.cpp
Outdated
Show resolved
Hide resolved
if constexpr (!std::is_floating_point_v<_Tp>) // ex::reduce has not finish? | ||
{ | ||
const ex::simd<_Tp, SimdAbi> simd_([](_Tp i) { return i; }); | ||
auto reduce_result = ex::reduce(ex::where(simd_ > 0, simd_), std::multiplies<>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing two types of reduce function check for multiplies, bit_and, bit_or, bit_xor.
libcxx/test/std/experimental/simd/simd.nonmembers/simd_reductions.pass.cpp
Outdated
Show resolved
Hide resolved
Please check all the tests to ensure:
|
* (static )simd cast * concat split * simd mask binary * simd mask where * simd reduction * simd unary
Co-authored-by: melonedo <[email protected]>
This pr is a draft pr, I will push the latest progress in this pr.
Any review for code or typos is welcome.
Reference: https://summer-ospp.ac.cn/#/org/prodetail/228d90280