1 /* { dg-do compile } */ 2 /* { dg-options "-O -fdump-tree-fre1-details" } */ 3 4 extern int posix_memalign(void **memptr, 5 __SIZE_TYPE__ alignment, __SIZE_TYPE__ size); 6 foo(float * p)7int foo (float *p) 8 { 9 int res = *p; 10 int *q; 11 void *tem; 12 if (posix_memalign (&tem, 128, 128 * sizeof (int)) != 0) 13 return 0; 14 q = (int *)tem; 15 *q = 1; 16 return res + *p; 17 } 18 19 /* We should be able to CSE the load from *p in the return stmt. */ 20 21 /* { dg-final { scan-tree-dump "Replaced \\\*p" "fre1" } } */ 22