llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

error in backend: Cannot select: 0xe2dd910: nxv2i64 = AArch64ISD::SRAD_MERGE_OP1 with SVE intrinsics

Open ktkachov opened this issue 2 years ago • 2 comments

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));
}

ktkachov avatar Sep 18 '24 15:09 ktkachov

@llvm/issue-subscribers-backend-aarch64

Author: Kyrill Tkachov (ktkachov)

Godbolt testcase: https://godbolt.org/z/cKcW3Gd33

llvmbot avatar Sep 18 '24 15:09 llvmbot

There is an instcombine for this, where it generates the asrd from a div. It probably shouldn't be doing it 1 or -1.

davemgreen avatar Sep 18 '24 15:09 davemgreen