ref: cb8eac54ed990ae351b4d670b83e17316809e0f0
parent: 3da35f028f4ff5ca619f9b00d549e1b534568223
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Oct 5 21:49:15 EDT 2013
5l: apply richard millers 5l-incfloat patch (from sources)
Generate correct ARM vfp code for x++ where x is single precision float.
Example test program (link with '5l -f'): void _main() { float x; x++;}
--- a/sys/src/cmd/5l/obj.c
+++ b/sys/src/cmd/5l/obj.c
@@ -998,6 +998,11 @@
}
goto casedef;
+ case AMOVDF:
+ if(!vfp || p->from.type != D_FCONST)
+ goto casedef;
+ p->as = AMOVF;
+ /* fall through */
case AMOVF:
if(skip)
goto casedef;
--
⑨