[x]vldi.{b/h/w/d} is not implemented in LoongArch.
Use the macro [x]vrepli.{b/h/w/d} to replace.
gcc/ChangeLog:
* config/loongarch/lasx.md: Fixed.
* config/loongarch/lsx.md: Fixed.
(cherry picked from commit
f0cb64fb3f9d8e6f765007d4d62f1f5df73dc498)
"ISA_HAS_LASX"
{
if (which_alternative == 1)
- return "xvldi.b\t%u0,0" ;
+ return "xvrepli.b\t%u0,0";
return "xvreplgr2vr.<lasxfmt>\t%u0,%z1";
}
"ISA_HAS_LSX"
{
if (which_alternative == 1)
- return "vldi.<lsxfmt>\t%w0,0";
+ return "vrepli.b\t%w0,0";
return "vreplgr2vr.<lsxfmt>\t%w0,%z1";
}