aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-10-05 20:23:15 +0200
committerAldy Hernandez <aldyh@redhat.com>2022-10-10 11:39:42 +0200
commit98ad452728f51d6f44c7ff71e3d20c6c1dca20fd (patch)
treec1c9dd3ec59576e070deb906741388e0974f49d5 /gcc/value-range.h
parent9b8520fa9d745b3a974d5eb98cb4b9a9021b215d (diff)
downloadgcc-98ad452728f51d6f44c7ff71e3d20c6c1dca20fd.zip
gcc-98ad452728f51d6f44c7ff71e3d20c6c1dca20fd.tar.gz
gcc-98ad452728f51d6f44c7ff71e3d20c6c1dca20fd.tar.bz2
Add op1_range for __builtin_signbit.
This is the op1_range range-op entry for __builtin_signbit. It allows us to wind back through a call to signbit. For example, on the true side of if (__builtin_signbit(x_5) != 0) we can crop down the range of x_5 to: [frange] float [-Inf, -0.0 (-0x0.0p+0)] -NAN Similarly on the false side, we can crop to: [frange] float [0.0 (0x0.0p+0), +Inf] +NAN Tested on x86-64 Linux. gcc/ChangeLog: * gimple-range-op.cc: Add op1_range entry for __builtin_signbit. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/vrp-float-signbit-3.c: New test.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions