https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124688
Bug ID: 124688
Summary: bpf: movsi not generating SImode regs
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: target
Assignee: vineetg at gcc dot gnu.org
Reporter: vineetg at gcc dot gnu.org
Target Milestone: ---
Target: bpf
Following test
short ret_int ();
void arg_int (int);
void foo () {
arg_int(ret_int ());
}
-O2 -mcpu=v4
generates
foo:
call ret_int
r1 = r0
call arg_int
exit
Whereas it needs to gen wN form to ensure upper bits are zeored for function
arg.
w1 = w0