From 83b556a101b7ed490acf9e127c5b4b9db40e1019 Mon Sep 17 00:00:00 2001 From: Léo Gourdin Date: Tue, 30 Mar 2021 11:25:28 +0200 Subject: Now a more general way to perform imm operations --- riscV/NeedOp.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'riscV/NeedOp.v') diff --git a/riscV/NeedOp.v b/riscV/NeedOp.v index cfadea37..715951a0 100644 --- a/riscV/NeedOp.v +++ b/riscV/NeedOp.v @@ -87,6 +87,7 @@ Definition needs_of_operation (op: operation) (nv: nval): list nval := | Ointofsingle | Ointuofsingle | Osingleofint | Osingleofintu => op1 (default nv) | Olongofsingle | Olonguofsingle | Osingleoflong | Osingleoflongu => op1 (default nv) | Ocmp c => needs_of_condition c + | OEimmR0 _ => op1 (default nv) | OEseqw _ => op2 (default nv) | OEsnew _ => op2 (default nv) | OEsequw _ => op2 (default nv) @@ -98,7 +99,6 @@ Definition needs_of_operation (op: operation) (nv: nval): list nval := | OExoriw _ => op1 (bitwise nv) | OEluiw _ => op1 (default nv) | OEaddiw _ => op1 (default nv) - | OEaddiwr0 _ => op1 (default nv) | OEandiw n => op1 (andimm nv n) | OEoriw n => op1 (orimm nv n) | OEseql _ => op2 (default nv) @@ -112,7 +112,6 @@ Definition needs_of_operation (op: operation) (nv: nval): list nval := | OExoril _ => op1 (default nv) | OEluil _ => op1 (default nv) | OEaddil _ => op1 (default nv) - | OEaddilr0 _ => op1 (default nv) | OEandil _ => op1 (default nv) | OEoril _ => op1 (default nv) | OEloadli _ => op1 (default nv) -- cgit