From 812603efb42bd87392a2fb1af282e2a1c1332ea3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 11 Jul 2020 11:16:55 +0100 Subject: [PATCH] use if syntax --- openpower/isa/fixedarith.mdwn | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openpower/isa/fixedarith.mdwn b/openpower/isa/fixedarith.mdwn index eda21e588..8f71e8b1f 100644 --- a/openpower/isa/fixedarith.mdwn +++ b/openpower/isa/fixedarith.mdwn @@ -350,8 +350,11 @@ Pseudo-code: prod[0:63] <- MULS((RA)[32:63], (RB)[32:63]) RT <- prod - overflow <- ((prod[32:64] != 0x0000_0000) & - (prod[32:64] != 0xffff_ffff)) + if ((prod[32:64] != 0x0000_0000) & + (prod[32:64] != 0xffff_ffff)) then + overflow <- 1 + else + overflow <- 0 Special Registers Altered: -- 2.30.2