OSDN Git Service

* config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 2006 03:00:56 +0000 (03:00 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 2006 03:00:56 +0000 (03:00 +0000)
* gcc.dg/tree-ssa/gen-vect-33.c: New.

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

gcc/ChangeLog
gcc/config/sh/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-33.c [new file with mode: 0644]

index 8583f98..baa42b2 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
+
 2006-01-24  David Daney  <ddaney@avtrex.com>
 
        PR java/25816
index 7a55b8b..26e9548 100644 (file)
 ;; the constant zero like a general register.
 
 (define_predicate "sh_register_operand"
-  (match_code "reg,subreg,const_int")
+  (match_code "reg,subreg,const_int,const_double")
 {
   if (op == CONST0_RTX (mode) && TARGET_SHMEDIA)
     return 1;
index 0ca67f0..159df24 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       * gcc.dg/tree-ssa/gen-vect-33.c: New.
+
 2006-01-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR fortran/25835
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-33.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-33.c
new file mode 100644 (file)
index 0000000..8cd12da
--- /dev/null
@@ -0,0 +1,14 @@
+/* Compiler generates 64-bit stores of zero for this on some targets.
+   Check there is no problem for such case.  */
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-vectorize" } */
+
+void
+foo (float *dest, int xcount, int  ycount)
+{
+  int x, y;
+
+  for (y = 0; y < ycount; y++)
+    for (x = 0; x < xcount; x++)
+      dest[x + y] = (float) 0;
+}