summaryrefslogtreecommitdiffstats
path: root/tests/bits
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bits')
-rw-r--r--tests/bits/bitrev_test.c5
-rw-r--r--tests/bits/bitrev_test.ok2
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/bits/bitrev_test.c b/tests/bits/bitrev_test.c
index ed3939a3..4a3c1b47 100644
--- a/tests/bits/bitrev_test.c
+++ b/tests/bits/bitrev_test.c
@@ -299,10 +299,11 @@ int main(int argc, char **argv)
for (offs = 0; offs < 13; offs++) {
sh_chk(in1, ARRAY_SIZE(in1), offs, true);
sh_chk(in1, ARRAY_SIZE(in1), offs, false);
- sh_chk(in2, ARRAY_SIZE(in2), offs, true);
/* in2 is too short to shift left 12 nibbles */
- if (offs < 12)
+ if (offs < 12) {
+ sh_chk(in2, ARRAY_SIZE(in2), offs, true);
sh_chk(in2, ARRAY_SIZE(in2), offs, false);
+ }
}
return 0;
}
diff --git a/tests/bits/bitrev_test.ok b/tests/bits/bitrev_test.ok
index d2fb12ce..580fb634 100644
--- a/tests/bits/bitrev_test.ok
+++ b/tests/bits/bitrev_test.ok
@@ -154,5 +154,3 @@ running nibble tests...
OUT: 0f00dcafedea
[8] L IN: f00dcafedeadbeef, nibble 12:
OUT: 00dcafedeadb
-[6] R IN: b00bbabeface, nibble 12:
- OUT: 0b00bbabefac