Commit 81bdfc1e by Segher Boessenkool Committed by Segher Boessenkool

testcase for 2-2 combine


gcc/testsuite/
	PR rtl-optimization/85160
	* gcc.target/powerpc/combine-2-2.c: New testcase.

From-SVN: r263072
parent fd5d8593
2018-07-30 Segher Boessenkool <segher@kernel.crashing.org>
PR rtl-optimization/85160
* gcc.target/powerpc/combine-2-2.c: New testcase.
2018-07-27 Martin Sebor <msebor@redhat.com> 2018-07-27 Martin Sebor <msebor@redhat.com>
PR tree-optimization/86696 PR tree-optimization/86696
......
/* { dg-options "-O2" } */
/* PR85160 */
/* Originally, the "x >> 14" are CSEd away (eventually becoming a srawi
instruction), and the two ANDs remain separate instructions because
combine cannot deal with this.
Now that combine knows how to combine two RTL insns into two, it manages
to make this just the sum of two rlwinm instructions. */
int f(int x)
{
return ((x >> 14) & 6) + ((x >> 14) & 4);
}
/* { dg-final { scan-assembler-not {\msrawi\M} } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment