Skip to content
Snippets Groups Projects
Commit 1724ac37 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

nativeGen/x86: Don't encode large shift offsets

Handle the case of a shift larger than the width of the shifted value.
This is necessary since x86 applies a mask of 0x1f to the shift amount,
meaning that, e.g., `shr 47, $eax` will actually shift by
47 & 0x1f == 15.

See #20626.

(cherry picked from commit 31370f1a)
parent d3c7f9be
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment