diff options
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/fix_linaro_106872.patch')
-rw-r--r-- | toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/fix_linaro_106872.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/fix_linaro_106872.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/fix_linaro_106872.patch deleted file mode 100644 index ef33afff70..0000000000 --- a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/fix_linaro_106872.patch +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | Index: gcc-4_6-branch/gcc/config/arm/arm.c | ||
2 | =================================================================== | ||
3 | --- gcc-4_6-branch.orig/gcc/config/arm/arm.c 2012-03-05 17:14:09.901129286 -0800 | ||
4 | +++ gcc-4_6-branch/gcc/config/arm/arm.c 2012-03-05 17:18:23.061141606 -0800 | ||
5 | @@ -17525,6 +17525,13 @@ | ||
6 | } | ||
7 | return; | ||
8 | |||
9 | + case 'v': | ||
10 | + { | ||
11 | + gcc_assert (GET_CODE (x) == CONST_DOUBLE); | ||
12 | + fprintf (stream, "#%d", vfp3_const_double_for_fract_bits (x)); | ||
13 | + return; | ||
14 | + } | ||
15 | + | ||
16 | /* Register specifier for vld1.16/vst1.16. Translate the S register | ||
17 | number into a D register number and element index. */ | ||
18 | case 'z': | ||
19 | @@ -24925,4 +24932,26 @@ | ||
20 | return 4; | ||
21 | } | ||
22 | |||
23 | +int | ||
24 | +vfp3_const_double_for_fract_bits (rtx operand) | ||
25 | +{ | ||
26 | + REAL_VALUE_TYPE r0; | ||
27 | + | ||
28 | + if (GET_CODE (operand) != CONST_DOUBLE) | ||
29 | + return 0; | ||
30 | + | ||
31 | + REAL_VALUE_FROM_CONST_DOUBLE (r0, operand); | ||
32 | + if (exact_real_inverse (DFmode, &r0)) | ||
33 | + { | ||
34 | + if (exact_real_truncate (DFmode, &r0)) | ||
35 | + { | ||
36 | + HOST_WIDE_INT value = real_to_integer (&r0); | ||
37 | + value = value & 0xffffffff; | ||
38 | + if ((value != 0) && ( (value & (value - 1)) == 0)) | ||
39 | + return int_log2 (value); | ||
40 | + } | ||
41 | + } | ||
42 | + return 0; | ||
43 | +} | ||
44 | + | ||
45 | #include "gt-arm.h" | ||