LibWasm: Implement SIMD bitwise operations

This commit is contained in:
Diego 2024-07-10 13:42:46 -07:00 committed by Ali Mohammad Pur
commit 625fbc8085
Notes: sideshowbarker 2024-07-17 11:06:06 +09:00
2 changed files with 29 additions and 3 deletions

View file

@ -96,6 +96,20 @@ struct BitShiftRight {
static StringView name() { return ">>"sv; }
};
struct BitAndNot {
template<typename Lhs, typename Rhs>
auto operator()(Lhs lhs, Rhs rhs) const { return lhs & ~rhs; }
static StringView name() { return "andnot"sv; }
};
struct BitNot {
template<typename Lhs>
auto operator()(Lhs lhs) const { return ~lhs; }
static StringView name() { return "~"sv; }
};
struct BitRotateLeft {
template<typename Lhs, typename Rhs>
auto operator()(Lhs lhs, Rhs rhs) const