git: 9front

Download patch

ref: 465341d7ea530b75a3ad7d2029b638f89a5c9dce
parent: 84f4e992e0978ec6c739c6f244f31c449d4c62de
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;
--