This patch adds an implementation of ieee_is_normal using a call
to llvm.is.fpclass.
Depends on D144649
Paths
| Differential D144966
[flang] Implement ieee_is_normal ClosedPublic Authored by DavidTruby on Feb 28 2023, 7:14 AM.
Details Summary This patch adds an implementation of ieee_is_normal using a call Depends on D144649
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Mar 2 2023, 8:04 AM Closed by commit rG75ddabd520db: [flang] Implement ieee_is_normal (authored by DavidTruby). · Explain WhyMar 6 2023, 6:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 501127 flang/lib/Evaluate/fold-logical.cpp
flang/lib/Optimizer/Builder/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/ieee_is_normal.f90
|
Did you miss the zero checks (i.e bits 5 and 6)?
`The result has the value true if IEEE_CLASS (X) has one of the values IEEE_NEGATIVE_-
NORMAL, IEEE_NEGATIVE_ZERO, IEEE_POSITIVE_ZERO or IEEE_POSITIVE_NORMAL; otherwise,
the result has the value false.`