Skip to content

Commit

Permalink
fixup! Be somewhat clearer about upper bits in the codegen.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltratt committed Jan 21, 2025
1 parent af8b6ac commit 0d413ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ykrt/src/compile/jitc_yk/codegen/x64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,9 @@ impl<'a> Assemble<'a> {
}

/// When we're about to make a call, we need to clear upper bits in registers.
///
/// This function clears those bits in a manner that is compatible with the SysV ABI. Note:
/// we're a little bit OTT here, and we could do less work if we become more clever about it.
fn clear_bits_for_call(&mut self, gp_cnstrs: &[RegConstraint<Rq>]) {
for gp_cnstr in gp_cnstrs {
match gp_cnstr {
Expand Down

0 comments on commit 0d413ba

Please sign in to comment.