OSDN Git Service

* config/i386/sse.md (xop_phaddbq): Fix vec_select selectors.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Aug 2012 13:08:16 +0000 (13:08 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Aug 2012 13:08:16 +0000 (13:08 +0000)
(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
gcc/config/i386/sse.md

index ad305e7..37dabef 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/sse.md (xop_phaddbq):  Fix vec_select selectors.
+       (xop_phaddubq): Ditto.
+
 2012-08-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
        Backport from mainline
index 67d69bb..c2a6217 100644 (file)
            (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}"
            (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}"