Skip to content

Commit ed5a168

Browse files
authored
Merge pull request TrustworthyComputing#1 from bzp99/fix-srl
Minor fix of SRL zMIPS instruction type
2 parents fdde532 + 7932ec8 commit ed5a168

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/twc/zerojavacompiler/kanga2zmips/Kanga2zMIPS.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public String visit(Operator n) throws Exception {
381381
String[] retValue = {
382382
"slt", "sle", "seq", "sne", // comparison
383383
"add", "sub", "mult", "div", "mod", // arithmetic
384-
"and", "or", "xor", "sll", "slr" // bitwise
384+
"and", "or", "xor", "sll", "srl" // bitwise
385385
};
386386
return retValue[n.f0.which];
387387
}
@@ -481,4 +481,4 @@ public String visit(Label n) throws Exception {
481481
return n.f0.toString();
482482
}
483483

484-
}
484+
}

0 commit comments

Comments
 (0)