Add support for address-aligned-mode
This commit is contained in:
@@ -22,39 +22,44 @@ pub enum Instruction {
|
||||
src0: File,
|
||||
src1: File,
|
||||
dst: File,
|
||||
aam: bool,
|
||||
},
|
||||
MUL {
|
||||
src0: File,
|
||||
src1: File,
|
||||
dst: File,
|
||||
aam: bool,
|
||||
},
|
||||
MAC {
|
||||
src0: File,
|
||||
src1: File,
|
||||
src2: File,
|
||||
dst: File,
|
||||
aam: bool,
|
||||
},
|
||||
MAD {
|
||||
src0: File,
|
||||
src1: File,
|
||||
src2: File,
|
||||
dst: File,
|
||||
aam: bool,
|
||||
},
|
||||
}
|
||||
|
||||
impl Instruction {
|
||||
pub fn supported_source(&self, src: File) -> bool {
|
||||
true
|
||||
todo!()
|
||||
}
|
||||
|
||||
pub fn supported_destination(&self, src: File) -> bool {
|
||||
true
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum File {
|
||||
Grf { index: u8 },
|
||||
GrfA { index: u8 },
|
||||
GrfB { index: u8 },
|
||||
SrfM { index: u8 },
|
||||
SrfA { index: u8 },
|
||||
Bank,
|
||||
|
||||
Reference in New Issue
Block a user