https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128987
Bug ID: 128987
Summary: V2DI construction from 2 DImode GPRs on s390x
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
Target Milestone: ---
typedef unsigned long V __attribute__((vector_size (16)));
V
foo (unsigned long x, unsigned long y)
{
V r = {};
r[0] = x;
r[1] = y;
return r;
}
V
bar (unsigned long x, unsigned long y)
{
return (V) { x, y };
}
should IMHO result in the same insn with -O2 -march=z13, but it doesn't,
the former is
vzero %v24
vlvgg %v24,%r2,0
vlvgg %v24,%r3,1
while the latter
vlvgp %v24,%r2,%r3
Would be nice to consider some combine pattern for this...