This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to describe a FMAC insn
- From: Qing Wei <dragonylffly at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 25 Dec 2007 22:00:08 -0800
- Subject: How to describe a FMAC insn
Hi,
Could someone give some hints of how to describe a FMAC (float mult and
add) insn in machine description, it matches d = b*c+a, which is a four
operands float instrution. With a glimp through the array optabs[] in
genopinit.c, it seems no OP handler could match FMAC operation? And I
found a function gen_add_mult() in loops.c, but it also seems not very
helpful. And another my question is, the element of optabs[] are arrays
indexed by machine code, for example, add_optab[] indexed by SI, DI, QI,
FI machine mode, not by number of operands, it seems it only matches 3
operands add operation,if I want to add a four operands add operation,
what should I do?
Qing