diff options
author | David Faust <david.faust@oracle.com> | 2023-07-27 10:56:29 -0700 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2023-07-27 11:55:27 -0700 |
commit | 31d18ff44244d1fe3ae913a5a1957d82059cb328 (patch) | |
tree | 15dd9729344ef89ca599018a38c417c96c878302 /gcc/doc | |
parent | d023775c1180730ce15adfe191a98c174618f814 (diff) | |
download | gcc-31d18ff44244d1fe3ae913a5a1957d82059cb328.zip gcc-31d18ff44244d1fe3ae913a5a1957d82059cb328.tar.gz gcc-31d18ff44244d1fe3ae913a5a1957d82059cb328.tar.bz2 |
bpf: correct pseudo-C template for add3 and sub3
The pseudo-C output templates for these instructions were incorrectly
using operand 1 rather than operand 2 on the RHS, which led to some
very incorrect assembly generation with -masm=pseudoc.
gcc/
* config/bpf/bpf.md (add<AM:mode>3): Use %w2 instead of %w1
in pseudo-C dialect output template.
(sub<AM:mode>3): Likewise.
gcc/testsuite/
* gcc.target/bpf/alu-2.c: New test.
* gcc.target/bpf/alu-pseudoc-2.c: Likewise.
Diffstat (limited to 'gcc/doc')
0 files changed, 0 insertions, 0 deletions