diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2011-02-16 15:26:08 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2011-02-16 15:26:08 +0000 |
commit | 667ac6c97025853f76a2f42ac259487249454247 (patch) | |
tree | c7e47a08a20ee3713bc4d1fb98aec20dbe6a42c1 /toolchain/gcc/patches/4.3.5/949-avr32_nan_by_zero_div.patch | |
parent | 82608a62ad5947c346f6ee438b992288177ed97b (diff) | |
download | master-31e0f0ae-667ac6c97025853f76a2f42ac259487249454247.tar.gz master-31e0f0ae-667ac6c97025853f76a2f42ac259487249454247.tar.bz2 master-31e0f0ae-667ac6c97025853f76a2f42ac259487249454247.zip |
additional avr32 fixes
SVN-Revision: 25556
Diffstat (limited to 'toolchain/gcc/patches/4.3.5/949-avr32_nan_by_zero_div.patch')
-rw-r--r-- | toolchain/gcc/patches/4.3.5/949-avr32_nan_by_zero_div.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.3.5/949-avr32_nan_by_zero_div.patch b/toolchain/gcc/patches/4.3.5/949-avr32_nan_by_zero_div.patch new file mode 100644 index 0000000000..c5f880668a --- /dev/null +++ b/toolchain/gcc/patches/4.3.5/949-avr32_nan_by_zero_div.patch @@ -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 |