[clang] [RISCV] Convert all floating point vector type operands to integer vector type (PR #69559)
    Brandon Wu via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Oct 19 22:07:49 PDT 2023
    
    
  
================
@@ -450,6 +474,18 @@ multiclass VPatVC_XVV<string intrinsic_suffix, string instruction_suffix,
                      "PseudoVC_V_" # instruction_suffix # "_" # vti.LMul.MX,
                      wti.Vector, wti.Vector, vti.Vector, type, vti.Log2SEW,
                      wti.RegClass, vti.RegClass, kind, op1_kind>;
+  // Add another patterns for float type return value.
+  if !ne(wti.SEW, 8) then {
+    defvar wfti = !cast<VTypeInfo>("VF"#wti.SEW#wti.LMul.MX);
----------------
4vtomat wrote:
Yes, I'll add some tests for it~
https://github.com/llvm/llvm-project/pull/69559
    
    
More information about the cfe-commits
mailing list