mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[toolchain/gcc/4.3.5]: additional avr32 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25556 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
15
toolchain/gcc/patches/4.3.5/949-avr32_nan_by_zero_div.patch
Normal file
15
toolchain/gcc/patches/4.3.5/949-avr32_nan_by_zero_div.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
--- a/gcc/config/avr32/lib1funcs.S
|
||||
+++ b/gcc/config/avr32/lib1funcs.S
|
||||
@@ -1852,7 +1852,11 @@ __avr32_f64_div_res_subnormal:/* Divide
|
||||
mov r10, 0
|
||||
ldm sp++, r0, r1, r2, r3, r4, r5, r6, r7,pc
|
||||
|
||||
-17: /* Return INF. */
|
||||
+17:
|
||||
+ /* Check if op1 is zero. */
|
||||
+ or r4, r10, r11
|
||||
+ breq __avr32_f64_div_op1_zero
|
||||
+ /* Return INF. */
|
||||
mov r11, lr /*Get correct sign*/
|
||||
andh r11, 0x8000, COH
|
||||
orh r11, 0x7ff0
|
||||
Reference in New Issue
Block a user