[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 --- Comment #10 from Jakub Jelinek --- Author: jakub Date: Tue Mar 6 20:41:37 2018 New Revision: 258301 URL: https://gcc.gnu.org/viewcvs?rev=258301=gcc=rev Log: PR target/84710 * combine.c (try_combine): Use reg_or_subregno

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 --- Comment #9 from Jakub Jelinek --- (In reply to Segher Boessenkool from comment #8) > Ah right, I had checking disabled. Need more coffee I guess. You don't really need to build the checking compiler for this though, it is enough to put a

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 --- Comment #8 from Segher Boessenkool --- Ah right, I had checking disabled. Need more coffee I guess. The insns I see are different: Trying 19, 20 -> 21: 19: r106:SI#0=0 20: r108:SI=zero_extend(r106:SI#0) 21: r109:SI=r108:SI 0>>0x8

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread zsojka at seznam dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 --- Comment #7 from Zdenek Sojka --- Created attachment 43573 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43573=edit original testcase Unreduced testcase; needs additional -fkeep-inline-functions: $ aarch64-unknown-linux-gnu-gcc -O

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread zsojka at seznam dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 --- Comment #6 from Zdenek Sojka --- (In reply to Segher Boessenkool from comment #4) > The testcase has UB of course (d is undefined). The original testcase had defined behavior. The uninitialized use is the result of delta/creduce reduction.

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 --- Comment #5 from Jakub Jelinek --- (In reply to Segher Boessenkool from comment #4) > The testcase does not crash for me; does it need more non-default options? > > The testcase has UB of course (d is undefined). The compiler needs to be

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 --- Comment #4 from Segher Boessenkool --- The testcase does not crash for me; does it need more non-default options? The testcase has UB of course (d is undefined).

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 --- Comment #3 from Segher Boessenkool --- Well, yuck, I missed that part of rtl.texi (or somehow I thought this RTL would be refused earlier). Please use reg_or_subregno in the patch though?

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/84710] [8 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1896 with -O -fno-forward-propagate

2018-03-05 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84710 Richard Biener changed: What|Removed |Added Priority|P3 |P1 Target Milestone|---