forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f4a9e1
commit 6556587
Showing
13 changed files
with
548 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
//! Defines x64 instructions using the DSL. | ||
mod and; | ||
mod shld; | ||
|
||
use crate::dsl::Inst; | ||
|
||
#[must_use] | ||
pub fn list() -> Vec<Inst> { | ||
and::list() | ||
let mut ret = Vec::new(); | ||
ret.extend(and::list()); | ||
ret.extend(shld::list()); | ||
ret | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use crate::dsl::{fmt, inst, r, rex, rw}; | ||
use crate::dsl::{Feature::*, Inst, LegacyPrefix::*, Location::*}; | ||
|
||
pub fn list() -> Vec<Inst> { | ||
let mri = rex(0xA4).escape(0x0F).ib(); | ||
let mrc = rex(0xA5).escape(0x0F).ib(); | ||
vec![ | ||
inst("shldw", fmt("MRI", [rw(rm16), r(r16), r(imm8)]), mri.prefix(_66), _64b | compat), | ||
inst("shldw", fmt("MRC", [rw(rm16), r(r16), r(cl)]), mrc.prefix(_66), _64b | compat), | ||
inst("shldl", fmt("MRI", [rw(rm32), r(r32), r(imm8)]), mri, _64b | compat), | ||
inst("shldq", fmt("MRI", [rw(rm64), r(r64), r(imm8)]), mri.w(), _64b), | ||
inst("shldl", fmt("MRC", [rw(rm32), r(r32), r(cl)]), mrc, _64b | compat), | ||
inst("shldq", fmt("MRC", [rw(rm64), r(r64), r(cl)]), mrc.w(), _64b), | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.