Fix write asm

This commit is contained in:
Chunmyong Park
2020-06-19 12:57:22 +00:00
parent 4c12d47939
commit f4611c6eef
2 changed files with 2 additions and 7 deletions

View File

@@ -208,7 +208,7 @@ impl WriteString for RType {
Self::Sub(data_size) => format!("sub{}", data_size.write_string()),
Self::Sll(data_size) => format!("sll{}", data_size.write_string()),
Self::Srl(data_size) => format!("srl{}", data_size.write_string()),
Self::Sra(data_size) => format!("srl{}", data_size.write_string()),
Self::Sra(data_size) => format!("sra{}", data_size.write_string()),
Self::Mul(data_size) => format!("mul{}", data_size.write_string()),
Self::Div {
data_size,

View File

@@ -216,12 +216,7 @@ pub fn test_opt<P1: AsRef<Path>, P2: AsRef<Path>, O: Optimize<ir::TranslationUni
pub fn test_asmgen(path: &Path) {
// TODO: delete ignore list in the future
let ignore_list = vec![
"examples/asmgen/struct.ir",
"examples/asmgen/struct2.ir",
"examples/asmgen/struct3.ir",
"examples/asmgen/temp2.ir",
];
let ignore_list = vec!["examples/asmgen/struct3.ir"];
if ignore_list.contains(&path.to_str().expect("`path` must be transformed to `&str`")) {
println!("skip test");
return;