sepavloff added a comment.

Probably there is an issue with code generation. The source:

  constexpr float func_01(float x, float y) {
    return x + y;
  }
  
  float V1 = func_01(1.0F, 0x0.000001p0F);

compiled with '-frounding-math' must produce dynamic initializer. It however is 
evaluated at compile time.



================
Comment at: clang/test/SemaCXX/rounding-math.cpp:5
+
+#define fold(x) (__builtin_constant_p(x) ? (x) : (x))
+
----------------
It is not used.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89360/new/

https://reviews.llvm.org/D89360

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to