[Bug rtl-optimization/71956] [7 Regression] 176.gcc fails on 32 bits when compiled with -march=core-avx2

2016-09-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71956

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from Andrew Pinski  ---
Fixed so closing.

[Bug rtl-optimization/71956] [7 Regression] 176.gcc fails on 32 bits when compiled with -march=core-avx2

2016-09-02 Thread ysrumyan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71956

--- Comment #5 from Yuri Rumyantsev  ---
This bug is fixed by
Author: ppalka
Date: Sat Aug 27 22:00:17 2016
New Revision: 239798

URL: https://gcc.gnu.org/viewcvs?rev=239798=gcc=rev
Log:
Fix folding of VECTOR_CST comparisons

gcc/ChangeLog:

PR tree-optimization/71077
PR tree-optimization/68542
* fold-const.c (fold_relational_const): Fix folding of
VECTOR_CST comparisons that have a scalar boolean result type.
(selftest::test_vector_folding): New static function.
(selftest::fold_const_c_tests): Call it.

gcc/testsuite/ChangeLog:

PR tree-optimization/71077
* gcc.target/i386/pr71077.c: New test.


Added:
trunk/gcc/testsuite/gcc.target/i386/pr71077.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog

So this bug must be closed.

[Bug rtl-optimization/71956] [7 Regression] 176.gcc fails on 32 bits when compiled with -march=core-avx2

2016-08-12 Thread ysrumyan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71956

--- Comment #4 from Yuri Rumyantsev  ---
Need to read "problem file is 176.gcc/src/sched.c, problem function
sched_analyze_insn.

[Bug rtl-optimization/71956] [7 Regression] 176.gcc fails on 32 bits when compiled with -march=core-avx2

2016-08-12 Thread ysrumyan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71956

--- Comment #3 from Yuri Rumyantsev  ---
It turned out that after r235653 (with minor int->bool type change) 176.gcc
started RF. If we turn off vrp phase benchmark passes. The problem fail is
sched.c. Note that avx2 is essential for reproducing. Try to understand what
the issue is.

[Bug rtl-optimization/71956] [7 Regression] 176.gcc fails on 32 bits when compiled with -march=core-avx2

2016-08-10 Thread ysrumyan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71956

Yuri Rumyantsev  changed:

   What|Removed |Added

 CC||ysrumyan at gmail dot com

--- Comment #2 from Yuri Rumyantsev  ---
Jakub,

I removed both your revisions in cse.c (c1) but it did not help - 176.gcc stll
gets RF on avx2 but not on avx. I assume that masked stores are responsible for
it since we have them in binaries:

.L2437:
vmovd   %ecx, %xmm1
vpxor   %xmm5, %xmm5, %xmm5
addl-40(%ebp), %eax
movl-28(%ebp), %edx
vpbroadcastd-36(%ebp), %ymm4
vpaddd  .LC1, %ymm4, %ymm2
vpbroadcastd%xmm1, %ymm1
leal(%edx,%eax,4), %eax
vpsrlvd %ymm2, %ymm1, %ymm2
vpaddd  %ymm7, %ymm4, %ymm3
vpand   %ymm6, %ymm2, %ymm2
vpcmpeqd%ymm5, %ymm2, %ymm2
vpcmpeqd%ymm5, %ymm2, %ymm2
vptest  %ymm2, %ymm2
je  .L2446
vpmaskmovd  %ymm0, %ymm2, (%eax)
.L2446:
vpsrlvd %ymm3, %ymm1, %ymm2
vpxor   %xmm3, %xmm3, %xmm3
leal32(%eax), %edx
vpaddd  .LC3, %ymm4, %ymm4
vpand   %ymm6, %ymm2, %ymm2
vpcmpeqd%ymm3, %ymm2, %ymm2
vpcmpeqd%ymm3, %ymm2, %ymm2
vptest  %ymm2, %ymm2
je  .L2447
vpmaskmovd  %ymm0, %ymm2, (%edx)

Will try to determine the correct revision responsible for it.

[Bug rtl-optimization/71956] [7 Regression] 176.gcc fails on 32 bits when compiled with -march=core-avx2

2016-07-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71956

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek  ---
The known regression caused with r235765 should have been fixed with r237503
though.