[PATCH] D121774: [RISCV] support fcmp in zfinx,zdinx,zhinx
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 16 21:16:53 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:101
+ addRegisterClass(MVT::f64, &RISCV::GPRF64RegClass);
+ addRegisterClass(MVT::f64, &RISCV::GPRPF64RegClass);
+ }
----------------
I think you need to check Subtarget.is64Bit() here. You can't assign a type to two register classes. The type is used as the key to a map. The second call overwrites the first.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121774/new/
https://reviews.llvm.org/D121774
More information about the llvm-commits
mailing list