]> git.ipfire.org Git - thirdparty/gcc.git/commit
bpf: don't print () in bpf_print_operand_address
authorDavid Faust <david.faust@oracle.com>
Tue, 25 Jul 2023 18:50:38 +0000 (11:50 -0700)
committerDavid Faust <david.faust@oracle.com>
Tue, 25 Jul 2023 22:40:10 +0000 (15:40 -0700)
commit8d36a0f5952d0abe475262356424826464612a88
tree299ebfa46e86b6553054bae4d423d980bdfc73ea
parent67357270772b9131f1780267485c9eba0331bd6f
bpf: don't print () in bpf_print_operand_address

Unfortunately, the pseudo-C dialect syntax used for some of the v3
atomic instructions clashes with unconditionally printing the
surrounding parentheses in bpf_print_operand_address.

Instead, place the parentheses in the output templates where needed.

gcc/

* config/bpf/bpf.cc (bpf_print_operand_address): Don't print
enclosing parentheses for pseudo-C dialect.
* config/bpf/bpf.md (zero_exdendhidi2): Add parentheses around
operands of pseudo-C dialect output templates where needed.
(zero_extendqidi2): Likewise.
(zero_extendsidi2): Likewise.
(*mov<MM:mode>): Likewise.
gcc/config/bpf/bpf.cc
gcc/config/bpf/bpf.md