Relax constraints a bit to compile on aarch64.

This commit is contained in:
losfair
2019-09-15 18:23:42 +08:00
parent d3227f830c
commit 9b77677e4b
4 changed files with 110 additions and 84 deletions

View File

@ -1,5 +1,5 @@
use dynasmrt::{x64::Assembler, AssemblyOffset, DynamicLabel, DynasmApi, DynasmLabelApi};
pub use wasmer_runtime_core::state::x64::{GPR, XMM};
pub use wasmer_runtime_core::state::x64_decl::{GPR, XMM};
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
pub enum Location {
@ -170,6 +170,13 @@ pub trait Emitter {
fn emit_bkpt(&mut self);
}
fn _dummy(a: &mut Assembler) {
dynasm!(
self
; .arch x64
);
}
macro_rules! unop_gpr {
($ins:ident, $assembler:tt, $sz:expr, $loc:expr, $otherwise:block) => {
match ($sz, $loc) {