Internals: Minor cleanup of case statement lowering

- Factor out match mask construction
- Rename V3Number method to reflect behaviour
This commit is contained in:
Geza Lore
2026-06-17 14:39:06 +01:00
parent b581f73843
commit f11c4084d1
5 changed files with 32 additions and 29 deletions
+1 -1
View File
@@ -1310,7 +1310,7 @@ uint32_t V3Number::mostSetBitP1() const {
}
//======================================================================
V3Number& V3Number::opBitsNonX(const V3Number& lhs) { // 0/1->1, X/Z->0
V3Number& V3Number::opBitsNonXZ(const V3Number& lhs) { // 0/1->1, X/Z->0
// Correct number of zero bits/width matters
// op i, L(lhs) bit return
NUM_ASSERT_OP_ARGS1(lhs);