llvm-project
3849d3a3 - [KnownFPClass] Add trunc/floor/ceil and fix ppcf128 demanded classes (#229982)

Commit
39 days ago
[KnownFPClass] Add trunc/floor/ceil and fix ppcf128 demanded classes (#229982) Adds `KnownFPClass` functions for `trunc`, `floor`, and `ceil`. Also corrects the `DemandedSrcMask` code for `PPCDoubleDouble` in `SimplifyDemandedUseFPClass` for the integer-rounding functions. I've only added basic deductions for `PPCDoubleDouble` for now: - `trunc(x)` is only `+-inf` if `x == +-inf` (we already had this) - `floor(x)` is only `+inf` if `x == +inf` - `ceil(x)` is only `-inf` if `x == -inf` AI disclosure: I used Claude Opus 5 to help write the code and tests.
Author
Parents
Loading