OSDN Git Service

PR target/52437
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Feb 2012 23:45:08 +0000 (23:45 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Feb 2012 23:45:08 +0000 (23:45 +0000)
* config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
alternatives, add "e" constraint to the new last alternative
and ! to last 3 alternatives.

* gcc.c-torture/compile/pr52437.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184676 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr52437.c [new file with mode: 0644]

index 1b78113..84529c2 100644 (file)
@@ -1,3 +1,11 @@
+2012-02-29  Jakub Jelinek  <jakub@redhat.com>
+           Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/52437
+       * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
+       alternatives, add "e" constraint to the new last alternative
+       and ! to last 3 alternatives.
+
 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
 
        * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
index d07069d..4afc4b3 100644 (file)
 ;; see comment above inline_secondary_memory_needed function in i386.c
 (define_insn "vec_set<mode>_0"
   [(set (match_operand:VI4F_128 0 "nonimmediate_operand"
-         "=x,x,x ,x,x,x,x  ,x  ,m,m ,m")
+         "=x,x,x ,x,x,x,x  ,x  ,m ,m   ,m")
        (vec_merge:VI4F_128
          (vec_duplicate:VI4F_128
            (match_operand:<ssescalarmode> 2 "general_operand"
-         " x,m,*r,m,x,x,*rm,*rm,x,fF,*r"))
+         " x,m,*r,m,x,x,*rm,*rm,!x,!*re,!*fF"))
          (match_operand:VI4F_128 1 "vector_move_operand"
-         " C,C,C ,C,0,x,0  ,x  ,0,0 ,0")
+         " C,C,C ,C,0,x,0  ,x  ,0 ,0   ,0")
          (const_int 1)))]
   "TARGET_SSE"
   "@
      (cond [(eq_attr "alternative" "0,6,7")
              (const_string "sselog")
            (eq_attr "alternative" "9")
-             (const_string "fmov")
-           (eq_attr "alternative" "10")
              (const_string "imov")
+           (eq_attr "alternative" "10")
+             (const_string "fmov")
           ]
           (const_string "ssemov")))
    (set_attr "prefix_extra" "*,*,*,*,*,*,1,1,*,*,*")
index 5826e28..0e52ff1 100644 (file)
@@ -1,5 +1,8 @@
 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
 
+       PR target/52437
+       * gcc.c-torture/compile/pr52437.c: New test.
+
        PR middle-end/52419
        * gcc.dg/torture/pr52419.c: New test.
 
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr52437.c b/gcc/testsuite/gcc.c-torture/compile/pr52437.c
new file mode 100644 (file)
index 0000000..1f6b1b3
--- /dev/null
@@ -0,0 +1,18 @@
+/* PR target/52437 */
+
+int f, g, i, j;
+
+void
+fn1 ()
+{
+  for (;;)
+    {
+      fn2 ();
+      j = 1;
+      for (i = 0; i <= 3; i++)
+       {
+         for (g = 1; g >= 0; g--)
+           f = 0, j &= 11;
+       }
+    }
+}