[Bug target/78438] [7 Regression] incorrect comparison optimization

2016-11-23 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438 --- Comment #7 from Segher Boessenkool --- Author: segher Date: Wed Nov 23 14:33:13 2016 New Revision: 242757 URL: https://gcc.gnu.org/viewcvs?rev=242757=gcc=rev Log: combine: Convert subreg-of-lshiftrt to zero_extract properly (PR78390)

[Bug target/78438] [7 Regression] incorrect comparison optimization

2016-11-21 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438 --- Comment #6 from Segher Boessenkool --- n/m, too tired I guess, please ignore comment 5.

[Bug target/78438] [7 Regression] incorrect comparison optimization

2016-11-21 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438 --- Comment #5 from Segher Boessenkool --- Why is this wrong? This isn't the same reg 94 (it is reused): Failed to match this instruction: (set (mem/c:QI (symbol_ref:DI ("a") [flags 0x2] ) [0 a+0 S1 A8]) (subreg:QI (ashiftrt:SI (reg:SI 93

[Bug target/78438] [7 Regression] incorrect comparison optimization

2016-11-21 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438 Jeffrey A. Law changed: What|Removed |Added Priority|P3 |P1 CC|

[Bug target/78438] [7 Regression] incorrect comparison optimization

2016-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|NEW --- Comment #4 from Jakub Jelinek

[Bug target/78438] [7 Regression] incorrect comparison optimization

2016-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #3 from Jakub

[Bug target/78438] [7 Regression] incorrect comparison optimization

2016-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438 --- Comment #2 from Jakub Jelinek --- Before combine we have: (insn 6 5 7 2 (parallel [ (set (reg:SI 92) (ashiftrt:SI (reg:SI 93 [ b ]) (const_int 11 [0xb]))) (clobber (reg:CC 17

[Bug target/78438] [7 Regression] incorrect comparison optimization

2016-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78438 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|