[llvm] [RISCV] Use correct register class for Z[df]inx inline asm (PR #71872)

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 12 22:41:27 PST 2023


================
@@ -18370,6 +18370,10 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
       // TODO: Support fixed vectors up to XLen for P extension?
       if (VT.isVector())
         break;
+      if (VT == MVT::f32 && Subtarget.hasStdExtZfinx())
----------------
nemanjai wrote:

That's a good question. I will try it out later to see.

https://github.com/llvm/llvm-project/pull/71872


More information about the llvm-commits mailing list