]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] RISC-V:add a more appropriate type attribute
authorZhangjin Liao <liaozhangjin@eswincomputing.com>
Wed, 23 Aug 2023 14:02:47 +0000 (08:02 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 23 Aug 2023 14:02:47 +0000 (08:02 -0600)
Due to the more accurate type attribute added to the clz, ctz, and pcnt
operations in https://github.com/gcc-mirror/gcc/commit/07e2576d6f3 the
same type attribute should be used here.

gcc/ChangeLog:

* config/riscv/bitmanip.md (*<bitmanip_optab>disi2_sext): Add a more
appropriate type attribute.

gcc/config/riscv/bitmanip.md

index 0c99152ffc8e615b03eb7936ad84eb62a9d80f2f..7b55528ee49af2aa064ea03dd8d7b5ccceedcd5d 100644 (file)
           (match_operand:DI 2 "const_int_operand")))]
   "TARGET_64BIT && TARGET_ZBB && ((INTVAL (operands[2]) & 0x3f) == 0x3f)"
   "<bitmanip_insn>w\t%0,%1"
-  [(set_attr "type" "bitmanip")
+  [(set_attr "type" "<bitmanip_insn>")
    (set_attr "mode" "SI")])
 
 (define_insn "*<bitmanip_optab>di2"