Fix an unsubtle bug where subtractions were done backwards...
authorDavid Given <dg@cowlark.com>
Tue, 11 Sep 2018 21:16:50 +0000 (23:16 +0200)
committerDavid Given <dg@cowlark.com>
Tue, 11 Sep 2018 21:16:50 +0000 (23:16 +0200)
mach/mips/mcg/table

index f7d0b42..43051cb 100644 (file)
@@ -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)