Created attachment 23542 [details] reduced testcase Compiler output: $ gcc -O2 -fira-algorithm=priority -fpeel-loops -fno-split-wide-types -fno-tree-ter testcase.f90 testcase.f90: In function 'test': testcase.f90:20:0: error: insn does not satisfy its constraints: (insn 614 613 615 38 (set (reg:TI 44 r15 [orig:248 D.1840 ] [248]) (mem/c:TI (reg/f:DI 7 sp) [0 S16 A128])) testcase.f90:16 60 {*movti_internal_rex64} (nil)) testcase.f90:20:0: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Two files from the testsuite fail the same way, with the same flags: gfortran.dg/cshift_large_1.f90 gfortran.dg/eoshift_large_1.f90 Tested revisions: r170622 - crash 4.5 r170013 - OK
Are sure that the expected values after cshift are right? Is the problem still present?
(In reply to Dominique d'Humieres from comment #1) > Are sure that the expected values after cshift are right? > > Is the problem still present? The testcase was reduced from testsuite/gfortran.dg/cshift_large_1.f90 I can not reproduce it anymore with trunk.
I have tested gfortran.dg/cshift_large_1.f90 with/without the options in comment 0 without any problem from 4.8 up to trunk. Closing as FIXED. BTW I think expected values after cshift in the attached test are wrong.