diff options
author | David Faust <david.faust@oracle.com> | 2023-01-10 10:53:12 -0800 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2023-01-11 08:36:48 -0800 |
commit | c7279270a2deda81eaeba37a87d721bee0ed6004 (patch) | |
tree | 238d9aaa375eb8c178d3331cc06469d8a13eaae5 /gcc/function.cc | |
parent | 3e1cba12a8d71e70235a9a9b8f1a237a561db3e7 (diff) | |
download | gcc-c7279270a2deda81eaeba37a87d721bee0ed6004.zip gcc-c7279270a2deda81eaeba37a87d721bee0ed6004.tar.gz gcc-c7279270a2deda81eaeba37a87d721bee0ed6004.tar.bz2 |
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.
Diffstat (limited to 'gcc/function.cc')
0 files changed, 0 insertions, 0 deletions