https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106877
Bug ID: 106877
Summary: [12/13 Regression] ICE in move_for_stack_reg, at
reg-stack.cc:1076
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Started with r12 before 20210502, at -O or -O1,
with file g++.dg/ext/pr84683.C or pr84828.C :
$ g++-13-20220904 -c pr84683.C -O1 -m16 -mtune=sandybridge
-flive-range-shrinkage -fno-dce
pr84683.C: In function 'void foo(float, double)':
pr84683.C:10:7: error: output constraint 0 must specify a single register
10 | asm volatile ("" : "+f" (c)); // { dg-error "must specify a
single register" }
| ^~~
during RTL pass: stack
pr84683.C:13:1: internal compiler error: in move_for_stack_reg, at
reg-stack.cc:1076
13 | }
| ^
0x11163b0 move_for_stack_reg
../../gcc/reg-stack.cc:1076
0x1117aca subst_stack_regs
../../gcc/reg-stack.cc:2457
0x1117c78 convert_regs_1
../../gcc/reg-stack.cc:3091
0x1117c78 convert_regs_2
../../gcc/reg-stack.cc:3225
0x1119b88 convert_regs
../../gcc/reg-stack.cc:3260
0x1119b88 reg_to_stack
../../gcc/reg-stack.cc:3385
0x1119b88 rest_of_handle_stack_regs
../../gcc/reg-stack.cc:3441
0x1119b88 execute
../../gcc/reg-stack.cc:3473