[RISCV] Don't allow i64 vector div by constant to use mulh with Zve64x
authoreopXD <eop.chen@sifive.com>
Sat, 22 Jan 2022 08:46:36 +0000 (00:46 -0800)
committereopXD <eop.chen@sifive.com>
Tue, 25 Jan 2022 17:55:05 +0000 (09:55 -0800)
commitb089e4072a012dc0c8233cada37326f686ca2604
treed768a4010219092fdf4872ddc50210beab33d56d
parent575c5d2a99eabf4a76ab6d81e25537804aa50c9d
[RISCV] Don't allow i64 vector div by constant to use mulh with Zve64x

EEW=64 of mulh and its vairants requires V extension.

Authored by: Craig Topper <craig.topper@sifive.com> @craig.topper

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D117947
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVSubtarget.h
llvm/test/CodeGen/RISCV/rvv/vdiv-sdnode.ll
llvm/test/CodeGen/RISCV/rvv/vdivu-sdnode.ll
llvm/test/CodeGen/RISCV/rvv/vrem-sdnode.ll
llvm/test/CodeGen/RISCV/rvv/vremu-sdnode.ll