diff options
Diffstat (limited to 'tests/bits/bitrev_test.c')
-rw-r--r-- | tests/bits/bitrev_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/bits/bitrev_test.c b/tests/bits/bitrev_test.c index 08f08278..b96241c5 100644 --- a/tests/bits/bitrev_test.c +++ b/tests/bits/bitrev_test.c @@ -297,7 +297,9 @@ int main(int argc, char **argv) sh_chk(in1, ARRAY_SIZE(in1), offs, true); sh_chk(in1, ARRAY_SIZE(in1), offs, false); sh_chk(in2, ARRAY_SIZE(in2), offs, true); - sh_chk(in2, ARRAY_SIZE(in2), offs, false); + /* in2 is too short to shift left 12 nibbles */ + if (offs < 12) + sh_chk(in2, ARRAY_SIZE(in2), offs, false); } return 0; } |