[Bug rtl-optimization/78378] [5/6/7 Regression] wrong code when combining shift + mult + zero_extend

2016-11-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78378 --- Comment #7 from Jakub Jelinek --- Author: jakub Date: Wed Nov 16 23:22:16 2016 New Revision: 242526 URL: https://gcc.gnu.org/viewcvs?rev=242526&root=gcc&view=rev Log: PR rtl-optimization/78378 * combine.c (make_extraction): U

[Bug rtl-optimization/78378] [5/6/7 Regression] wrong code when combining shift + mult + zero_extend

2016-11-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78378 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug rtl-optimization/78378] [5/6/7 Regression] wrong code when combining shift + mult + zero_extend

2016-11-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78378 --- Comment #5 from Jakub Jelinek --- Scratch that, I've missed there the 8 SUBREG_BYTE. That one is fine. What is wrong is combine_simplify_rtx turning (set (reg:SI 99 [ x ]) (and:SI (subreg:SI (truncate:HI (lshiftrt:TI (mult:TI (zero_exten

[Bug rtl-optimization/78378] [5/6/7 Regression] wrong code when combining shift + mult + zero_extend

2016-11-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78378 --- Comment #4 from Jakub Jelinek --- So we have: (insn 6 3 7 2 (parallel [ (set (reg/v:DI 90 [ x ]) (ashift:DI (reg/v:DI 93 [ x ]) (const_int 41 [0x29]))) (clobber (reg:CC 17 flags))

[Bug rtl-optimization/78378] [5/6/7 Regression] wrong code when combining shift + mult + zero_extend

2016-11-16 Thread zsojka at seznam dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78378 --- Comment #3 from Zdenek Sojka --- (In reply to Jakub Jelinek from comment #2) > r163380 still works, r163394 fails, so most likely one of r163383, r163384 > or r163389. r163383 added the four-insn combinations, and this is what happens in the

[Bug rtl-optimization/78378] [5/6/7 Regression] wrong code when combining shift + mult + zero_extend

2016-11-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78378 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug rtl-optimization/78378] [5/6/7 Regression] wrong code when combining shift + mult + zero_extend

2016-11-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78378 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug rtl-optimization/78378] [5/6/7 Regression] wrong code when combining shift + mult + zero_extend

2016-11-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78378 Richard Biener changed: What|Removed |Added Target Milestone|--- |5.5