summaryrefslogtreecommitdiff
path: root/toolchain/gcc/patches/4.3.5/945-avr32_fix_f64_to_f32.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2010-11-04 14:17:06 +0000
committerImre Kaloz <kaloz@openwrt.org>2010-11-04 14:17:06 +0000
commit54dea0c74f09b73d4143956bce1fbed54cc3ca4d (patch)
tree38cef5e9ffbcbf0e4e979789d4e3246e6e2707e3 /toolchain/gcc/patches/4.3.5/945-avr32_fix_f64_to_f32.patch
parentedcbafc836ac407e57f42dc7e984657aa9125fe4 (diff)
downloadmtk-20170518-54dea0c74f09b73d4143956bce1fbed54cc3ca4d.zip
mtk-20170518-54dea0c74f09b73d4143956bce1fbed54cc3ca4d.tar.gz
mtk-20170518-54dea0c74f09b73d4143956bce1fbed54cc3ca4d.tar.bz2
add avr32 support to gcc 4.3.5
SVN-Revision: 23865
Diffstat (limited to 'toolchain/gcc/patches/4.3.5/945-avr32_fix_f64_to_f32.patch')
-rw-r--r--toolchain/gcc/patches/4.3.5/945-avr32_fix_f64_to_f32.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.3.5/945-avr32_fix_f64_to_f32.patch b/toolchain/gcc/patches/4.3.5/945-avr32_fix_f64_to_f32.patch
new file mode 100644
index 0000000..55d50a7
--- /dev/null
+++ b/toolchain/gcc/patches/4.3.5/945-avr32_fix_f64_to_f32.patch
@@ -0,0 +1,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.*/