From: Jacob Lifshay Date: Thu, 28 May 2020 06:33:32 +0000 (-0700) Subject: working on instruction model X-Git-Tag: v0.2.0~48 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=620e5f73d03ff45cc1e05b1844b9a3921ad0d6a1;p=power-instruction-analyzer.git working on instruction model --- diff --git a/src/instr_models.rs b/src/instr_models.rs index 0890f45..0c6c76a 100644 --- a/src/instr_models.rs +++ b/src/instr_models.rs @@ -135,10 +135,11 @@ pub fn divweuo(inputs: TestDivInput) -> TestDivResult { let resultu64 = dividend / divisor; if resultu64 > u64::from(u32::max_value()) { result = 0; + overflow = true; } else { result = resultu64 as u32 as u64; + overflow = false; } - overflow = false; } TestDivResult { result,