diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2022-10-10 14:56:42 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2022-10-11 15:52:24 +0200 |
commit | 706d8583706475fb103d1123e507f604dccb8fd3 (patch) | |
tree | 5b1b7bef4dba8ee7bf0a8b0b50afe73b6be9ad79 /gcc/value-range.cc | |
parent | fe7371e7f93c247b5d0e257ca2a68064123cd018 (diff) | |
download | gcc-706d8583706475fb103d1123e507f604dccb8fd3.zip gcc-706d8583706475fb103d1123e507f604dccb8fd3.tar.gz gcc-706d8583706475fb103d1123e507f604dccb8fd3.tar.bz2 |
Implement ABS_EXPR operator for frange.
Implementing ABS_EXPR allows us to fold certain __builtin_inf calls
since they are expanded into calls to involving ABS_EXPR.
This is an adaptation of the integer version.
gcc/ChangeLog:
* range-op-float.cc (class foperator_abs): New.
(floating_op_table::floating_op_table): Add ABS_EXPR entry.
gcc/testsuite/ChangeLog:
* gcc.dg/tree-ssa/vrp-float-abs-1.c: New test.
Diffstat (limited to 'gcc/value-range.cc')
0 files changed, 0 insertions, 0 deletions