new file: src/ch2/linkedlist.rs

modified:   .gitignore
	modified:   src/ch2/linkedlist.rs
	modified:   src/ch2/mod.rs
This commit is contained in:
wangfiox 2024-06-11 18:50:41 +08:00
parent c3214191ff
commit afed4d2856
1 changed files with 10 additions and 0 deletions

10
src/ch2/linkedlist.rs Normal file
View File

@ -0,0 +1,10 @@
pub mod tests {
use compiler::backend::{AddInst, Block, BranchInst, BranchOp, Inst, JmpInst, MvInst, REG_A0, REG_A1, REG_A2, REG_RA, REG_S0, REG_S1, REG_S2, REG_SP, SdInst};
#[test]
pub fn linked() {
// createLinkedList
let mut entry = Block::new("entry".into());
let addispsp_16 = Inst::Add(AddInst::new(REG_SP.into(), REG_SP.into()))
}
}