llvm-project
llvm-project copied to clipboard
error in backend: Cannot select: 0xe2dd910: nxv2i64 = AArch64ISD::SRAD_MERGE_OP1 with SVE intrinsics
Godbolt testcase: https://godbolt.org/z/cKcW3Gd33
#include <arm_sve.h>
svint64_t f4 (svbool_t pg, svint64_t op1)
{
return svdiv_m (pg, op1, svdup_s64 (1));
}
@llvm/issue-subscribers-backend-aarch64
Author: Kyrill Tkachov (ktkachov)
Godbolt testcase: https://godbolt.org/z/cKcW3Gd33
There is an instcombine for this, where it generates the asrd from a div. It probably shouldn't be doing it 1 or -1.