Merge remote-tracking branch 'origin/trunk' into builtins-in-roc

This commit is contained in:
Folkert 2022-03-23 17:33:58 +01:00
commit 877b9eab7a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 67 additions and 13 deletions

View file

@ -6668,12 +6668,12 @@ fn build_int_binop<'a, 'ctx, 'env>(
}
NumShiftRightBy => {
// NOTE arguments are flipped;
bd.build_right_shift(rhs, lhs, false, "int_shift_right")
bd.build_right_shift(rhs, lhs, true, "int_shift_right")
.into()
}
NumShiftRightZfBy => {
// NOTE arguments are flipped;
bd.build_right_shift(rhs, lhs, true, "int_shift_right_zf")
bd.build_right_shift(rhs, lhs, false, "int_shift_right_zf")
.into()
}