Skip to content

Commit

Permalink
MIPS/CLO: clo now implemented and requires 3 constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems committed Apr 23, 2024
1 parent 6f28319 commit 8f374c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions optimism/src/mips/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ fn test_mips_number_constraints() {
for instr in Instruction::iter().flat_map(|x| x.into_iter()) {
match instr {
RType(rtype) => match rtype {
JumpRegister | SyscallExitGroup | Sync | CountLeadingOnes => {
assert_num_constraints(&instr, 0)
}
JumpRegister | SyscallExitGroup | Sync => assert_num_constraints(&instr, 0),
ShiftLeftLogical
| ShiftRightLogical
| ShiftRightArithmetic
Expand All @@ -64,6 +62,7 @@ fn test_mips_number_constraints() {
| SetLessThan
| SetLessThanUnsigned
| MultiplyToRegister
| CountLeadingOnes
| CountLeadingZeros => assert_num_constraints(&instr, 3),
MoveZero | MoveNonZero => assert_num_constraints(&instr, 5),
SyscallReadOther | SyscallWriteHint | SyscallWriteOther | Multiply
Expand Down

0 comments on commit 8f374c6

Please sign in to comment.