diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-04-30 12:37:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-05 12:26:41 +0100 |
commit | 478deec11f3349d61b1a922f047dc958dc07262a (patch) | |
tree | 1843907b36de2bcb8f821d49d8c9a88014ef0dc7 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0164-PR-target-48708.patch | |
parent | d42dccf886983ba14ccc868041d7bea0cf1a260e (diff) | |
download | poky-478deec11f3349d61b1a922f047dc958dc07262a.tar.gz |
gcc-4.6.0: Backport FSF 4.6 branch patches
This is set of bugfixes that has been done on
FSF gcc-4_2-branch since 4.6.0 was released
They will roll into 4.6.1 release once that
happens in coming approx 6 months time then
we can simply remove them thats the reason
so use a separate .inc file to define the
SRC_URI additions
(From OE-Core rev: b0d5b9f12adbce2c4a0df6059f5671188cd32293)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0164-PR-target-48708.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0164-PR-target-48708.patch | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0164-PR-target-48708.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0164-PR-target-48708.patch new file mode 100644 index 0000000000..4fca023011 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0164-PR-target-48708.patch | |||
@@ -0,0 +1,63 @@ | |||
1 | From ad24dcb7c07f1f9d41cb6782ea14c6c1727c4cb0 Mon Sep 17 00:00:00 2001 | ||
2 | From: uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Thu, 21 Apr 2011 20:23:55 +0000 | ||
4 | Subject: [PATCH 164/200] PR target/48708 | ||
5 | * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate | ||
6 | vec_extract and vec_concat for non-SSE4_1 targets. | ||
7 | |||
8 | testsuite/ChangeLog: | ||
9 | |||
10 | PR target/48708 | ||
11 | * gcc.target/i386/pr48708.c: New test. | ||
12 | |||
13 | |||
14 | |||
15 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172843 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
16 | |||
17 | index a524d77..6e4bb3b 100644 | ||
18 | --- a/gcc/config/i386/i386.c | ||
19 | +++ b/gcc/config/i386/i386.c | ||
20 | @@ -31213,10 +31213,19 @@ ix86_expand_vector_set (bool mmx_ok, rtx target, rtx val, int elt) | ||
21 | break; | ||
22 | |||
23 | case V2DImode: | ||
24 | - use_vec_merge = TARGET_SSE4_1; | ||
25 | + use_vec_merge = TARGET_SSE4_1 && TARGET_64BIT; | ||
26 | if (use_vec_merge) | ||
27 | break; | ||
28 | |||
29 | + tmp = gen_reg_rtx (GET_MODE_INNER (mode)); | ||
30 | + ix86_expand_vector_extract (false, tmp, target, 1 - elt); | ||
31 | + if (elt == 0) | ||
32 | + tmp = gen_rtx_VEC_CONCAT (mode, tmp, val); | ||
33 | + else | ||
34 | + tmp = gen_rtx_VEC_CONCAT (mode, val, tmp); | ||
35 | + emit_insn (gen_rtx_SET (VOIDmode, target, tmp)); | ||
36 | + return; | ||
37 | + | ||
38 | case V2DFmode: | ||
39 | { | ||
40 | rtx op0, op1; | ||
41 | new file mode 100644 | ||
42 | index 0000000..355c2b2 | ||
43 | --- /dev/null | ||
44 | +++ b/gcc/testsuite/gcc.target/i386/pr48708.c | ||
45 | @@ -0,0 +1,15 @@ | ||
46 | +/* { dg-do compile } */ | ||
47 | +/* { dg-options "-O2 -msse2" } */ | ||
48 | + | ||
49 | +#include <emmintrin.h> | ||
50 | + | ||
51 | +typedef long long T __attribute__((may_alias)); | ||
52 | +struct S { __m128i d; }; | ||
53 | + | ||
54 | +__m128i | ||
55 | +foo (long long *x, struct S *y, __m128i *z) | ||
56 | +{ | ||
57 | + struct S s = *y; | ||
58 | + ((T *) &s.d)[0] = *x; | ||
59 | + return _mm_cmpeq_epi16 (s.d, *z); | ||
60 | +} | ||
61 | -- | ||
62 | 1.7.0.4 | ||
63 | |||