From 8379969b6ff76bdd2104b7cd961a8ec904a554dc Mon Sep 17 00:00:00 2001 From: David Given Date: Tue, 11 Sep 2018 23:16:50 +0200 Subject: [PATCH] Fix an unsubtle bug where subtractions were done backwards... --- mach/mips/mcg/table | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mach/mips/mcg/table b/mach/mips/mcg/table index f7d0b423a..43051cb4e 100644 --- a/mach/mips/mcg/table +++ b/mach/mips/mcg/table @@ -578,7 +578,7 @@ PATTERNS ALUCC(ADD.I, "addiu") out:(int)reg = SUB.I(left:(int)reg, right:(int)reg) - emit "subu %out, %right, %left" + emit "subu %out, %left, %right" cost 4; out:(int)reg = SUB.I(left:(int)reg, right:CONST.I) -- 2.34.1