diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-11-10 01:12:49 +0100 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-11-10 01:16:07 +0100 |
commit | 8329ba359749830ef18a23a919fb87133446376a (patch) | |
tree | 963b748845861f6eb5e7324cc4cee92a00f965ed /gcc/tree-vect-loop.cc | |
parent | 9815ef77313cabcbf7886fd7f0832d9e8b7a4dfa (diff) | |
download | gcc-8329ba359749830ef18a23a919fb87133446376a.zip gcc-8329ba359749830ef18a23a919fb87133446376a.tar.gz gcc-8329ba359749830ef18a23a919fb87133446376a.tar.bz2 |
bpf: fix pseudo-c asm emitted for *mulsidi3_zeroextend
This patch fixes the pseudo-c BPF assembly syntax used for
*mulsidi3_zeroextend, which was being emitted as:
rN *= wM
instead of the proper way to denote a mul32 in pseudo-C syntax:
wN *= wM
Includes test.
Tested in bpf-unknown-none-gcc target in x86_64-linux-gnu host.
gcc/ChangeLog:
* config/bpf/bpf.cc (bpf_print_register): Accept modifier code 'W'
to force emitting register names using the wN form.
* config/bpf/bpf.md (*mulsidi3_zeroextend): Force operands to
always use wN written form in pseudo-C assembly syntax.
gcc/testsuite/ChangeLog:
* gcc.target/bpf/mulsidi3-zeroextend-pseudoc.c: New test.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions