------- Comment #1 from borntraeger at de dot ibm dot com 2010-05-20 08:29 -------
Indeed. I think I found a typo when handling array prefetches. a potential fix might be: --- gcc/tree-ssa-loop-prefetch.c (Revision 159557) +++ gcc/tree-ssa-loop-prefetch.c (Arbeitskopie) @@ -440,7 +440,7 @@ *ar_data->step = fold_build2 (MULT_EXPR, sizetype, fold_convert (sizetype, *ar_data->step), - fold_convert (sizetype, step)); + fold_convert (sizetype, stepsize)); idelta *= imult; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44203