Skip to content

Commit

Permalink
Merge pull request #3654 from wasmerio/fix_add_more_ror_emiter_arm64
Browse files Browse the repository at this point in the history
[SINGLEPASS] Add more ROR emitter to ARM64 backend (for #3647)
  • Loading branch information
syrusakbary authored Mar 8, 2023
2 parents 4059e66 + fd613ad commit b7ea014
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/compiler-singlepass/src/emitter_arm64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1954,6 +1954,16 @@ impl EmitterARM64 for Assembler {
}
dynasm!(self ; ror X(dst), X(src1), imm);
}
(Size::S64, Location::GPR(src1), Location::Imm64(imm), Location::GPR(dst))
| (Size::S64, Location::Imm64(imm), Location::GPR(src1), Location::GPR(dst)) => {
let src1 = src1.into_index() as u32;
let imm = imm as u32;
let dst = dst.into_index() as u32;
if imm == 0 || imm > 63 {
codegen_error!("singlepass ROR with incompatible imm {}", imm);
}
dynasm!(self ; ror X(dst), X(src1), imm);
}
(Size::S32, Location::GPR(src1), Location::Imm32(imm), Location::GPR(dst))
| (Size::S32, Location::Imm32(imm), Location::GPR(src1), Location::GPR(dst)) => {
let src1 = src1.into_index() as u32;
Expand Down

0 comments on commit b7ea014

Please sign in to comment.