Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improv. load & store, impl. lea #326

Merged
merged 5 commits into from
Aug 19, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix warnings
  • Loading branch information
flanfly committed Aug 19, 2017
commit f37a1bd714a3eb7baafc56321f441855618a2e70
9 changes: 6 additions & 3 deletions core/src/il.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
//! # }
//! ```

use {CallTarget,Result};
use Result;
use quickcheck::{Arbitrary, Gen};
use serde::{Serialize,Deserialize};

Expand Down Expand Up @@ -397,9 +397,12 @@ impl Display for Guard {
}
}

/// Endianess of a memory operation.
#[derive(Debug,Clone,Copy,PartialEq,Eq,Serialize,Deserialize)]
pub enum Endianess {
/// Least significant byte first
Little,
/// Most significant byte first
Big,
}

Expand Down Expand Up @@ -569,7 +572,7 @@ impl Statement {
}
}

&Statement{ op: Operation::Initialize(ref a,ref sz), ref assignee } => {
&Statement{ op: Operation::Initialize(_,ref sz), ref assignee } => {
if !(assignee.size() == None || assignee.size() == Some(*sz)) {
return Err("Operation result and assingnee sizes mismatch".into())
} else {
Expand Down Expand Up @@ -597,7 +600,7 @@ impl Statement {
}
}

&Statement{ op: Operation::Store(_,_,sz,ref pnt,ref val), ref assignee } => {
&Statement{ op: Operation::Store(_,_,sz,_,ref val), ref assignee } => {
if val.size().is_some() && assignee.size().is_some() && val.size() != assignee.size() {
return Err("Memory store value with inconsitend size".into());
} else if sz == 0 {
Expand Down