https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103097

            Bug ID: 103097
           Summary: ICE in move_for_stack_reg, at reg-stack.c:1186
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: error-recovery, ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: x86_64-unknown-linux-gnu

gcc-12.0.0-alpha20211031 snapshot (g:ca84f39399fda80c770306465276ffd66d3766ed)
ICEs when compiling
gcc/testsuite/gcc.target/s390/vector/long-double-asm-earlyclobber.c w/ -O1
-fharden-conditional-branches:

% x86_64-unknown-linux-gnu-gcc-12.0.0 -O1 -fharden-conditional-branches -c
gcc/testsuite/gcc.target/s390/vector/long-double-asm-earlyclobber.c
gcc/testsuite/gcc.target/s390/vector/long-double-asm-earlyclobber.c: In
function 'main':
gcc/testsuite/gcc.target/s390/vector/long-double-asm-earlyclobber.c:12:3:
error: output constraint 0 must specify a single register
   12 |   asm("lzxr\t%0\n"
      |   ^~~
during RTL pass: stack
gcc/testsuite/gcc.target/s390/vector/long-double-asm-earlyclobber.c:17:1:
internal compiler error: in move_for_stack_reg, at reg-stack.c:1186
   17 | }
      | ^
0x7077c5 move_for_stack_reg
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/reg-stack.c:1186
0xe0567a subst_stack_regs
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/reg-stack.c:2457
0xe05851 convert_regs_1
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/reg-stack.c:3093
0xe05851 convert_regs_2
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/reg-stack.c:3227
0xe069a1 convert_regs
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/reg-stack.c:3262
0xe069a1 reg_to_stack
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/reg-stack.c:3387
0xe069a1 rest_of_handle_stack_regs
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/reg-stack.c:3442
0xe069a1 execute
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/reg-stack.c:3474

Reply via email to