re PR tree-optimization/80520 (Performance regression from missing if-conversion)

PR tree-optimization/80520
	* gcc.dg/tree-ssa/split-path-11.c (foo): Make the test ilp32 target
	clean.

From-SVN: r267031
This commit is contained in:
Jakub Jelinek 2018-12-11 21:28:35 +01:00 committed by Jakub Jelinek
parent 3c393a2c01
commit 3c0517a653
2 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2018-12-11 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/80520
* gcc.dg/tree-ssa/split-path-11.c (foo): Make the test ilp32 target
clean.
2018-12-11 Marek Polacek <polacek@redhat.com>
PR c++/86608 - reading constexpr volatile variable.

View file

@ -1,13 +1,13 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fsplit-paths -fdump-tree-split-paths-details -w" } */
void foo(unsigned long *M)
void foo(unsigned long long *M)
{
for (unsigned long k = 0; k < 227; ++k)
for (unsigned long long k = 0; k < 227; ++k)
{
unsigned long y =
((M[k] & 0xffffffff80000000) | (M[k + 1] & 0x7fffffff));
M[k] = (M[k + 397] ^ (y >> 1) ^ ((y & 1) ? 2567483615 : 0));
unsigned long long y =
((M[k] & 0xffffffff80000000ULL) | (M[k + 1] & 0x7fffffffULL));
M[k] = (M[k + 397] ^ (y >> 1) ^ ((y & 1) ? 2567483615ULL : 0));
}
}