Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1650621: mask the shift count when considering direct lowering of…
… i64x2.shr_s; r=jseward When lowering i64x2.shr_s, we can emit a simpler sequence if the shift count is constant and less than 32; otherwise, a bigger code sequence needs to be generated. When making this decision, the shift count wasn't masked, making it so that a negative shift count would satisfy this condition but could be greater than 32, in the immediate case. Masking the shift count solves the issue and makes it also possible to use the constant code sequence for larger shift counts. The mask value of 63 is appropriate per specification, since we're operating on an i64x2 register. Differential Revision: https://phabricator.services.mozilla.com/D82884
- Loading branch information