fix another ARM ieee754 asm bug

Nicolas Pitre nico@cam.org
Mon Nov 1 04:39:00 GMT 2004


Another (hopefully the last) bug with DImode conversion routines.
This one has apparently never been tested given the needed fix (my bad).

2004-10-31  Nicolas Pitre <nico@cam.org>

	* config/arm/ieee754-sf.S (floatdisf): Fix regression with 
	values smaller than 2^32.

Index: gcc/config/arm/ieee754-sf.S
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/ieee754-sf.S,v
retrieving revision 1.7
diff -u -r1.7 ieee754-sf.S
--- gcc/config/arm/ieee754-sf.S	21 Oct 2004 04:22:01 -0000	1.7
+++ gcc/config/arm/ieee754-sf.S	1 Nov 2004 04:35:19 -0000
@@ -333,6 +333,8 @@
 
 	movs	ip, ah
 	moveq	ip, al
+	moveq	ah, al
+	moveq	al, #0
 
 	@ Add initial exponent to sign
 	orr	r3, r3, #((127 + 23 + 32) << 23)



More information about the Gcc-patches mailing list