summaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/patches/4.3.5/945-avr32_fix_f64_to_f32.patch
blob: 55d50a7b6a14ba0dc7e5047c53b36f9e0c0b8790 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/gcc/config/avr32/lib1funcs.S
+++ b/gcc/config/avr32/lib1funcs.S
@@ -2866,7 +2866,7 @@ __truncdfsf_return_op1: 
         /* NaN or inf */
         cbr     r12,31                  /* clear implicit bit */
         retne   -1                      /* Return NaN if mantissa not zero */
-	mov_imm	r12, 0xff000000
+	mov_imm	r12, 0x7f800000
         ret     r12                     /* Return inf */
  
 3:      /* Result is subnormal. Adjust it.*/