Fix an unsubtle bug where subtractions were done backwards...

This commit is contained in:
David Given 2018-09-11 23:16:50 +02:00
parent 8230ec42ac
commit 8379969b6f

View 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)