Skip to content

codeGen/X86: Fix signedness of jump table indexing

Ben Gamari requested to merge wip/T21186 into master

Previously while constructing the jump table index we would zero-extend the discriminant before subtracting the start of the jump-table. This goes subtly wrong in the case of a sub-word, signed discriminant. Fix this.

Fixes #21186 (closed).

Edited by Ben Gamari

Merge request reports