[clang] [clang][RISCV] Add Xsfvfofp4min C intrinsics (PR #245142)

Brandon Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 30 00:51:53 PST 2026


https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/245142

>From b639a179f7b9dcefdd6c156f08e6e4b5bcc18ef0 Mon Sep 17 00:00:00 2001
From: Brandon Wu <brandon.wu at sifive.com>
Date: Sun, 22 Nov 2026 21:03:45 -0800
Subject: [PATCH 1/2] [clang][RISCV] Add Xsfvfofp4min C intrinsics

This commit supports Xsfvfofp4min C intrinsics along with vreinterpret
intrinsics and also introduce OCP 4 bit floating point vector type which
is denoted as vfloat4e2[LMUL]_t.
---
 clang/include/clang/Basic/RISCVVTypes.def     |  21 ++
 .../clang/Basic/riscv_sifive_vector.td        |   7 +
 clang/include/clang/Basic/riscv_vector.td     |   4 +
 .../clang/Basic/riscv_vector_common.td        |   1 +
 .../include/clang/Serialization/ASTBitCodes.h |   2 +-
 .../clang/Support/RISCVVIntrinsicUtils.h      |   7 +-
 clang/lib/Sema/SemaRISCV.cpp                  |  36 ++-
 clang/lib/Support/RISCVVIntrinsicUtils.cpp    |  28 +-
 .../rvv-intrinsic-datatypes.cpp               |  24 +-
 .../non-policy/non-overloaded/vfext_vf2.c     | 134 +++++++++
 .../non-policy/non-overloaded/vreinterpret.c  | 238 +++++++++++++++
 .../non-policy/overloaded/vfext_vf2.c         | 134 +++++++++
 .../non-policy/overloaded/vreinterpret.c      | 238 +++++++++++++++
 .../policy/non-overloaded/vfext_vf2.c         | 276 ++++++++++++++++++
 .../policy/overloaded/vfext_vf2.c             | 276 ++++++++++++++++++
 .../CodeGenCXX/riscv-mangle-rvv-vectors.cpp   |  25 ++
 clang/test/Sema/riscv-types.c                 |  24 +-
 clang/utils/TableGen/RISCVVEmitter.cpp        |   5 +-
 18 files changed, 1471 insertions(+), 9 deletions(-)
 create mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vfext_vf2.c
 create mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vreinterpret.c
 create mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vfext_vf2.c
 create mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vreinterpret.c
 create mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/vfext_vf2.c
 create mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/vfext_vf2.c

diff --git a/clang/include/clang/Basic/RISCVVTypes.def b/clang/include/clang/Basic/RISCVVTypes.def
index 3cac9522c96aba..67087f712ce516 100644
--- a/clang/include/clang/Basic/RISCVVTypes.def
+++ b/clang/include/clang/Basic/RISCVVTypes.def
@@ -78,6 +78,11 @@
   RVV_VECTOR_TYPE_INT(Name, Id, SingletonId, NumEls, 8, 1, false)
 #endif
 
+#ifndef RVV_VECTOR_TYPE_OFP4
+#define RVV_VECTOR_TYPE_OFP4(Name, Id, SingletonId, NumEls)                    \
+  RVV_VECTOR_TYPE_INT(Name, Id, SingletonId, NumEls, 8, 1, false)
+#endif
+
 //===- Vector types -------------------------------------------------------===//
 
 RVV_VECTOR_TYPE_INT("__rvv_int8mf8_t", RvvInt8mf8, RvvInt8mf8Ty, 1,   8, 1, true)
@@ -162,6 +167,21 @@ RVV_VECTOR_TYPE_OFP8("__rvv_float8e5m2m4_t", RvvFloat8E5M2m4,
 RVV_VECTOR_TYPE_OFP8("__rvv_float8e5m2m8_t", RvvFloat8E5M2m8,
                      RvvFloat8E5M2m8Ty, 64, true)
 
+RVV_VECTOR_TYPE_OFP4("__rvv_float4e2m1mf8_t", RvvFloat4E2M1mf8,
+                     RvvFloat4E2M1mf8Ty, 1)
+RVV_VECTOR_TYPE_OFP4("__rvv_float4e2m1mf4_t", RvvFloat4E2M1mf4,
+                     RvvFloat4E2M1mf4Ty, 2)
+RVV_VECTOR_TYPE_OFP4("__rvv_float4e2m1mf2_t", RvvFloat4E2M1mf2,
+                     RvvFloat4E2M1mf2Ty, 4)
+RVV_VECTOR_TYPE_OFP4("__rvv_float4e2m1m1_t", RvvFloat4E2M1m1,
+                     RvvFloat4E2M1m1Ty, 8)
+RVV_VECTOR_TYPE_OFP4("__rvv_float4e2m1m2_t", RvvFloat4E2M1m2,
+                     RvvFloat4E2M1m2Ty, 16)
+RVV_VECTOR_TYPE_OFP4("__rvv_float4e2m1m4_t", RvvFloat4E2M1m4,
+                     RvvFloat4E2M1m4Ty, 32)
+RVV_VECTOR_TYPE_OFP4("__rvv_float4e2m1m8_t", RvvFloat4E2M1m8,
+                     RvvFloat4E2M1m8Ty, 64)
+
 RVV_VECTOR_TYPE_FLOAT("__rvv_float16mf4_t",RvvFloat16mf4,RvvFloat16mf4Ty,1,  16, 1)
 RVV_VECTOR_TYPE_FLOAT("__rvv_float16mf2_t",RvvFloat16mf2,RvvFloat16mf2Ty,2,  16, 1)
 RVV_VECTOR_TYPE_FLOAT("__rvv_float16m1_t", RvvFloat16m1, RvvFloat16m1Ty, 4,  16, 1)
@@ -543,6 +563,7 @@ RVV_VECTOR_TYPE_BFLOAT("__rvv_bfloat16m2x4_t", RvvBFloat16m2x4, RvvBFloat16m2x4T
 RVV_VECTOR_TYPE_BFLOAT("__rvv_bfloat16m4x2_t", RvvBFloat16m4x2, RvvBFloat16m4x2Ty,
                        16, 16, 2)
 
+#undef RVV_VECTOR_TYPE_OFP4
 #undef RVV_VECTOR_TYPE_OFP8
 #undef RVV_VECTOR_TYPE_BFLOAT
 #undef RVV_VECTOR_TYPE_FLOAT
diff --git a/clang/include/clang/Basic/riscv_sifive_vector.td b/clang/include/clang/Basic/riscv_sifive_vector.td
index 6b0be75dc9e517..d74944afb2db5a 100644
--- a/clang/include/clang/Basic/riscv_sifive_vector.td
+++ b/clang/include/clang/Basic/riscv_sifive_vector.td
@@ -401,3 +401,10 @@ let RequiredFeatures = ["xsfmm32a8f"] in
 
 let RequiredFeatures = ["xsfmm64a64f"] in
   defm : RVVSFMatMulFloatBuiltinSet<"sf_mm_f_f", "0Kzvvzzz", "v", ["d"], 1>;
+
+let Log2LMUL = [-2, -1, 0, 1, 2, 3],
+    RequiredFeatures = ["xsfvfofp4min"],
+    UnMaskedPolicyScheme = HasPassthruOperand in {
+  let OverloadedName = "vfext_vf2" in
+    defm : RVVConvBuiltinSet<"vfext_vf2", "a", [["v", "vn"]]>;
+}
diff --git a/clang/include/clang/Basic/riscv_vector.td b/clang/include/clang/Basic/riscv_vector.td
index 6a1d9f82cf116b..c65eb7eacaf28f 100644
--- a/clang/include/clang/Basic/riscv_vector.td
+++ b/clang/include/clang/Basic/riscv_vector.td
@@ -1817,6 +1817,10 @@ let HasMasked = false, HasVL = false, IRName = "" in {
       def vreinterpret_u_f8e5m2 : RVVBuiltin<"vUv", "Uvv", "b", "Uv">;
       def vreinterpret_f8e5m2_u : RVVBuiltin<"Uvv", "vUv", "b", "v">;
     }
+    let RequiredFeatures = ["xsfvfofp4min"] in {
+      def vreinterpret_u_f4e2m1 : RVVBuiltin<"vUv", "Uvv", "g", "Uv">;
+      def vreinterpret_f4e2m1_u : RVVBuiltin<"Uvv", "vUv", "g", "v">;
+    }
 
     // Reinterpret between different SEW under the same LMUL
     foreach dst_sew = ["(FixedSEW:8)", "(FixedSEW:16)", "(FixedSEW:32)",
diff --git a/clang/include/clang/Basic/riscv_vector_common.td b/clang/include/clang/Basic/riscv_vector_common.td
index bef07556634fad..2e4d994ea9258f 100644
--- a/clang/include/clang/Basic/riscv_vector_common.td
+++ b/clang/include/clang/Basic/riscv_vector_common.td
@@ -42,6 +42,7 @@
 //   f: float32_t (float)
 //   d: float64_t (double)
 //   y: bfloat16_t (bfloat16)
+//   g: float4_e2m1 (OFP4 E2M1, lowered to i8)
 //
 // This way, given an LMUL, a record with a TypeRange "sil" will cause the
 // definition of 3 builtins. Each type "t" in the TypeRange (in this example
diff --git a/clang/include/clang/Serialization/ASTBitCodes.h b/clang/include/clang/Serialization/ASTBitCodes.h
index 04cc0c5af89d15..49789cb1cb117a 100644
--- a/clang/include/clang/Serialization/ASTBitCodes.h
+++ b/clang/include/clang/Serialization/ASTBitCodes.h
@@ -1182,7 +1182,7 @@ enum PredefinedTypeIDs {
 ///
 /// Type IDs for non-predefined types will start at
 /// NUM_PREDEF_TYPE_IDs.
-const unsigned NUM_PREDEF_TYPE_IDS = 533;
+const unsigned NUM_PREDEF_TYPE_IDS = 540;
 
 // Ensure we do not overrun the predefined types we reserved
 // in the enum PredefinedTypeIDs above.
diff --git a/clang/include/clang/Support/RISCVVIntrinsicUtils.h b/clang/include/clang/Support/RISCVVIntrinsicUtils.h
index bfcaec572aa95f..8a3091c3bbdefb 100644
--- a/clang/include/clang/Support/RISCVVIntrinsicUtils.h
+++ b/clang/include/clang/Support/RISCVVIntrinsicUtils.h
@@ -60,6 +60,7 @@ enum class VectorTypeModifier : uint8_t {
   SFixedLog2LMUL1,
   SFixedLog2LMUL2,
   SFixedLog2LMUL3,
+  OFP4HalfLMULVector,
   SEFixedLog2LMULN3,
   SEFixedLog2LMULN2,
   SEFixedLog2LMULN1,
@@ -219,8 +220,9 @@ enum class BasicType : uint16_t {
   Float64 = 1 << 7,
   F8E4M3 = 1 << 8,
   F8E5M2 = 1 << 9,
-  MaxOffset = 9,
-  LLVM_MARK_AS_BITMASK_ENUM(F8E5M2),
+  F4E2M1 = 1 << 10,
+  MaxOffset = 10,
+  LLVM_MARK_AS_BITMASK_ENUM(F4E2M1),
 };
 
 // Type of vector type.
@@ -237,6 +239,7 @@ enum ScalarTypeKind : uint8_t {
   BFloat,
   FloatE4M3,
   FloatE5M2,
+  FloatE2M1,
   Invalid,
   Undefined,
 };
diff --git a/clang/lib/Sema/SemaRISCV.cpp b/clang/lib/Sema/SemaRISCV.cpp
index f3bd0734c7a6b9..c0aee9693ae563 100644
--- a/clang/lib/Sema/SemaRISCV.cpp
+++ b/clang/lib/Sema/SemaRISCV.cpp
@@ -169,6 +169,23 @@ static QualType RVVType2Qual(ASTContext &Context, const RVVType *Type) {
       QT = Context.getPointerType(QT);
     return QT;
   }
+  case ScalarTypeKind::FloatE2M1: {
+    // TODO: This is a workaround code to only support OFP4 RVV types without
+    // supporting scalar OFP4 types. We need to refactor after scalar types are
+    // supported.
+    assert(Type->isVector() && "Only support vector of OFP4 types.");
+    unsigned Scale = *Type->getScale();
+#define RVV_VECTOR_TYPE_OFP4(Name, Id, SingletonId, NumEls)                    \
+  if (Scale == NumEls)                                                         \
+    QT = Context.SingletonId;
+#include "clang/Basic/RISCVVTypes.def"
+    assert(!QT.isNull() && "Unsupported OFP4 vector type");
+    if (Type->isConstant())
+      QT = Context.getConstType(QT);
+    if (Type->isPointer())
+      QT = Context.getPointerType(QT);
+    return QT;
+  }
   case ScalarTypeKind::BFloat:
     QT = Context.BFloat16Ty;
     break;
@@ -1581,6 +1598,17 @@ void SemaRISCV::checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D,
     }
   };
 
+  auto IsOFP4Type = [](const BuiltinType *BT) {
+    switch (BT->getKind()) {
+#define RVV_VECTOR_TYPE_OFP4(Name, Id, SingletonId, NumEls)                   \
+  case BuiltinType::Id:
+#include "clang/Basic/RISCVVTypes.def"
+      return true;
+    default:
+      return false;
+    }
+  };
+
   if (Info.ElementType->isSpecificBuiltinType(BuiltinType::Double) &&
       !FeatureMap.lookup("zve64d"))
     Diag(Loc, diag::err_riscv_type_requires_extension) << Ty << "zve64d";
@@ -1616,8 +1644,12 @@ void SemaRISCV::checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D,
   // if we don't have at least zve32x supported, then we need to emit error.
   else if (!FeatureMap.lookup("zve32x"))
     Diag(Loc, diag::err_riscv_type_requires_extension) << Ty << "zve32x";
-  else if (IsOFP8Type(BT) && !FeatureMap.lookup("experimental-zvfofp8min"))
-    Diag(Loc, diag::err_riscv_type_requires_extension) << Ty << "zvfofp8min";
+  else if (IsOFP8Type(BT) && !FeatureMap.lookup("experimental-zvfofp8min") &&
+           !FeatureMap.lookup("xsfvfofp4min"))
+    Diag(Loc, diag::err_riscv_type_requires_extension)
+        << Ty << "zvfofp8min or xsfvfofp4min";
+  else if (IsOFP4Type(BT) && !FeatureMap.lookup("xsfvfofp4min"))
+    Diag(Loc, diag::err_riscv_type_requires_extension) << Ty << "xsfvfofp4min";
 }
 
 /// Are the two types RVV-bitcast-compatible types? I.e. is bitcasting from the
diff --git a/clang/lib/Support/RISCVVIntrinsicUtils.cpp b/clang/lib/Support/RISCVVIntrinsicUtils.cpp
index d4d89820446f53..0d8f17f34cf499 100644
--- a/clang/lib/Support/RISCVVIntrinsicUtils.cpp
+++ b/clang/lib/Support/RISCVVIntrinsicUtils.cpp
@@ -208,6 +208,9 @@ void RVVType::initBuiltinStr() {
   case ScalarTypeKind::FloatE5M2:
     BuiltinStr += "b";
     break;
+  case ScalarTypeKind::FloatE2M1:
+    BuiltinStr += "g";
+    break;
   default:
     llvm_unreachable("ScalarType is invalid!");
   }
@@ -258,6 +261,9 @@ void RVVType::initClangBuiltinStr() {
   case ScalarTypeKind::FloatE5M2:
     ClangBuiltinStr += "float8e5m2" + LMUL.str() + "_t";
     return;
+  case ScalarTypeKind::FloatE2M1:
+    ClangBuiltinStr += "float4e2m1" + LMUL.str() + "_t";
+    return;
   default:
     llvm_unreachable("ScalarTypeKind is invalid");
   }
@@ -339,6 +345,9 @@ void RVVType::initTypeStr() {
   case ScalarTypeKind::FloatE5M2:
     Str += "vfloat8e5m2" + LMUL.str() + "_t";
     break;
+  case ScalarTypeKind::FloatE2M1:
+    Str += "vfloat4e2m1" + LMUL.str() + "_t";
+    break;
   default:
     llvm_unreachable("ScalarType is invalid!");
   }
@@ -370,6 +379,9 @@ void RVVType::initShortStr() {
   case ScalarTypeKind::FloatE5M2:
     ShortStr = "f8e5m2";
     break;
+  case ScalarTypeKind::FloatE2M1:
+    ShortStr = "f4e2m1";
+    break;
   default:
     llvm_unreachable("Unhandled case!");
   }
@@ -427,6 +439,11 @@ void RVVType::applyBasicType() {
     ElementBitwidth = 8;
     ScalarType = ScalarTypeKind::FloatE5M2;
     break;
+  case BasicType::F4E2M1:
+    // OFP4 is packed into i8 type, so ElementBitwidth should be 8.
+    ElementBitwidth = 8;
+    ScalarType = ScalarTypeKind::FloatE2M1;
+    break;
   default:
     llvm_unreachable("Unhandled type code!");
   }
@@ -472,6 +489,10 @@ PrototypeDescriptor::parsePrototypeDescriptor(
     PT = BaseTypeModifier::Vector;
     VTM = VectorTypeModifier::MaskVector;
     break;
+  case 'n':
+    PT = BaseTypeModifier::Vector;
+    VTM = VectorTypeModifier::OFP4HalfLMULVector;
+    break;
   case '0':
     PT = BaseTypeModifier::Void;
     break;
@@ -846,6 +867,11 @@ void RVVType::applyModifier(const PrototypeDescriptor &Transformer) {
   case VectorTypeModifier::SFixedLog2LMUL3:
     applyFixedLog2LMUL(3, FixedLMULType::SmallerThan);
     break;
+  case VectorTypeModifier::OFP4HalfLMULVector:
+    ScalarType = ScalarTypeKind::FloatE2M1;
+    LMUL.MulLog2LMUL(-1);
+    Scale = LMUL.getScale(ElementBitwidth);
+    break;
   case VectorTypeModifier::SEFixedLog2LMULN3:
     applyFixedLog2LMUL(-3, FixedLMULType::SmallerOrEqual);
     break;
@@ -1254,7 +1280,7 @@ void RVVIntrinsic::updateNamesAndPolicy(bool IsMasked, bool HasPolicy,
 
 SmallVector<PrototypeDescriptor> parsePrototypes(StringRef Prototypes) {
   SmallVector<PrototypeDescriptor> PrototypeDescriptors;
-  const StringRef Primaries("evwdqom0ztulf");
+  const StringRef Primaries("evwdqom0ztulfn");
   while (!Prototypes.empty()) {
     size_t Idx = 0;
     // Skip over complex prototype because it could contain primitive type
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-handcrafted/rvv-intrinsic-datatypes.cpp b/clang/test/CodeGen/RISCV/rvv-intrinsics-handcrafted/rvv-intrinsic-datatypes.cpp
index 3e2ee71d989cb4..430e9f836c9449 100644
--- a/clang/test/CodeGen/RISCV/rvv-intrinsics-handcrafted/rvv-intrinsic-datatypes.cpp
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-handcrafted/rvv-intrinsic-datatypes.cpp
@@ -1,7 +1,8 @@
 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 2
 // REQUIRES: riscv-registered-target
 // RUN: %clang_cc1 -triple riscv64 -target-feature +v -target-feature +zvfh -target-feature +zvfbfmin \
-// RUN: -target-feature +experimental-zvfofp8min -O0 -emit-llvm %s -o - | FileCheck %s
+// RUN: -target-feature +experimental-zvfofp8min -target-feature +xsfvfofp4min \
+// RUN: -O0 -emit-llvm %s -o - | FileCheck %s
 
 #include <riscv_vector.h>
 
@@ -756,3 +757,24 @@ void test_ofp8_type() {
   vfloat8e5m2m4_t e5m2m4;
   vfloat8e5m2m8_t e5m2m8;
 }
+
+// CHECK-LABEL: define dso_local void @_Z14test_ofp4_typev
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[E2M1MF8:%.*]] = alloca <vscale x 1 x i8>, align 1
+// CHECK-NEXT:    [[E2M1MF4:%.*]] = alloca <vscale x 2 x i8>, align 1
+// CHECK-NEXT:    [[E2M1MF2:%.*]] = alloca <vscale x 4 x i8>, align 1
+// CHECK-NEXT:    [[E2M1M1:%.*]] = alloca <vscale x 8 x i8>, align 1
+// CHECK-NEXT:    [[E2M1M2:%.*]] = alloca <vscale x 16 x i8>, align 1
+// CHECK-NEXT:    [[E2M1M4:%.*]] = alloca <vscale x 32 x i8>, align 1
+// CHECK-NEXT:    [[E2M1M8:%.*]] = alloca <vscale x 64 x i8>, align 1
+// CHECK-NEXT:    ret void
+void test_ofp4_type() {
+  // ofp4 e2m1
+  vfloat4e2m1mf8_t e2m1mf8;
+  vfloat4e2m1mf4_t e2m1mf4;
+  vfloat4e2m1mf2_t e2m1mf2;
+  vfloat4e2m1m1_t e2m1m1;
+  vfloat4e2m1m2_t e2m1m2;
+  vfloat4e2m1m4_t e2m1m4;
+  vfloat4e2m1m8_t e2m1m8;
+}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vfext_vf2.c
new file mode 100644
index 00000000000000..cec2414410cccc
--- /dev/null
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vfext_vf2.c
@@ -0,0 +1,134 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// REQUIRES: riscv-registered-target
+// RUN: %clang_cc1 -triple riscv64 -target-feature +v \
+// RUN:   -target-feature +xsfvfofp4min -disable-O0-optnone \
+// RUN:   -emit-llvm %s -o - | opt -S -passes=mem2reg | \
+// RUN:   FileCheck --check-prefix=CHECK-RV64 %s
+
+#include <sifive_vector.h>
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4(
+// CHECK-RV64-SAME: <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4(vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf4(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2(
+// CHECK-RV64-SAME: <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2(vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1(
+// CHECK-RV64-SAME: <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1(vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m1(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2(
+// CHECK-RV64-SAME: <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2(vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4(
+// CHECK-RV64-SAME: <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4(vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m4(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8(
+// CHECK-RV64-SAME: <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8(vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m8(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_m(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_m(vbool32_t vm, vfloat4e2m1mf8_t vs2,
+                                            size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf4_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_m(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_m(vbool16_t vm, vfloat4e2m1mf4_t vs2,
+                                            size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf2_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_m(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_m(vbool8_t vm, vfloat4e2m1mf2_t vs2,
+                                          size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m1_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_m(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_m(vbool4_t vm, vfloat4e2m1m1_t vs2,
+                                          size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m2_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_m(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_m(vbool2_t vm, vfloat4e2m1m2_t vs2,
+                                          size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m4_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_m(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_m(vbool1_t vm, vfloat4e2m1m4_t vs2,
+                                          size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m8_m(vm, vs2, vl);
+}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vreinterpret.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vreinterpret.c
new file mode 100644
index 00000000000000..d46ea8f6e59510
--- /dev/null
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vreinterpret.c
@@ -0,0 +1,238 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
+// REQUIRES: riscv-registered-target
+// RUN: %clang_cc1 -triple riscv64 -target-feature +f \
+// RUN:  -target-feature +d -target-feature +v \
+// RUN:  -target-feature +zfh -target-feature +xsfvcp -target-feature +zvfh \
+// RUN:  -target-feature +xsfvqmaccqoq -target-feature +xsfvqmaccdod \
+// RUN:  -target-feature +xsfvfnrclipxfqf -target-feature +xsfvfhbfmin \
+// RUN:  -target-feature +xsfvfwmaccqqq -target-feature +experimental-zvkb \
+// RUN:  -target-feature +experimental-zvkg -target-feature +experimental-zvknha \
+// RUN:  -target-feature +experimental-zvknhb -target-feature +experimental-zvkns \
+// RUN:  -target-feature +experimental-zvksed -target-feature +experimental-zvksh \
+// RUN:  -target-feature +xsfvfofp4min \
+// RUN:  -disable-O0-optnone -emit-llvm %s -o - | \
+// RUN:  opt -S -passes=mem2reg | FileCheck %s
+
+#include <riscv_vector.h>
+
+// CHECK-LABEL: @test_vreinterpret_v_u16mf4_bf16mf4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 1 x i16> [[SRC:%.*]] to <vscale x 1 x bfloat>
+// CHECK-NEXT:    ret <vscale x 1 x bfloat> [[TMP0]]
+//
+vbfloat16mf4_t test_vreinterpret_v_u16mf4_bf16mf4(vuint16mf4_t src) {
+  return __riscv_vreinterpret_v_u16mf4_bf16mf4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16mf2_bf16mf2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 2 x i16> [[SRC:%.*]] to <vscale x 2 x bfloat>
+// CHECK-NEXT:    ret <vscale x 2 x bfloat> [[TMP0]]
+//
+vbfloat16mf2_t test_vreinterpret_v_u16mf2_bf16mf2(vuint16mf2_t src) {
+  return __riscv_vreinterpret_v_u16mf2_bf16mf2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16m1_bf16m1(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 4 x i16> [[SRC:%.*]] to <vscale x 4 x bfloat>
+// CHECK-NEXT:    ret <vscale x 4 x bfloat> [[TMP0]]
+//
+vbfloat16m1_t test_vreinterpret_v_u16m1_bf16m1(vuint16m1_t src) {
+  return __riscv_vreinterpret_v_u16m1_bf16m1(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16m2_bf16m2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[SRC:%.*]] to <vscale x 8 x bfloat>
+// CHECK-NEXT:    ret <vscale x 8 x bfloat> [[TMP0]]
+//
+vbfloat16m2_t test_vreinterpret_v_u16m2_bf16m2(vuint16m2_t src) {
+  return __riscv_vreinterpret_v_u16m2_bf16m2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16m4_bf16m4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[SRC:%.*]] to <vscale x 16 x bfloat>
+// CHECK-NEXT:    ret <vscale x 16 x bfloat> [[TMP0]]
+//
+vbfloat16m4_t test_vreinterpret_v_u16m4_bf16m4(vuint16m4_t src) {
+  return __riscv_vreinterpret_v_u16m4_bf16m4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16m8_bf16m8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[SRC:%.*]] to <vscale x 32 x bfloat>
+// CHECK-NEXT:    ret <vscale x 32 x bfloat> [[TMP0]]
+//
+vbfloat16m8_t test_vreinterpret_v_u16m8_bf16m8(vuint16m8_t src) {
+  return __riscv_vreinterpret_v_u16m8_bf16m8(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16mf4_u16mf4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 1 x bfloat> [[SRC:%.*]] to <vscale x 1 x i16>
+// CHECK-NEXT:    ret <vscale x 1 x i16> [[TMP0]]
+//
+vuint16mf4_t test_vreinterpret_v_bf16mf4_u16mf4(vbfloat16mf4_t src) {
+  return __riscv_vreinterpret_v_bf16mf4_u16mf4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16mf2_u16mf2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 2 x bfloat> [[SRC:%.*]] to <vscale x 2 x i16>
+// CHECK-NEXT:    ret <vscale x 2 x i16> [[TMP0]]
+//
+vuint16mf2_t test_vreinterpret_v_bf16mf2_u16mf2(vbfloat16mf2_t src) {
+  return __riscv_vreinterpret_v_bf16mf2_u16mf2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16m1_u16m1(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 4 x bfloat> [[SRC:%.*]] to <vscale x 4 x i16>
+// CHECK-NEXT:    ret <vscale x 4 x i16> [[TMP0]]
+//
+vuint16m1_t test_vreinterpret_v_bf16m1_u16m1(vbfloat16m1_t src) {
+  return __riscv_vreinterpret_v_bf16m1_u16m1(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16m2_u16m2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 8 x bfloat> [[SRC:%.*]] to <vscale x 8 x i16>
+// CHECK-NEXT:    ret <vscale x 8 x i16> [[TMP0]]
+//
+vuint16m2_t test_vreinterpret_v_bf16m2_u16m2(vbfloat16m2_t src) {
+  return __riscv_vreinterpret_v_bf16m2_u16m2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16m4_u16m4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 16 x bfloat> [[SRC:%.*]] to <vscale x 16 x i16>
+// CHECK-NEXT:    ret <vscale x 16 x i16> [[TMP0]]
+//
+vuint16m4_t test_vreinterpret_v_bf16m4_u16m4(vbfloat16m4_t src) {
+  return __riscv_vreinterpret_v_bf16m4_u16m4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16m8_u16m8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 32 x bfloat> [[SRC:%.*]] to <vscale x 32 x i16>
+// CHECK-NEXT:    ret <vscale x 32 x i16> [[TMP0]]
+//
+vuint16m8_t test_vreinterpret_v_bf16m8_u16m8(vbfloat16m8_t src) {
+  return __riscv_vreinterpret_v_bf16m8_u16m8(src);
+}
+
+
+// OFP4 (E2M1) <-> uint8 reinterpret (Zvfofp4min)
+// CHECK-LABEL: @test_vreinterpret_v_u8mf8_f4e2m1mf8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 1 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1mf8_t test_vreinterpret_v_u8mf8_f4e2m1mf8(vuint8mf8_t src) {
+  return __riscv_vreinterpret_v_u8mf8_f4e2m1mf8(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1mf8_u8mf8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 1 x i8> [[SRC:%.*]]
+//
+vuint8mf8_t test_vreinterpret_v_f4e2m1mf8_u8mf8(vfloat4e2m1mf8_t src) {
+  return __riscv_vreinterpret_v_f4e2m1mf8_u8mf8(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8mf4_f4e2m1mf4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 2 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1mf4_t test_vreinterpret_v_u8mf4_f4e2m1mf4(vuint8mf4_t src) {
+  return __riscv_vreinterpret_v_u8mf4_f4e2m1mf4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1mf4_u8mf4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 2 x i8> [[SRC:%.*]]
+//
+vuint8mf4_t test_vreinterpret_v_f4e2m1mf4_u8mf4(vfloat4e2m1mf4_t src) {
+  return __riscv_vreinterpret_v_f4e2m1mf4_u8mf4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8mf2_f4e2m1mf2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 4 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1mf2_t test_vreinterpret_v_u8mf2_f4e2m1mf2(vuint8mf2_t src) {
+  return __riscv_vreinterpret_v_u8mf2_f4e2m1mf2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1mf2_u8mf2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 4 x i8> [[SRC:%.*]]
+//
+vuint8mf2_t test_vreinterpret_v_f4e2m1mf2_u8mf2(vfloat4e2m1mf2_t src) {
+  return __riscv_vreinterpret_v_f4e2m1mf2_u8mf2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8m1_f4e2m1m1(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 8 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1m1_t test_vreinterpret_v_u8m1_f4e2m1m1(vuint8m1_t src) {
+  return __riscv_vreinterpret_v_u8m1_f4e2m1m1(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1m1_u8m1(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 8 x i8> [[SRC:%.*]]
+//
+vuint8m1_t test_vreinterpret_v_f4e2m1m1_u8m1(vfloat4e2m1m1_t src) {
+  return __riscv_vreinterpret_v_f4e2m1m1_u8m1(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8m2_f4e2m1m2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 16 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1m2_t test_vreinterpret_v_u8m2_f4e2m1m2(vuint8m2_t src) {
+  return __riscv_vreinterpret_v_u8m2_f4e2m1m2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1m2_u8m2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 16 x i8> [[SRC:%.*]]
+//
+vuint8m2_t test_vreinterpret_v_f4e2m1m2_u8m2(vfloat4e2m1m2_t src) {
+  return __riscv_vreinterpret_v_f4e2m1m2_u8m2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8m4_f4e2m1m4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 32 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1m4_t test_vreinterpret_v_u8m4_f4e2m1m4(vuint8m4_t src) {
+  return __riscv_vreinterpret_v_u8m4_f4e2m1m4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1m4_u8m4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 32 x i8> [[SRC:%.*]]
+//
+vuint8m4_t test_vreinterpret_v_f4e2m1m4_u8m4(vfloat4e2m1m4_t src) {
+  return __riscv_vreinterpret_v_f4e2m1m4_u8m4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8m8_f4e2m1m8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 64 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1m8_t test_vreinterpret_v_u8m8_f4e2m1m8(vuint8m8_t src) {
+  return __riscv_vreinterpret_v_u8m8_f4e2m1m8(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1m8_u8m8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 64 x i8> [[SRC:%.*]]
+//
+vuint8m8_t test_vreinterpret_v_f4e2m1m8_u8m8(vfloat4e2m1m8_t src) {
+  return __riscv_vreinterpret_v_f4e2m1m8_u8m8(src);
+}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vfext_vf2.c
new file mode 100644
index 00000000000000..cd1bad42531793
--- /dev/null
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vfext_vf2.c
@@ -0,0 +1,134 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// REQUIRES: riscv-registered-target
+// RUN: %clang_cc1 -triple riscv64 -target-feature +v \
+// RUN:   -target-feature +xsfvfofp4min -disable-O0-optnone \
+// RUN:   -emit-llvm %s -o - | opt -S -passes=mem2reg | \
+// RUN:   FileCheck --check-prefix=CHECK-RV64 %s
+
+#include <sifive_vector.h>
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4(
+// CHECK-RV64-SAME: <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4(vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2(
+// CHECK-RV64-SAME: <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2(vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1(
+// CHECK-RV64-SAME: <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1(vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2(
+// CHECK-RV64-SAME: <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2(vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4(
+// CHECK-RV64-SAME: <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4(vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8(
+// CHECK-RV64-SAME: <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8(vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_m(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_m(vbool32_t vm, vfloat4e2m1mf8_t vs2,
+                                            size_t vl) {
+  return __riscv_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_m(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_m(vbool16_t vm, vfloat4e2m1mf4_t vs2,
+                                            size_t vl) {
+  return __riscv_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_m(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_m(vbool8_t vm, vfloat4e2m1mf2_t vs2,
+                                          size_t vl) {
+  return __riscv_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_m(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_m(vbool4_t vm, vfloat4e2m1m1_t vs2,
+                                          size_t vl) {
+  return __riscv_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_m(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_m(vbool2_t vm, vfloat4e2m1m2_t vs2,
+                                          size_t vl) {
+  return __riscv_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_m(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_m(vbool1_t vm, vfloat4e2m1m4_t vs2,
+                                          size_t vl) {
+  return __riscv_vfext_vf2(vm, vs2, vl);
+}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vreinterpret.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vreinterpret.c
new file mode 100644
index 00000000000000..aa9d3bebcba463
--- /dev/null
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vreinterpret.c
@@ -0,0 +1,238 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
+// REQUIRES: riscv-registered-target
+// RUN: %clang_cc1 -triple riscv64 -target-feature +f \
+// RUN:  -target-feature +d -target-feature +v \
+// RUN:  -target-feature +zfh -target-feature +xsfvcp -target-feature +zvfh \
+// RUN:  -target-feature +xsfvqmaccqoq -target-feature +xsfvqmaccdod \
+// RUN:  -target-feature +xsfvfnrclipxfqf -target-feature +xsfvfhbfmin \
+// RUN:  -target-feature +xsfvfwmaccqqq -target-feature +experimental-zvkb \
+// RUN:  -target-feature +experimental-zvkg -target-feature +experimental-zvknha \
+// RUN:  -target-feature +experimental-zvknhb -target-feature +experimental-zvkns \
+// RUN:  -target-feature +experimental-zvksed -target-feature +experimental-zvksh \
+// RUN:  -target-feature +xsfvfofp4min \
+// RUN:  -disable-O0-optnone -emit-llvm %s -o - | \
+// RUN:  opt -S -passes=mem2reg | FileCheck %s
+
+#include <riscv_vector.h>
+
+// CHECK-LABEL: @test_vreinterpret_v_u16mf4_bf16mf4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 1 x i16> [[SRC:%.*]] to <vscale x 1 x bfloat>
+// CHECK-NEXT:    ret <vscale x 1 x bfloat> [[TMP0]]
+//
+vbfloat16mf4_t test_vreinterpret_v_u16mf4_bf16mf4(vuint16mf4_t src) {
+  return __riscv_vreinterpret_bf16mf4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16mf2_bf16mf2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 2 x i16> [[SRC:%.*]] to <vscale x 2 x bfloat>
+// CHECK-NEXT:    ret <vscale x 2 x bfloat> [[TMP0]]
+//
+vbfloat16mf2_t test_vreinterpret_v_u16mf2_bf16mf2(vuint16mf2_t src) {
+  return __riscv_vreinterpret_bf16mf2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16m1_bf16m1(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 4 x i16> [[SRC:%.*]] to <vscale x 4 x bfloat>
+// CHECK-NEXT:    ret <vscale x 4 x bfloat> [[TMP0]]
+//
+vbfloat16m1_t test_vreinterpret_v_u16m1_bf16m1(vuint16m1_t src) {
+  return __riscv_vreinterpret_bf16m1(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16m2_bf16m2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 8 x i16> [[SRC:%.*]] to <vscale x 8 x bfloat>
+// CHECK-NEXT:    ret <vscale x 8 x bfloat> [[TMP0]]
+//
+vbfloat16m2_t test_vreinterpret_v_u16m2_bf16m2(vuint16m2_t src) {
+  return __riscv_vreinterpret_bf16m2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16m4_bf16m4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 16 x i16> [[SRC:%.*]] to <vscale x 16 x bfloat>
+// CHECK-NEXT:    ret <vscale x 16 x bfloat> [[TMP0]]
+//
+vbfloat16m4_t test_vreinterpret_v_u16m4_bf16m4(vuint16m4_t src) {
+  return __riscv_vreinterpret_bf16m4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u16m8_bf16m8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 32 x i16> [[SRC:%.*]] to <vscale x 32 x bfloat>
+// CHECK-NEXT:    ret <vscale x 32 x bfloat> [[TMP0]]
+//
+vbfloat16m8_t test_vreinterpret_v_u16m8_bf16m8(vuint16m8_t src) {
+  return __riscv_vreinterpret_bf16m8(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16mf4_u16mf4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 1 x bfloat> [[SRC:%.*]] to <vscale x 1 x i16>
+// CHECK-NEXT:    ret <vscale x 1 x i16> [[TMP0]]
+//
+vuint16mf4_t test_vreinterpret_v_bf16mf4_u16mf4(vbfloat16mf4_t src) {
+  return __riscv_vreinterpret_u16mf4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16mf2_u16mf2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 2 x bfloat> [[SRC:%.*]] to <vscale x 2 x i16>
+// CHECK-NEXT:    ret <vscale x 2 x i16> [[TMP0]]
+//
+vuint16mf2_t test_vreinterpret_v_bf16mf2_u16mf2(vbfloat16mf2_t src) {
+  return __riscv_vreinterpret_u16mf2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16m1_u16m1(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 4 x bfloat> [[SRC:%.*]] to <vscale x 4 x i16>
+// CHECK-NEXT:    ret <vscale x 4 x i16> [[TMP0]]
+//
+vuint16m1_t test_vreinterpret_v_bf16m1_u16m1(vbfloat16m1_t src) {
+  return __riscv_vreinterpret_u16m1(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16m2_u16m2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 8 x bfloat> [[SRC:%.*]] to <vscale x 8 x i16>
+// CHECK-NEXT:    ret <vscale x 8 x i16> [[TMP0]]
+//
+vuint16m2_t test_vreinterpret_v_bf16m2_u16m2(vbfloat16m2_t src) {
+  return __riscv_vreinterpret_u16m2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16m4_u16m4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 16 x bfloat> [[SRC:%.*]] to <vscale x 16 x i16>
+// CHECK-NEXT:    ret <vscale x 16 x i16> [[TMP0]]
+//
+vuint16m4_t test_vreinterpret_v_bf16m4_u16m4(vbfloat16m4_t src) {
+  return __riscv_vreinterpret_u16m4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_bf16m8_u16m8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    [[TMP0:%.*]] = bitcast <vscale x 32 x bfloat> [[SRC:%.*]] to <vscale x 32 x i16>
+// CHECK-NEXT:    ret <vscale x 32 x i16> [[TMP0]]
+//
+vuint16m8_t test_vreinterpret_v_bf16m8_u16m8(vbfloat16m8_t src) {
+  return __riscv_vreinterpret_u16m8(src);
+}
+
+
+// OFP4 (E2M1) <-> uint8 reinterpret (Zvfofp4min)
+// CHECK-LABEL: @test_vreinterpret_v_u8mf8_f4e2m1mf8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 1 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1mf8_t test_vreinterpret_v_u8mf8_f4e2m1mf8(vuint8mf8_t src) {
+  return __riscv_vreinterpret_f4e2m1mf8(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1mf8_u8mf8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 1 x i8> [[SRC:%.*]]
+//
+vuint8mf8_t test_vreinterpret_v_f4e2m1mf8_u8mf8(vfloat4e2m1mf8_t src) {
+  return __riscv_vreinterpret_u8mf8(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8mf4_f4e2m1mf4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 2 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1mf4_t test_vreinterpret_v_u8mf4_f4e2m1mf4(vuint8mf4_t src) {
+  return __riscv_vreinterpret_f4e2m1mf4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1mf4_u8mf4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 2 x i8> [[SRC:%.*]]
+//
+vuint8mf4_t test_vreinterpret_v_f4e2m1mf4_u8mf4(vfloat4e2m1mf4_t src) {
+  return __riscv_vreinterpret_u8mf4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8mf2_f4e2m1mf2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 4 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1mf2_t test_vreinterpret_v_u8mf2_f4e2m1mf2(vuint8mf2_t src) {
+  return __riscv_vreinterpret_f4e2m1mf2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1mf2_u8mf2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 4 x i8> [[SRC:%.*]]
+//
+vuint8mf2_t test_vreinterpret_v_f4e2m1mf2_u8mf2(vfloat4e2m1mf2_t src) {
+  return __riscv_vreinterpret_u8mf2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8m1_f4e2m1m1(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 8 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1m1_t test_vreinterpret_v_u8m1_f4e2m1m1(vuint8m1_t src) {
+  return __riscv_vreinterpret_f4e2m1m1(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1m1_u8m1(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 8 x i8> [[SRC:%.*]]
+//
+vuint8m1_t test_vreinterpret_v_f4e2m1m1_u8m1(vfloat4e2m1m1_t src) {
+  return __riscv_vreinterpret_u8m1(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8m2_f4e2m1m2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 16 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1m2_t test_vreinterpret_v_u8m2_f4e2m1m2(vuint8m2_t src) {
+  return __riscv_vreinterpret_f4e2m1m2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1m2_u8m2(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 16 x i8> [[SRC:%.*]]
+//
+vuint8m2_t test_vreinterpret_v_f4e2m1m2_u8m2(vfloat4e2m1m2_t src) {
+  return __riscv_vreinterpret_u8m2(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8m4_f4e2m1m4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 32 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1m4_t test_vreinterpret_v_u8m4_f4e2m1m4(vuint8m4_t src) {
+  return __riscv_vreinterpret_f4e2m1m4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1m4_u8m4(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 32 x i8> [[SRC:%.*]]
+//
+vuint8m4_t test_vreinterpret_v_f4e2m1m4_u8m4(vfloat4e2m1m4_t src) {
+  return __riscv_vreinterpret_u8m4(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_u8m8_f4e2m1m8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 64 x i8> [[SRC:%.*]]
+//
+vfloat4e2m1m8_t test_vreinterpret_v_u8m8_f4e2m1m8(vuint8m8_t src) {
+  return __riscv_vreinterpret_f4e2m1m8(src);
+}
+
+// CHECK-LABEL: @test_vreinterpret_v_f4e2m1m8_u8m8(
+// CHECK-NEXT:  entry:
+// CHECK-NEXT:    ret <vscale x 64 x i8> [[SRC:%.*]]
+//
+vuint8m8_t test_vreinterpret_v_f4e2m1m8_u8m8(vfloat4e2m1m8_t src) {
+  return __riscv_vreinterpret_u8m8(src);
+}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/vfext_vf2.c
new file mode 100644
index 00000000000000..c6731c1ad95062
--- /dev/null
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/vfext_vf2.c
@@ -0,0 +1,276 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// REQUIRES: riscv-registered-target
+// RUN: %clang_cc1 -triple riscv64 -target-feature +v \
+// RUN:   -target-feature +xsfvfofp4min -disable-O0-optnone \
+// RUN:   -emit-llvm %s -o - | opt -S -passes=mem2reg | \
+// RUN:   FileCheck --check-prefix=CHECK-RV64 %s
+
+#include <sifive_vector.h>
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tu(
+// CHECK-RV64-SAME: <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tu(vfloat8e4m3mf4_t vd,
+                                             vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf4_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tu(
+// CHECK-RV64-SAME: <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tu(vfloat8e4m3mf2_t vd,
+                                             vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf2_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tu(
+// CHECK-RV64-SAME: <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tu(vfloat8e4m3m1_t vd,
+                                           vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m1_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tu(
+// CHECK-RV64-SAME: <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tu(vfloat8e4m3m2_t vd,
+                                           vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m2_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tu(
+// CHECK-RV64-SAME: <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tu(vfloat8e4m3m4_t vd,
+                                           vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m4_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tu(
+// CHECK-RV64-SAME: <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tu(vfloat8e4m3m8_t vd,
+                                           vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m8_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tum(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tum(vbool32_t vm, vfloat8e4m3mf4_t vd,
+                                              vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf4_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tum(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tum(vbool16_t vm, vfloat8e4m3mf2_t vd,
+                                              vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf2_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tum(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tum(vbool8_t vm, vfloat8e4m3m1_t vd,
+                                            vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m1_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tum(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tum(vbool4_t vm, vfloat8e4m3m2_t vd,
+                                            vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m2_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tum(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tum(vbool2_t vm, vfloat8e4m3m4_t vd,
+                                            vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m4_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tum(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tum(vbool1_t vm, vfloat8e4m3m8_t vd,
+                                            vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m8_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tumu(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tumu(vbool32_t vm,
+                                               vfloat8e4m3mf4_t vd,
+                                               vfloat4e2m1mf8_t vs2,
+                                               size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf4_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tumu(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tumu(vbool16_t vm,
+                                               vfloat8e4m3mf2_t vd,
+                                               vfloat4e2m1mf4_t vs2,
+                                               size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf2_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tumu(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tumu(vbool8_t vm, vfloat8e4m3m1_t vd,
+                                             vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m1_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tumu(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tumu(vbool4_t vm, vfloat8e4m3m2_t vd,
+                                             vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m2_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tumu(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tumu(vbool2_t vm, vfloat8e4m3m4_t vd,
+                                             vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m4_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tumu(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tumu(vbool1_t vm, vfloat8e4m3m8_t vd,
+                                             vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m8_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_mu(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_mu(vbool32_t vm, vfloat8e4m3mf4_t vd,
+                                             vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf4_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_mu(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_mu(vbool16_t vm, vfloat8e4m3mf2_t vd,
+                                             vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3mf2_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_mu(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_mu(vbool8_t vm, vfloat8e4m3m1_t vd,
+                                           vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m1_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_mu(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_mu(vbool4_t vm, vfloat8e4m3m2_t vd,
+                                           vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m2_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_mu(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_mu(vbool2_t vm, vfloat8e4m3m4_t vd,
+                                           vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m4_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_mu(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_mu(vbool1_t vm, vfloat8e4m3m8_t vd,
+                                           vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_f8e4m3m8_mu(vm, vd, vs2, vl);
+}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/vfext_vf2.c
new file mode 100644
index 00000000000000..ae389920287f7c
--- /dev/null
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/vfext_vf2.c
@@ -0,0 +1,276 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// REQUIRES: riscv-registered-target
+// RUN: %clang_cc1 -triple riscv64 -target-feature +v \
+// RUN:   -target-feature +xsfvfofp4min -disable-O0-optnone \
+// RUN:   -emit-llvm %s -o - | opt -S -passes=mem2reg | \
+// RUN:   FileCheck --check-prefix=CHECK-RV64 %s
+
+#include <sifive_vector.h>
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tu(
+// CHECK-RV64-SAME: <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tu(vfloat8e4m3mf4_t vd,
+                                             vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tu(
+// CHECK-RV64-SAME: <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tu(vfloat8e4m3mf2_t vd,
+                                             vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tu(
+// CHECK-RV64-SAME: <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tu(vfloat8e4m3m1_t vd,
+                                           vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tu(
+// CHECK-RV64-SAME: <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tu(vfloat8e4m3m2_t vd,
+                                           vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tu(
+// CHECK-RV64-SAME: <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tu(vfloat8e4m3m4_t vd,
+                                           vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tu(
+// CHECK-RV64-SAME: <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tu(vfloat8e4m3m8_t vd,
+                                           vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tum(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tum(vbool32_t vm, vfloat8e4m3mf4_t vd,
+                                              vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tum(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tum(vbool16_t vm, vfloat8e4m3mf2_t vd,
+                                              vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tum(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tum(vbool8_t vm, vfloat8e4m3m1_t vd,
+                                            vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tum(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tum(vbool4_t vm, vfloat8e4m3m2_t vd,
+                                            vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tum(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tum(vbool2_t vm, vfloat8e4m3m4_t vd,
+                                            vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tum(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tum(vbool1_t vm, vfloat8e4m3m8_t vd,
+                                            vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tumu(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tumu(vbool32_t vm,
+                                               vfloat8e4m3mf4_t vd,
+                                               vfloat4e2m1mf8_t vs2,
+                                               size_t vl) {
+  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tumu(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tumu(vbool16_t vm,
+                                               vfloat8e4m3mf2_t vd,
+                                               vfloat4e2m1mf4_t vs2,
+                                               size_t vl) {
+  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tumu(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tumu(vbool8_t vm, vfloat8e4m3m1_t vd,
+                                             vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tumu(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tumu(vbool4_t vm, vfloat8e4m3m2_t vd,
+                                             vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tumu(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tumu(vbool2_t vm, vfloat8e4m3m4_t vd,
+                                             vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tumu(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tumu(vbool1_t vm, vfloat8e4m3m8_t vd,
+                                             vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_mu(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_mu(vbool32_t vm, vfloat8e4m3mf4_t vd,
+                                             vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_mu(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_mu(vbool16_t vm, vfloat8e4m3mf2_t vd,
+                                             vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_mu(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_mu(vbool8_t vm, vfloat8e4m3m1_t vd,
+                                           vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_mu(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_mu(vbool4_t vm, vfloat8e4m3m2_t vd,
+                                           vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_mu(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_mu(vbool2_t vm, vfloat8e4m3m4_t vd,
+                                           vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_mu(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_mu(vbool1_t vm, vfloat8e4m3m8_t vd,
+                                           vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+}
diff --git a/clang/test/CodeGenCXX/riscv-mangle-rvv-vectors.cpp b/clang/test/CodeGenCXX/riscv-mangle-rvv-vectors.cpp
index 7f30791e274768..222601243840b2 100644
--- a/clang/test/CodeGenCXX/riscv-mangle-rvv-vectors.cpp
+++ b/clang/test/CodeGenCXX/riscv-mangle-rvv-vectors.cpp
@@ -1,10 +1,12 @@
 // RUN: %clang_cc1 -triple riscv32-none-linux-gnu %s -emit-llvm -o - \
 // RUN:   -target-feature +zve64d -target-feature +zvfhmin \
 // RUN:   -target-feature +zvfbfmin -target-feature +experimental-zvfofp8min \
+// RUN:   -target-feature +xsfvfofp4min \
 // RUN:   | FileCheck %s
 // RUN: %clang_cc1 -triple riscv64-none-linux-gnu %s -emit-llvm -o - \
 // RUN:   -target-feature +zve64d -target-feature +zvfhmin \
 // RUN:   -target-feature +zvfbfmin -target-feature +experimental-zvfofp8min \
+// RUN:   -target-feature +xsfvfofp4min \
 // RUN:   | FileCheck %s
 
 typedef __rvv_int8mf8_t  vint8mf8_t;
@@ -75,6 +77,14 @@ typedef __rvv_float8e5m2m2_t  vfloat8e5m2m2_t;
 typedef __rvv_float8e5m2m4_t  vfloat8e5m2m4_t;
 typedef __rvv_float8e5m2m8_t  vfloat8e5m2m8_t;
 
+typedef __rvv_float4e2m1mf8_t vfloat4e2m1mf8_t;
+typedef __rvv_float4e2m1mf4_t vfloat4e2m1mf4_t;
+typedef __rvv_float4e2m1mf2_t vfloat4e2m1mf2_t;
+typedef __rvv_float4e2m1m1_t  vfloat4e2m1m1_t;
+typedef __rvv_float4e2m1m2_t  vfloat4e2m1m2_t;
+typedef __rvv_float4e2m1m4_t  vfloat4e2m1m4_t;
+typedef __rvv_float4e2m1m8_t  vfloat4e2m1m8_t;
+
 typedef __rvv_float16mf4_t vfloat16mf4_t;
 typedef __rvv_float16mf2_t vfloat16mf2_t;
 typedef __rvv_float16m1_t  vfloat16m1_t;
@@ -272,6 +282,21 @@ void f_bf16m4(vbfloat16m4_t) {}
 // CHECK: _Z8f_bf16m8u18__rvv_bfloat16m8_t
 void f_bf16m8(vbfloat16m8_t) {}
 
+// CHECK: _Z11f_f4e2m1mf8u21__rvv_float4e2m1mf8_t
+void f_f4e2m1mf8(vfloat4e2m1mf8_t) {}
+// CHECK: _Z11f_f4e2m1mf4u21__rvv_float4e2m1mf4_t
+void f_f4e2m1mf4(vfloat4e2m1mf4_t) {}
+// CHECK: _Z11f_f4e2m1mf2u21__rvv_float4e2m1mf2_t
+void f_f4e2m1mf2(vfloat4e2m1mf2_t) {}
+// CHECK: _Z10f_f4e2m1m1u20__rvv_float4e2m1m1_t
+void f_f4e2m1m1(vfloat4e2m1m1_t) {}
+// CHECK: _Z10f_f4e2m1m2u20__rvv_float4e2m1m2_t
+void f_f4e2m1m2(vfloat4e2m1m2_t) {}
+// CHECK: _Z10f_f4e2m1m4u20__rvv_float4e2m1m4_t
+void f_f4e2m1m4(vfloat4e2m1m4_t) {}
+// CHECK: _Z10f_f4e2m1m8u20__rvv_float4e2m1m8_t
+void f_f4e2m1m8(vfloat4e2m1m8_t) {}
+
 // CHECK: _Z8f_f32mf2u18__rvv_float32mf2_t
 void f_f32mf2(vfloat32mf2_t) {}
 // CHECK: _Z7f_f32m1u17__rvv_float32m1_t
diff --git a/clang/test/Sema/riscv-types.c b/clang/test/Sema/riscv-types.c
index 26807882d37ff4..9102f8ef516d13 100644
--- a/clang/test/Sema/riscv-types.c
+++ b/clang/test/Sema/riscv-types.c
@@ -1,6 +1,7 @@
 // RUN: %clang_cc1 -triple riscv64 -target-feature +v \
 // RUN: -target-feature +zvfh -target-feature +zvfbfmin \
-// RUN: -target-feature +experimental-zvfofp8min -ast-print %s | FileCheck %s
+// RUN: -target-feature +experimental-zvfofp8min \
+// RUN: -target-feature +xsfvfofp4min -ast-print %s | FileCheck %s
 
 void bar(void) {
   // CHECK: __rvv_int64m1_t x0;
@@ -198,6 +199,27 @@ void bar(void) {
   // CHECK: __rvv_float8e5m2m8_t x64;
   __rvv_float8e5m2m8_t x64;
 
+  // CHECK: __rvv_float4e2m1mf8_t x65;
+  __rvv_float4e2m1mf8_t x65;
+
+  // CHECK: __rvv_float4e2m1mf4_t x66;
+  __rvv_float4e2m1mf4_t x66;
+
+  // CHECK: __rvv_float4e2m1mf2_t x67;
+  __rvv_float4e2m1mf2_t x67;
+
+  // CHECK: __rvv_float4e2m1m1_t x68;
+  __rvv_float4e2m1m1_t x68;
+
+  // CHECK: __rvv_float4e2m1m2_t x69;
+  __rvv_float4e2m1m2_t x69;
+
+  // CHECK: __rvv_float4e2m1m4_t x70;
+  __rvv_float4e2m1m4_t x70;
+
+  // CHECK: __rvv_float4e2m1m8_t x71;
+  __rvv_float4e2m1m8_t x71;
+
 }
 
 typedef __rvv_bool4_t vbool4_t;
diff --git a/clang/utils/TableGen/RISCVVEmitter.cpp b/clang/utils/TableGen/RISCVVEmitter.cpp
index 81dda320019c93..cdf6c84f18d25d 100644
--- a/clang/utils/TableGen/RISCVVEmitter.cpp
+++ b/clang/utils/TableGen/RISCVVEmitter.cpp
@@ -153,6 +153,8 @@ static BasicType ParseBasicType(char c) {
     return BasicType::F8E4M3;
   case 'b':
     return BasicType::F8E5M2;
+  case 'g':
+    return BasicType::F4E2M1;
   default:
     return BasicType::Unknown;
   }
@@ -511,7 +513,8 @@ void RVVEmitter::createHeader(raw_ostream &OS) {
   }
 
   // TODO: Support tuple types for ofp8?
-  for (BasicType BT : {BasicType::F8E4M3, BasicType::F8E5M2}) {
+  for (BasicType BT :
+       {BasicType::F8E4M3, BasicType::F8E5M2, BasicType::F4E2M1}) {
     for (int Log2LMUL : Log2LMULs) {
       auto T = TypeCache.computeType(BT, Log2LMUL, PrototypeDescriptor::Vector);
       if (T)

>From 7b4eff3dc41027a620ab605730725ca7b806d26d Mon Sep 17 00:00:00 2001
From: Brandon Wu <brandon.wu at sifive.com>
Date: Mon, 30 Nov 2026 00:51:23 -0800
Subject: [PATCH 2/2] fixup! rename

---
 .../clang/Basic/riscv_sifive_vector.td        |   4 +-
 .../non-policy/non-overloaded/sf_vfext_vf2.c  | 134 ++++++++++++
 .../non-policy/non-overloaded/vfext_vf2.c     | 134 ------------
 .../non-policy/overloaded/sf_vfext_vf2.c      | 134 ++++++++++++
 .../non-policy/overloaded/vfext_vf2.c         | 134 ------------
 .../sf_vfext_vf2.c}                           | 192 +++++++++---------
 .../vfext_vf2.c => overloaded/sf_vfext_vf2.c} | 192 +++++++++---------
 7 files changed, 462 insertions(+), 462 deletions(-)
 create mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/sf_vfext_vf2.c
 delete mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vfext_vf2.c
 create mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/sf_vfext_vf2.c
 delete mode 100644 clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vfext_vf2.c
 rename clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/{overloaded/vfext_vf2.c => non-overloaded/sf_vfext_vf2.c} (52%)
 rename clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/{non-overloaded/vfext_vf2.c => overloaded/sf_vfext_vf2.c} (53%)

diff --git a/clang/include/clang/Basic/riscv_sifive_vector.td b/clang/include/clang/Basic/riscv_sifive_vector.td
index d74944afb2db5a..2a438e2746bfd3 100644
--- a/clang/include/clang/Basic/riscv_sifive_vector.td
+++ b/clang/include/clang/Basic/riscv_sifive_vector.td
@@ -405,6 +405,6 @@ let RequiredFeatures = ["xsfmm64a64f"] in
 let Log2LMUL = [-2, -1, 0, 1, 2, 3],
     RequiredFeatures = ["xsfvfofp4min"],
     UnMaskedPolicyScheme = HasPassthruOperand in {
-  let OverloadedName = "vfext_vf2" in
-    defm : RVVConvBuiltinSet<"vfext_vf2", "a", [["v", "vn"]]>;
+  let OverloadedName = "sf_vfext_vf2" in
+    defm : RVVConvBuiltinSet<"sf_vfext_vf2", "a", [["v", "vn"]]>;
 }
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/sf_vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/sf_vfext_vf2.c
new file mode 100644
index 00000000000000..767ebe8618cb40
--- /dev/null
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/sf_vfext_vf2.c
@@ -0,0 +1,134 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// REQUIRES: riscv-registered-target
+// RUN: %clang_cc1 -triple riscv64 -target-feature +v \
+// RUN:   -target-feature +xsfvfofp4min -disable-O0-optnone \
+// RUN:   -emit-llvm %s -o - | opt -S -passes=mem2reg | \
+// RUN:   FileCheck --check-prefix=CHECK-RV64 %s
+
+#include <sifive_vector.h>
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4(
+// CHECK-RV64-SAME: <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4(vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3mf4(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2(
+// CHECK-RV64-SAME: <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2(vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3mf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1(
+// CHECK-RV64-SAME: <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1(vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3m1(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2(
+// CHECK-RV64-SAME: <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2(vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3m2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4(
+// CHECK-RV64-SAME: <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4(vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3m4(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8(
+// CHECK-RV64-SAME: <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8(vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3m8(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_m(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_m(vbool32_t vm, vfloat4e2m1mf8_t vs2,
+                                            size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3mf4_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_m(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_m(vbool16_t vm, vfloat4e2m1mf4_t vs2,
+                                            size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3mf2_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_m(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_m(vbool8_t vm, vfloat4e2m1mf2_t vs2,
+                                          size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3m1_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_m(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_m(vbool4_t vm, vfloat4e2m1m1_t vs2,
+                                          size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3m2_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_m(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_m(vbool2_t vm, vfloat4e2m1m2_t vs2,
+                                          size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3m4_m(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_m(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_m(vbool1_t vm, vfloat4e2m1m4_t vs2,
+                                          size_t vl) {
+  return __riscv_sf_vfext_vf2_f8e4m3m8_m(vm, vs2, vl);
+}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vfext_vf2.c
deleted file mode 100644
index cec2414410cccc..00000000000000
--- a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/non-overloaded/vfext_vf2.c
+++ /dev/null
@@ -1,134 +0,0 @@
-// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
-// REQUIRES: riscv-registered-target
-// RUN: %clang_cc1 -triple riscv64 -target-feature +v \
-// RUN:   -target-feature +xsfvfofp4min -disable-O0-optnone \
-// RUN:   -emit-llvm %s -o - | opt -S -passes=mem2reg | \
-// RUN:   FileCheck --check-prefix=CHECK-RV64 %s
-
-#include <sifive_vector.h>
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4(
-// CHECK-RV64-SAME: <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
-//
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4(vfloat4e2m1mf8_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf4(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2(
-// CHECK-RV64-SAME: <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
-//
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2(vfloat4e2m1mf4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf2(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1(
-// CHECK-RV64-SAME: <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
-//
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1(vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m1(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2(
-// CHECK-RV64-SAME: <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
-//
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2(vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m2(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4(
-// CHECK-RV64-SAME: <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
-//
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4(vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m4(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8(
-// CHECK-RV64-SAME: <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
-//
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8(vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m8(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_m(
-// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
-//
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_m(vbool32_t vm, vfloat4e2m1mf8_t vs2,
-                                            size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf4_m(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_m(
-// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
-//
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_m(vbool16_t vm, vfloat4e2m1mf4_t vs2,
-                                            size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf2_m(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_m(
-// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
-//
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_m(vbool8_t vm, vfloat4e2m1mf2_t vs2,
-                                          size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m1_m(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_m(
-// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
-//
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_m(vbool4_t vm, vfloat4e2m1m1_t vs2,
-                                          size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m2_m(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_m(
-// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
-//
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_m(vbool2_t vm, vfloat4e2m1m2_t vs2,
-                                          size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m4_m(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_m(
-// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
-//
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_m(vbool1_t vm, vfloat4e2m1m4_t vs2,
-                                          size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m8_m(vm, vs2, vl);
-}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/sf_vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/sf_vfext_vf2.c
new file mode 100644
index 00000000000000..c786ce4aea9f1d
--- /dev/null
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/sf_vfext_vf2.c
@@ -0,0 +1,134 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// REQUIRES: riscv-registered-target
+// RUN: %clang_cc1 -triple riscv64 -target-feature +v \
+// RUN:   -target-feature +xsfvfofp4min -disable-O0-optnone \
+// RUN:   -emit-llvm %s -o - | opt -S -passes=mem2reg | \
+// RUN:   FileCheck --check-prefix=CHECK-RV64 %s
+
+#include <sifive_vector.h>
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4(
+// CHECK-RV64-SAME: <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4(vfloat4e2m1mf8_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2(
+// CHECK-RV64-SAME: <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2(vfloat4e2m1mf4_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1(
+// CHECK-RV64-SAME: <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1(vfloat4e2m1mf2_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2(
+// CHECK-RV64-SAME: <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2(vfloat4e2m1m1_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4(
+// CHECK-RV64-SAME: <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4(vfloat4e2m1m2_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8(
+// CHECK-RV64-SAME: <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8(vfloat4e2m1m4_t vs2, size_t vl) {
+  return __riscv_sf_vfext_vf2(vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_m(
+// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
+//
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_m(vbool32_t vm, vfloat4e2m1mf8_t vs2,
+                                            size_t vl) {
+  return __riscv_sf_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_m(
+// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
+//
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_m(vbool16_t vm, vfloat4e2m1mf4_t vs2,
+                                            size_t vl) {
+  return __riscv_sf_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_m(
+// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
+//
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_m(vbool8_t vm, vfloat4e2m1mf2_t vs2,
+                                          size_t vl) {
+  return __riscv_sf_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_m(
+// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
+//
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_m(vbool4_t vm, vfloat4e2m1m1_t vs2,
+                                          size_t vl) {
+  return __riscv_sf_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_m(
+// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
+//
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_m(vbool2_t vm, vfloat4e2m1m2_t vs2,
+                                          size_t vl) {
+  return __riscv_sf_vfext_vf2(vm, vs2, vl);
+}
+
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_m(
+// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
+// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 3)
+// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
+//
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_m(vbool1_t vm, vfloat4e2m1m4_t vs2,
+                                          size_t vl) {
+  return __riscv_sf_vfext_vf2(vm, vs2, vl);
+}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vfext_vf2.c
deleted file mode 100644
index cd1bad42531793..00000000000000
--- a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/vfext_vf2.c
+++ /dev/null
@@ -1,134 +0,0 @@
-// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
-// REQUIRES: riscv-registered-target
-// RUN: %clang_cc1 -triple riscv64 -target-feature +v \
-// RUN:   -target-feature +xsfvfofp4min -disable-O0-optnone \
-// RUN:   -emit-llvm %s -o - | opt -S -passes=mem2reg | \
-// RUN:   FileCheck --check-prefix=CHECK-RV64 %s
-
-#include <sifive_vector.h>
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4(
-// CHECK-RV64-SAME: <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
-//
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4(vfloat4e2m1mf8_t vs2, size_t vl) {
-  return __riscv_vfext_vf2(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2(
-// CHECK-RV64-SAME: <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
-//
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2(vfloat4e2m1mf4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1(
-// CHECK-RV64-SAME: <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
-//
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1(vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2(
-// CHECK-RV64-SAME: <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
-//
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2(vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4(
-// CHECK-RV64-SAME: <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
-//
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4(vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8(
-// CHECK-RV64-SAME: <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], i64 [[VL]])
-// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
-//
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8(vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2(vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_m(
-// CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> poison, <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
-//
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_m(vbool32_t vm, vfloat4e2m1mf8_t vs2,
-                                            size_t vl) {
-  return __riscv_vfext_vf2(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_m(
-// CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> poison, <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
-//
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_m(vbool16_t vm, vfloat4e2m1mf4_t vs2,
-                                            size_t vl) {
-  return __riscv_vfext_vf2(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_m(
-// CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> poison, <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
-//
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_m(vbool8_t vm, vfloat4e2m1mf2_t vs2,
-                                          size_t vl) {
-  return __riscv_vfext_vf2(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_m(
-// CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> poison, <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
-//
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_m(vbool4_t vm, vfloat4e2m1m1_t vs2,
-                                          size_t vl) {
-  return __riscv_vfext_vf2(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_m(
-// CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> poison, <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
-//
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_m(vbool2_t vm, vfloat4e2m1m2_t vs2,
-                                          size_t vl) {
-  return __riscv_vfext_vf2(vm, vs2, vl);
-}
-
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_m(
-// CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
-// CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> poison, <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 3)
-// CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
-//
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_m(vbool1_t vm, vfloat4e2m1m4_t vs2,
-                                          size_t vl) {
-  return __riscv_vfext_vf2(vm, vs2, vl);
-}
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/sf_vfext_vf2.c
similarity index 52%
rename from clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/vfext_vf2.c
rename to clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/sf_vfext_vf2.c
index ae389920287f7c..fcd6e33ea58aa9 100644
--- a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/vfext_vf2.c
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/sf_vfext_vf2.c
@@ -7,270 +7,270 @@
 
 #include <sifive_vector.h>
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_tu(
 // CHECK-RV64-SAME: <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
 //
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tu(vfloat8e4m3mf4_t vd,
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_tu(vfloat8e4m3mf4_t vd,
                                              vfloat4e2m1mf8_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3mf4_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_tu(
 // CHECK-RV64-SAME: <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
 //
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tu(vfloat8e4m3mf2_t vd,
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_tu(vfloat8e4m3mf2_t vd,
                                              vfloat4e2m1mf4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3mf2_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_tu(
 // CHECK-RV64-SAME: <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
 //
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tu(vfloat8e4m3m1_t vd,
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_tu(vfloat8e4m3m1_t vd,
                                            vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m1_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_tu(
 // CHECK-RV64-SAME: <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
 //
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tu(vfloat8e4m3m2_t vd,
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_tu(vfloat8e4m3m2_t vd,
                                            vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m2_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_tu(
 // CHECK-RV64-SAME: <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
 //
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tu(vfloat8e4m3m4_t vd,
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_tu(vfloat8e4m3m4_t vd,
                                            vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m4_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_tu(
 // CHECK-RV64-SAME: <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
 //
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tu(vfloat8e4m3m8_t vd,
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_tu(vfloat8e4m3m8_t vd,
                                            vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m8_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_tum(
 // CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
 //
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tum(vbool32_t vm, vfloat8e4m3mf4_t vd,
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_tum(vbool32_t vm, vfloat8e4m3mf4_t vd,
                                               vfloat4e2m1mf8_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3mf4_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_tum(
 // CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
 //
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tum(vbool16_t vm, vfloat8e4m3mf2_t vd,
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_tum(vbool16_t vm, vfloat8e4m3mf2_t vd,
                                               vfloat4e2m1mf4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3mf2_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_tum(
 // CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
 //
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tum(vbool8_t vm, vfloat8e4m3m1_t vd,
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_tum(vbool8_t vm, vfloat8e4m3m1_t vd,
                                             vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m1_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_tum(
 // CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
 //
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tum(vbool4_t vm, vfloat8e4m3m2_t vd,
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_tum(vbool4_t vm, vfloat8e4m3m2_t vd,
                                             vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m2_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_tum(
 // CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
 //
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tum(vbool2_t vm, vfloat8e4m3m4_t vd,
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_tum(vbool2_t vm, vfloat8e4m3m4_t vd,
                                             vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m4_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_tum(
 // CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
 //
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tum(vbool1_t vm, vfloat8e4m3m8_t vd,
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_tum(vbool1_t vm, vfloat8e4m3m8_t vd,
                                             vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m8_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_tumu(
 // CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
 //
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tumu(vbool32_t vm,
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_tumu(vbool32_t vm,
                                                vfloat8e4m3mf4_t vd,
                                                vfloat4e2m1mf8_t vs2,
                                                size_t vl) {
-  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3mf4_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_tumu(
 // CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
 //
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tumu(vbool16_t vm,
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_tumu(vbool16_t vm,
                                                vfloat8e4m3mf2_t vd,
                                                vfloat4e2m1mf4_t vs2,
                                                size_t vl) {
-  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3mf2_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_tumu(
 // CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
 //
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tumu(vbool8_t vm, vfloat8e4m3m1_t vd,
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_tumu(vbool8_t vm, vfloat8e4m3m1_t vd,
                                              vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m1_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_tumu(
 // CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
 //
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tumu(vbool4_t vm, vfloat8e4m3m2_t vd,
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_tumu(vbool4_t vm, vfloat8e4m3m2_t vd,
                                              vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m2_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_tumu(
 // CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
 //
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tumu(vbool2_t vm, vfloat8e4m3m4_t vd,
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_tumu(vbool2_t vm, vfloat8e4m3m4_t vd,
                                              vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m4_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_tumu(
 // CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
 //
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tumu(vbool1_t vm, vfloat8e4m3m8_t vd,
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_tumu(vbool1_t vm, vfloat8e4m3m8_t vd,
                                              vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m8_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_mu(
 // CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
 //
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_mu(vbool32_t vm, vfloat8e4m3mf4_t vd,
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_mu(vbool32_t vm, vfloat8e4m3mf4_t vd,
                                              vfloat4e2m1mf8_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3mf4_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_mu(
 // CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
 //
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_mu(vbool16_t vm, vfloat8e4m3mf2_t vd,
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_mu(vbool16_t vm, vfloat8e4m3mf2_t vd,
                                              vfloat4e2m1mf4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3mf2_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_mu(
 // CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
 //
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_mu(vbool8_t vm, vfloat8e4m3m1_t vd,
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_mu(vbool8_t vm, vfloat8e4m3m1_t vd,
                                            vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m1_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_mu(
 // CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
 //
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_mu(vbool4_t vm, vfloat8e4m3m2_t vd,
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_mu(vbool4_t vm, vfloat8e4m3m2_t vd,
                                            vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m2_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_mu(
 // CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
 //
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_mu(vbool2_t vm, vfloat8e4m3m4_t vd,
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_mu(vbool2_t vm, vfloat8e4m3m4_t vd,
                                            vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m4_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_mu(
 // CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
 //
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_mu(vbool1_t vm, vfloat8e4m3m8_t vd,
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_mu(vbool1_t vm, vfloat8e4m3m8_t vd,
                                            vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_f8e4m3m8_mu(vm, vd, vs2, vl);
 }
diff --git a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/vfext_vf2.c b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/sf_vfext_vf2.c
similarity index 53%
rename from clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/vfext_vf2.c
rename to clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/sf_vfext_vf2.c
index c6731c1ad95062..3297ff5f33c7ad 100644
--- a/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/non-overloaded/vfext_vf2.c
+++ b/clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/policy/overloaded/sf_vfext_vf2.c
@@ -7,270 +7,270 @@
 
 #include <sifive_vector.h>
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_tu(
 // CHECK-RV64-SAME: <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0:[0-9]+]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
 //
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tu(vfloat8e4m3mf4_t vd,
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_tu(vfloat8e4m3mf4_t vd,
                                              vfloat4e2m1mf8_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf4_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_tu(
 // CHECK-RV64-SAME: <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
 //
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tu(vfloat8e4m3mf2_t vd,
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_tu(vfloat8e4m3mf2_t vd,
                                              vfloat4e2m1mf4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf2_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_tu(
 // CHECK-RV64-SAME: <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
 //
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tu(vfloat8e4m3m1_t vd,
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_tu(vfloat8e4m3m1_t vd,
                                            vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m1_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_tu(
 // CHECK-RV64-SAME: <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
 //
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tu(vfloat8e4m3m2_t vd,
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_tu(vfloat8e4m3m2_t vd,
                                            vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m2_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_tu(
 // CHECK-RV64-SAME: <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
 //
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tu(vfloat8e4m3m4_t vd,
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_tu(vfloat8e4m3m4_t vd,
                                            vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m4_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_tu(
 // CHECK-RV64-SAME: <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], i64 [[VL]])
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], i64 [[VL]])
 // CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
 //
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tu(vfloat8e4m3m8_t vd,
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_tu(vfloat8e4m3m8_t vd,
                                            vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m8_tu(vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tu(vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_tum(
 // CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
 //
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tum(vbool32_t vm, vfloat8e4m3mf4_t vd,
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_tum(vbool32_t vm, vfloat8e4m3mf4_t vd,
                                               vfloat4e2m1mf8_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf4_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_tum(
 // CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
 //
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tum(vbool16_t vm, vfloat8e4m3mf2_t vd,
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_tum(vbool16_t vm, vfloat8e4m3mf2_t vd,
                                               vfloat4e2m1mf4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf2_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_tum(
 // CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
 //
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tum(vbool8_t vm, vfloat8e4m3m1_t vd,
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_tum(vbool8_t vm, vfloat8e4m3m1_t vd,
                                             vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m1_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_tum(
 // CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
 //
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tum(vbool4_t vm, vfloat8e4m3m2_t vd,
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_tum(vbool4_t vm, vfloat8e4m3m2_t vd,
                                             vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m2_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_tum(
 // CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
 //
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tum(vbool2_t vm, vfloat8e4m3m4_t vd,
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_tum(vbool2_t vm, vfloat8e4m3m4_t vd,
                                             vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m4_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tum(
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_tum(
 // CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 2)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 2)
 // CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
 //
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tum(vbool1_t vm, vfloat8e4m3m8_t vd,
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_tum(vbool1_t vm, vfloat8e4m3m8_t vd,
                                             vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m8_tum(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tum(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_tumu(
 // CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
 //
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_tumu(vbool32_t vm,
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_tumu(vbool32_t vm,
                                                vfloat8e4m3mf4_t vd,
                                                vfloat4e2m1mf8_t vs2,
                                                size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf4_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_tumu(
 // CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
 //
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_tumu(vbool16_t vm,
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_tumu(vbool16_t vm,
                                                vfloat8e4m3mf2_t vd,
                                                vfloat4e2m1mf4_t vs2,
                                                size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf2_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_tumu(
 // CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
 //
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_tumu(vbool8_t vm, vfloat8e4m3m1_t vd,
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_tumu(vbool8_t vm, vfloat8e4m3m1_t vd,
                                              vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m1_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_tumu(
 // CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
 //
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_tumu(vbool4_t vm, vfloat8e4m3m2_t vd,
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_tumu(vbool4_t vm, vfloat8e4m3m2_t vd,
                                              vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m2_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_tumu(
 // CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
 //
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_tumu(vbool2_t vm, vfloat8e4m3m4_t vd,
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_tumu(vbool2_t vm, vfloat8e4m3m4_t vd,
                                              vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m4_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_tumu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_tumu(
 // CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 0)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 0)
 // CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
 //
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_tumu(vbool1_t vm, vfloat8e4m3m8_t vd,
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_tumu(vbool1_t vm, vfloat8e4m3m8_t vd,
                                              vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m8_tumu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_tumu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_vfext_vf2_f8e4m3mf4_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 2 x i8> @test_sf_vfext_vf2_f8e4m3mf4_mu(
 // CHECK-RV64-SAME: <vscale x 2 x i1> [[VM:%.*]], <vscale x 2 x i8> [[VD:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv2i8.nxv1i8.i64(<vscale x 2 x i8> [[VD]], <vscale x 1 x i8> [[VS2]], <vscale x 2 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 2 x i8> [[TMP0]]
 //
-vfloat8e4m3mf4_t test_vfext_vf2_f8e4m3mf4_mu(vbool32_t vm, vfloat8e4m3mf4_t vd,
+vfloat8e4m3mf4_t test_sf_vfext_vf2_f8e4m3mf4_mu(vbool32_t vm, vfloat8e4m3mf4_t vd,
                                              vfloat4e2m1mf8_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf4_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_vfext_vf2_f8e4m3mf2_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 4 x i8> @test_sf_vfext_vf2_f8e4m3mf2_mu(
 // CHECK-RV64-SAME: <vscale x 4 x i1> [[VM:%.*]], <vscale x 4 x i8> [[VD:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv4i8.nxv2i8.i64(<vscale x 4 x i8> [[VD]], <vscale x 2 x i8> [[VS2]], <vscale x 4 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 4 x i8> [[TMP0]]
 //
-vfloat8e4m3mf2_t test_vfext_vf2_f8e4m3mf2_mu(vbool16_t vm, vfloat8e4m3mf2_t vd,
+vfloat8e4m3mf2_t test_sf_vfext_vf2_f8e4m3mf2_mu(vbool16_t vm, vfloat8e4m3mf2_t vd,
                                              vfloat4e2m1mf4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3mf2_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_vfext_vf2_f8e4m3m1_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 8 x i8> @test_sf_vfext_vf2_f8e4m3m1_mu(
 // CHECK-RV64-SAME: <vscale x 8 x i1> [[VM:%.*]], <vscale x 8 x i8> [[VD:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv8i8.nxv4i8.i64(<vscale x 8 x i8> [[VD]], <vscale x 4 x i8> [[VS2]], <vscale x 8 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 8 x i8> [[TMP0]]
 //
-vfloat8e4m3m1_t test_vfext_vf2_f8e4m3m1_mu(vbool8_t vm, vfloat8e4m3m1_t vd,
+vfloat8e4m3m1_t test_sf_vfext_vf2_f8e4m3m1_mu(vbool8_t vm, vfloat8e4m3m1_t vd,
                                            vfloat4e2m1mf2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m1_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_vfext_vf2_f8e4m3m2_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 16 x i8> @test_sf_vfext_vf2_f8e4m3m2_mu(
 // CHECK-RV64-SAME: <vscale x 16 x i1> [[VM:%.*]], <vscale x 16 x i8> [[VD:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv16i8.nxv8i8.i64(<vscale x 16 x i8> [[VD]], <vscale x 8 x i8> [[VS2]], <vscale x 16 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 16 x i8> [[TMP0]]
 //
-vfloat8e4m3m2_t test_vfext_vf2_f8e4m3m2_mu(vbool4_t vm, vfloat8e4m3m2_t vd,
+vfloat8e4m3m2_t test_sf_vfext_vf2_f8e4m3m2_mu(vbool4_t vm, vfloat8e4m3m2_t vd,
                                            vfloat4e2m1m1_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m2_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_vfext_vf2_f8e4m3m4_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 32 x i8> @test_sf_vfext_vf2_f8e4m3m4_mu(
 // CHECK-RV64-SAME: <vscale x 32 x i1> [[VM:%.*]], <vscale x 32 x i8> [[VD:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv32i8.nxv16i8.i64(<vscale x 32 x i8> [[VD]], <vscale x 16 x i8> [[VS2]], <vscale x 32 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 32 x i8> [[TMP0]]
 //
-vfloat8e4m3m4_t test_vfext_vf2_f8e4m3m4_mu(vbool2_t vm, vfloat8e4m3m4_t vd,
+vfloat8e4m3m4_t test_sf_vfext_vf2_f8e4m3m4_mu(vbool2_t vm, vfloat8e4m3m4_t vd,
                                            vfloat4e2m1m2_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m4_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_mu(vm, vd, vs2, vl);
 }
 
-// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_vfext_vf2_f8e4m3m8_mu(
+// CHECK-RV64-LABEL: define dso_local <vscale x 64 x i8> @test_sf_vfext_vf2_f8e4m3m8_mu(
 // CHECK-RV64-SAME: <vscale x 64 x i1> [[VM:%.*]], <vscale x 64 x i8> [[VD:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 noundef [[VL:%.*]]) #[[ATTR0]] {
 // CHECK-RV64-NEXT:  [[ENTRY:.*:]]
-// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 1)
+// CHECK-RV64-NEXT:    [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.sf.vfext.vf2.mask.nxv64i8.nxv32i8.i64(<vscale x 64 x i8> [[VD]], <vscale x 32 x i8> [[VS2]], <vscale x 64 x i1> [[VM]], i64 [[VL]], i64 1)
 // CHECK-RV64-NEXT:    ret <vscale x 64 x i8> [[TMP0]]
 //
-vfloat8e4m3m8_t test_vfext_vf2_f8e4m3m8_mu(vbool1_t vm, vfloat8e4m3m8_t vd,
+vfloat8e4m3m8_t test_sf_vfext_vf2_f8e4m3m8_mu(vbool1_t vm, vfloat8e4m3m8_t vd,
                                            vfloat4e2m1m4_t vs2, size_t vl) {
-  return __riscv_vfext_vf2_f8e4m3m8_mu(vm, vd, vs2, vl);
+  return __riscv_sf_vfext_vf2_mu(vm, vd, vs2, vl);
 }



More information about the cfe-commits mailing list