Integer-to-float conversion was handled in constant evaluator with
default rounding mode. This change fixes the behavior and the conversion
is made using rounding mode stored in ImplicitCastExpr node.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/AST/ExprConstant.cpp | ||
---|---|---|
2652 | SrcType was already unused before, but not so is FPO. |
clang/lib/AST/ExprConstant.cpp | ||
---|---|---|
2652 | now so is FPO. |
Comment Actions
The changes look correct to me, but adding @jcranmer-intel for floating-point expertise.
clang/test/AST/const-fpfeatures.c | ||
---|---|---|
37 | Should we add a test without the -fexperimental-strict-floating-point on the RUN line? |
SrcType was already unused before, but not so is FPO.