[ConstantRange] Test 1 bit ranges in exhaustive tests (NFC)
authorNikita Popov <npopov@redhat.com>
Mon, 9 Jan 2023 15:51:43 +0000 (16:51 +0100)
committerNikita Popov <npopov@redhat.com>
Mon, 9 Jan 2023 15:57:08 +0000 (16:57 +0100)
commitbd66251864acea7a0ffdce58f34bd78c30e014ad
treefaeeb9aa59cd46d7a5161ae0dd8e255f582307ae
parent70ab8e8ad99e41bf242804461a72b178f8a72261
[ConstantRange] Test 1 bit ranges in exhaustive tests (NFC)

There have been multiple cases where range calculations were wrong
in the 1 bit case. Make sure we catch these by not specifying the
bit width explicitly, and letting the test framework pick it (which
will now always test 1 and 4 bits both).
llvm/unittests/IR/ConstantRangeTest.cpp