- int64_t Extended = 0;
- if (SBitWidth == 1)
- // For sign extension from bool, we must extend the source bits.
- Extended = 0 - (Src.Int1Val & 1);
- else if (SBitWidth <= 8)
- Extended = (int64_t) (int8_t)Src.Int8Val;
+
+ // Normalize to a 64-bit value.
+ uint64_t Normalized = 0;
+ if (SBitWidth <= 8)
+ Normalized = Src.Int8Val;