Skip to content

Commit

Permalink
OPTABS: Extend the number of expanding instructions pattern
Browse files Browse the repository at this point in the history
We (RVV) is going to add a rounding mode operand into floating-point
instructions which have 11 operands.

Since we are going have intrinsic that is adding rounding mode argument:
riscv-non-isa/rvv-intrinsic-doc#226

This is the patch that is adding rounding mode operand in RISC-V port:
https://gcc.gnu.org/pipermail/gcc-patches/2023-May/618573.html
You can see there are 11 operands in these patterns.

gcc/ChangeLog:

	* optabs.cc (maybe_gen_insn): Add case to generate instruction
	that has 11 operands.

Signed-off-by: Juzhe-Zhong <juzhe.zhong@rivai.ai>
  • Loading branch information
Incarnation-p-lee committed May 15, 2023
1 parent 30adfb8 commit 47c4e96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/optabs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8139,6 +8139,11 @@ maybe_gen_insn (enum insn_code icode, unsigned int nops,
ops[3].value, ops[4].value, ops[5].value,
ops[6].value, ops[7].value, ops[8].value,
ops[9].value);
case 11:
return GEN_FCN (icode) (ops[0].value, ops[1].value, ops[2].value,
ops[3].value, ops[4].value, ops[5].value,
ops[6].value, ops[7].value, ops[8].value,
ops[9].value, ops[10].value);
}
gcc_unreachable ();
}
Expand Down

0 comments on commit 47c4e96

Please sign in to comment.