Skip to content

Commit

Permalink
Merge #2967
Browse files Browse the repository at this point in the history
2967: Fix singlepass on  arm64 that was trying to emit a sub opcode with a constant as destination (for #2959) r=epilys a=ptitSeb

# Description

Fix singlepass/machine_arm64 that was trying to emit a sub opcode with a constant as destination (for #2959)

Co-authored-by: ptitSeb <[email protected]>
  • Loading branch information
bors[bot] and ptitSeb authored Jun 22, 2022
2 parents 06a8833 + 0a4ec43 commit 6093af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler-singlepass/src/machine_arm64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1017,8 +1017,8 @@ impl MachineARM64 {
self.assembler.emit_sub(
Size::S64,
Location::GPR(tmp_bound),
Location::GPR(tmp_bound),
Location::Imm32(value_size as _),
Location::GPR(tmp_bound),
)?;
} else {
let tmp2 = self.acquire_temp_gpr().ok_or(CodegenError {
Expand Down

0 comments on commit 6093af4

Please sign in to comment.