From 59347d69e81668cb7ab8b6050086c32c2478fa7c Mon Sep 17 00:00:00 2001 From: uros Date: Sat, 11 Aug 2012 13:08:16 +0000 Subject: [PATCH] * config/i386/sse.md (xop_phaddbq): Fix vec_select selectors. (xop_phaddubq): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@190315 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/sse.md | 32 ++++++++++++++++---------------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad305e7df4a..37dabefc192 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-08-11 Uros Bizjak + + * config/i386/sse.md (xop_phaddbq): Fix vec_select selectors. + (xop_phaddubq): Ditto. + 2012-08-10 Ulrich Weigand Backport from mainline diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 67d69bb5caf..c2a621774c7 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -10718,45 +10718,45 @@ (vec_select:V2QI (match_operand:V16QI 1 "nonimmediate_operand" "xm") (parallel [(const_int 0) - (const_int 4)]))) + (const_int 8)]))) (sign_extend:V2DI (vec_select:V2QI (match_dup 1) (parallel [(const_int 1) - (const_int 5)])))) + (const_int 9)])))) (plus:V2DI (sign_extend:V2DI (vec_select:V2QI (match_dup 1) (parallel [(const_int 2) - (const_int 6)]))) + (const_int 10)]))) (sign_extend:V2DI (vec_select:V2QI (match_dup 1) (parallel [(const_int 3) - (const_int 7)]))))) + (const_int 11)]))))) (plus:V2DI (plus:V2DI (sign_extend:V2DI (vec_select:V2QI (match_dup 1) - (parallel [(const_int 8) + (parallel [(const_int 4) (const_int 12)]))) (sign_extend:V2DI (vec_select:V2QI (match_dup 1) - (parallel [(const_int 9) + (parallel [(const_int 5) (const_int 13)])))) (plus:V2DI (sign_extend:V2DI (vec_select:V2QI (match_dup 1) - (parallel [(const_int 10) + (parallel [(const_int 6) (const_int 14)]))) (sign_extend:V2DI (vec_select:V2QI (match_dup 1) - (parallel [(const_int 11) + (parallel [(const_int 7) (const_int 15)])))))))] "TARGET_XOP" "vphaddbq\t{%1, %0|%0, %1}" @@ -10904,45 +10904,45 @@ (vec_select:V2QI (match_operand:V16QI 1 "nonimmediate_operand" "xm") (parallel [(const_int 0) - (const_int 4)]))) + (const_int 8)]))) (sign_extend:V2DI (vec_select:V2QI (match_dup 1) (parallel [(const_int 1) - (const_int 5)])))) + (const_int 9)])))) (plus:V2DI (zero_extend:V2DI (vec_select:V2QI (match_dup 1) (parallel [(const_int 2) - (const_int 6)]))) + (const_int 10)]))) (zero_extend:V2DI (vec_select:V2QI (match_dup 1) (parallel [(const_int 3) - (const_int 7)]))))) + (const_int 11)]))))) (plus:V2DI (plus:V2DI (zero_extend:V2DI (vec_select:V2QI (match_dup 1) - (parallel [(const_int 8) + (parallel [(const_int 4) (const_int 12)]))) (sign_extend:V2DI (vec_select:V2QI (match_dup 1) - (parallel [(const_int 9) + (parallel [(const_int 5) (const_int 13)])))) (plus:V2DI (zero_extend:V2DI (vec_select:V2QI (match_dup 1) - (parallel [(const_int 10) + (parallel [(const_int 6) (const_int 14)]))) (zero_extend:V2DI (vec_select:V2QI (match_dup 1) - (parallel [(const_int 11) + (parallel [(const_int 7) (const_int 15)])))))))] "TARGET_XOP" "vphaddubq\t{%1, %0|%0, %1}" -- 2.11.0