re PR tree-optimization/32231 (Segfault in verify_ssa_name)
2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com> PR tree-opt/32231 * tree-vect-transform.c (vectorizable_call): Call update_stmt after changing the right hand side of the assignment. 2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com> PR tree-opt/32231 * gcc.target/i386/vectorize4.c: New test. From-SVN: r125521
This commit is contained in:
parent
08835e64d3
commit
1344284efa
4 changed files with 28 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
|
||||
|
||||
PR tree-opt/32231
|
||||
* tree-vect-transform.c (vectorizable_call): Call update_stmt
|
||||
after changing the right hand side of the assignment.
|
||||
|
||||
2007-06-06 Eric Christopher <echristo@apple.com>
|
||||
|
||||
* config.gcc (i?86-*-darwin*): Remove arch parameter.
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
|
||||
|
||||
PR tree-opt/32231
|
||||
* gcc.target/i386/vectorize4.c: New test.
|
||||
|
||||
2007-06-06 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
* gfortran.dg/integer_exponentiation_3.F90: Use approx. check.
|
||||
|
|
16
gcc/testsuite/gcc.target/i386/vectorize4.c
Normal file
16
gcc/testsuite/gcc.target/i386/vectorize4.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target ilp32 } */
|
||||
/* { dg-options "-O2 -ffast-math -ftree-vectorize -msse2 --param ggc-min-expand=0 --param ggc-min-heapsize=0" } */
|
||||
/* This test, tests two thing, we vectorize square root and also we don't crash due to a GC issue. */
|
||||
|
||||
|
||||
extern double sqrt (double __x);
|
||||
calc_freq (int *dest)
|
||||
{
|
||||
float tmp_out[257];
|
||||
int i;
|
||||
for (i = 0; i < 256; i++)
|
||||
dest[i] = sqrt (tmp_out[i]);
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler "sqrtpd" } } */
|
|
@ -1926,6 +1926,7 @@ vectorizable_call (tree stmt, block_stmt_iterator *bsi, tree *vec_stmt)
|
|||
harmless. */
|
||||
type = TREE_TYPE (scalar_dest);
|
||||
GIMPLE_STMT_OPERAND (stmt, 1) = fold_convert (type, integer_zero_node);
|
||||
update_stmt (stmt);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue