1 //===-- RISCVInstrInfoZvfbf.td - 'Zvfbf*' instructions -----*- tablegen -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file describes the RISC-V instructions from the standard 'Zvfbfmin'
10 // extension, providing vector conversion instructions for BFloat16.
11 // This version is still experimental as the 'Zvfbfmin' extension hasn't been
14 //===----------------------------------------------------------------------===//
16 //===----------------------------------------------------------------------===//
18 //===----------------------------------------------------------------------===//
20 let Predicates = [HasStdExtZvfbfmin], Constraints = "@earlyclobber $vd",
21 mayRaiseFPException = true in {
22 let RVVConstraint = WidenCvt in
23 defm VFWCVTBF16_F_F_V : VWCVTF_FV_VS2<"vfwcvtbf16.f.f.v", 0b010010, 0b01101>;
25 defm VFNCVTBF16_F_F_W : VNCVTF_FV_VS2<"vfncvtbf16.f.f.w", 0b010010, 0b11101>;
28 let Predicates = [HasStdExtZvfbfwma],
29 Constraints = "@earlyclobber $vd_wb, $vd = $vd_wb",
30 RVVConstraint = WidenV, Uses = [FRM], mayRaiseFPException = true in {
31 defm VFWMACCBF16_V : VWMAC_FV_V_F<"vfwmaccbf16", 0b111011>;