https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108293

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Faust <dfa...@gcc.gnu.org>:

https://gcc.gnu.org/g:c7279270a2deda81eaeba37a87d721bee0ed6004

commit r13-5110-gc7279270a2deda81eaeba37a87d721bee0ed6004
Author: David Faust <david.fa...@oracle.com>
Date:   Tue Jan 10 10:53:12 2023 -0800

    bpf: correct bpf_print_operand for floats [PR108293]

    The existing logic in bpf_print_operand was only correct for integral
    CONST_DOUBLEs, and emitted garbage for floating point modes. Fix it so
    floating point mode operands are correctly handled.

            PR target/108293

    gcc/

            * config/bpf/bpf.cc (bpf_print_operand): Correct handling for
            floating point modes.

    gcc/testsuite/

            * gcc.target/bpf/double-1.c: New test.
            * gcc.target/bpf/double-2.c: New test.
            * gcc.target/bpf/float-1.c: New test.

Reply via email to