[llvm] [RISCV] Add AltFmtType = IS_NOT_ALTFMT to SF_VFNRCLIP_X(U)_F_QF. (PR #164759)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 22 22:53:09 PDT 2025


https://github.com/topperc created https://github.com/llvm/llvm-project/pull/164759

These instructions are FP instructions with SEW=8. vtype.altfmt=1 should be considered reserved for them.

>From 11c9e395752c95d0df6bfb5b9b47c69712acb111 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Wed, 22 Oct 2025 22:49:57 -0700
Subject: [PATCH] [RISCV] Add AltFmtType = IS_NOT_ALTFMT to
 SF_VFNRCLIP_X(U)_F_QF.

These instructions are FP instructions with SEW=8. vtype.altfmt=1
should be considered reserved for them.
---
 llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td b/llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td
index 4104abd3b0219..4c2f7f6424f63 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td
@@ -482,7 +482,7 @@ let Predicates = [HasVendorXSfvfwmaccqqq] in {
   defm SF_VFWMACC_4x4x4 : VPseudoSiFiveVFWMACC;
 }
 
-let Predicates = [HasVendorXSfvfnrclipxfqf] in {
+let Predicates = [HasVendorXSfvfnrclipxfqf], AltFmtType = IS_NOT_ALTFMT in {
   defm SF_VFNRCLIP_XU_F_QF : VPseudoSiFiveVFNRCLIP;
   defm SF_VFNRCLIP_X_F_QF : VPseudoSiFiveVFNRCLIP;
 }



More information about the llvm-commits mailing list