predicates.md (sh_register_operand): Accept CONST_DOUBLE.
* config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE. * gcc.dg/tree-ssa/gen-vect-33.c: New. From-SVN: r110203
This commit is contained in:
parent
6e69121fb0
commit
ac42ec79e0
4 changed files with 23 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -614,7 +614,7 @@
|
|||
;; 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;
|
||||
|
|
|
@ -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
|
||||
|
|
14
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-33.c
Normal file
14
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-33.c
Normal file
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue