aaron.ballman added inline comments.
================
Comment at: clang/test/CodeGen/eval-method-fast-math.c:83
+#pragma float_control(pop)
+
+int getFPEvalMethod() {
----------------
What should happen in a case like this?
```
int whatever(float a, float b, float c) {
#pragma float_control(precise, off)
res = a + b + c;
int val = __FLT_EVAL_METHOD__;
#pragma float_control(precise, on)
return __FLT_EVAL_METHOD__;
}
```
I would expect that `int val` would hold `-1` and the return statement would
return `0`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121122/new/
https://reviews.llvm.org/D121122
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits