Skip to content

Commit 121e43c

Browse files
committed
benchdnn: reorder: correct the mask bit check
1 parent 1898952 commit 121e43c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/benchdnn/reorder/reorder_aux.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ void prb_t::get_compensation_parameters(
103103
dims_t &comp_dims, int &mask, flag_bit_t flag) const {
104104
if (is_reorder_with_compensation(flag)) {
105105
for (const auto &i_oflag : oflag) {
106-
if (i_oflag.first != flag) continue;
106+
const bool has_flag_bit = (i_oflag.first & flag);
107+
if (!has_flag_bit) continue;
107108

108109
mask = i_oflag.second;
109110
for (int d = 0; d < ndims; ++d)

0 commit comments

Comments
 (0)