r274889 - in /trunk/gcc/testsuite: ChangeLog gc...

segher@gcc.gnu.org segher@gcc.gnu.org
Fri Aug 23 22:19:00 GMT 2019


Author: segher
Date: Fri Aug 23 22:19:40 2019
New Revision: 274889

URL: https://gcc.gnu.org/viewcvs?rev=274889&root=gcc&view=rev
Log:
rs6000: New darn testcase (PR91481)

We used to implement darn with unspecs, not unspec_volatiles, which
means two darn instructions could be CSEd together.

This testcase tests it by adding together four random numbers.  If all
is well that means we get four darn instructions, because such a small
loop is unrolled fine at -O2 already.  If things go bad, combine will
combine it all to one darn and a shift left by two.


gcc/testsuite/
	PR target/91481
	* gcc.target/powerpc/darn-3.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.target/powerpc/darn-3.c
Modified:
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list