diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-03-07 15:15:12 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-03-18 05:11:35 -0400 |
commit | d147428a5041adcdda2ffe02e3012c7987be3c23 (patch) | |
tree | 32f711d9024393a1fd72a6e71d3102ffc827367c /testsuite | |
parent | ac3b2e7deb0e2987ae3f27d62c03716de46ebc79 (diff) | |
download | haskell-d147428a5041adcdda2ffe02e3012c7987be3c23.tar.gz |
codeGen: Fix signedness of jump table indexing
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, as described in the included Note. Fix this in both the
PPC and X86 NCGs.
Fixes #21186.
Diffstat (limited to 'testsuite')
0 files changed, 0 insertions, 0 deletions