From baa2d1cd7685aa533ccec29cf5921774874bdef7 Mon Sep 17 00:00:00 2001 From: Pat Haugen Date: Fri, 3 Feb 2017 14:20:30 +0000 Subject: [PATCH] re PR rtl-optimization/78241 (wrong code with -funroll-loops) PR rtl-optimization/78241 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter', but emit initial peel copy if niter expr is not reliable. From-SVN: r245152 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/powerpc/pr70669.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ddcc87e86eb..94aecd58c1e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-02-03 Pat Haugen + + PR target/79158 + * gcc.target/powerpc/pr70669.c: Use 'r' in an expression to force back + to VSX reg. + 2017-02-02 Jan Hubicka * gcc.dg/tree-ssa/ssa-ifcombine-1.c: Check for no profile mismatches. diff --git a/gcc/testsuite/gcc.target/powerpc/pr70669.c b/gcc/testsuite/gcc.target/powerpc/pr70669.c index 8054102ee50..8692d7f71ef 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr70669.c +++ b/gcc/testsuite/gcc.target/powerpc/pr70669.c @@ -13,7 +13,7 @@ void foo (TYPE *p, TYPE *q) #ifndef NO_ASM __asm__ (" # %0" : "+r" (r)); #endif - *p = r; + *p = r + r; } /* { dg-final { scan-assembler "mfvsrd" } } */ -- 2.30.2