]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Remove FRM for vfncvt.rod instruction
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Wed, 31 May 2023 10:47:03 +0000 (18:47 +0800)
committerPan Li <pan2.li@intel.com>
Wed, 31 May 2023 13:51:02 +0000 (21:51 +0800)
Apparently, vfncvt.rod rounding mode is encoded, so we don't need FRM.

gcc/ChangeLog:

* config/riscv/vector.md: Remove FRM.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/config/riscv/vector.md

index cd696da5d8987e60ed36f24d9e916ded31ca9081..60f052bcec9228221aed6071d14f18b955d7cf21 100644 (file)
             (match_operand 5 "const_int_operand"                  "  i,  i,  i,  i,    i,    i")
             (match_operand 6 "const_int_operand"                  "  i,  i,  i,  i,    i,    i")
             (match_operand 7 "const_int_operand"                  "  i,  i,  i,  i,    i,    i")
-            (match_operand 8 "const_int_operand"                  "  i,  i,  i,  i,    i,    i")
             (reg:SI VL_REGNUM)
-            (reg:SI VTYPE_REGNUM)
-            (reg:SI FRM_REGNUM)] UNSPEC_VPREDICATE)
+            (reg:SI VTYPE_REGNUM)] UNSPEC_VPREDICATE)
          (unspec:<V_DOUBLE_TRUNC>
            [(float_truncate:<V_DOUBLE_TRUNC>
               (match_operand:VWEXTF 3 "register_operand"          "  0,  0,  0,  0,   vr,   vr"))] UNSPEC_ROD)