diff --git a/tests/checkasm/sw_ops.c b/tests/checkasm/sw_ops.c index 57fd501fa1..20b697bf25 100644 --- a/tests/checkasm/sw_ops.c +++ b/tests/checkasm/sw_ops.c @@ -426,7 +426,7 @@ static void check_pack_unpack(void) .pack = pack, }); - CHECK_RANGE(FMT("unpack_%s", pat), (1 << total) - 1, 1, num, type, type, { + CHECK_RANGE(FMT("unpack_%s", pat), UINT32_MAX >> (32 - total), 1, num, type, type, { .op = SWS_OP_UNPACK, .type = type, .pack = pack,