]> git.ipfire.org Git - thirdparty/gcc.git/commit
bpf: fixed template for neg (added second operand)
authorCupertino Miranda <cupertino.miranda@oracle.com>
Fri, 21 Jul 2023 16:40:07 +0000 (17:40 +0100)
committerCupertino Miranda <cupertino.miranda@oracle.com>
Fri, 21 Jul 2023 18:14:33 +0000 (19:14 +0100)
commit13ed106723c7c01cddd769b0bac14c81399e6b40
tree62aba070131f424dbd45ed5348f43fd8e3c0fb54
parent2c00fe413ba8a9a9e287e6e752e2ef321e232606
bpf: fixed template for neg (added second operand)

This patch fixes define_insn for "neg" to support 2 operands.
Initial implementation assumed the format "neg %0" while the instruction
allows both a destination and source operands. The second operand can
either be a register or an immediate value.

gcc/ChangeLog:

* config/bpf/bpf.md: fixed template for neg instruction.
gcc/config/bpf/bpf.md