--HG--
branch : dtrg-videocore
pop GPR0+GPR6+GPR16+GPRFP:wo, GPRPC:wo.
push GPR0+GPR6+GPR16+GPRFP+GPRLR:ro.
push GPR0+GPR6+GPR16+GPRFP:ro, GPRLR:ro.
+ rsb GPR:rw, GPR+CONST:ro.
sub GPR:wo, GPR:ro, CONST+GPR:ro.
sub GPR:rw, GPR+CONST:ro.
st GPR:ro, GPRINC:rw.
gen
divu %a, %2, %1
mul %a, %1
- sub %a, %2
+ rsb %a, %2
yields %a
pat rmi $1==QUAD /* Remainder signed word (second % top) */
gen
divs %a, %2, %1
mul %a, %1
- sub %a, %2
+ rsb %a, %2
yields %a
pat ngi $1==QUAD /* Negate word */