[PATCH] D121122: Set FLT_EVAL_METHOD to -1 when fast-math is enabled.

Zahira Ammarguellat via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 11 13:34:04 PST 2022


zahiraam added inline comments.


================
Comment at: clang/test/CodeGen/eval-method-fast-math.c:113-116
+#pragma float_control(precise, on)
+    int val2 = __FLT_EVAL_METHOD__;
+  }
+  return __FLT_EVAL_METHOD__;
----------------
aaron.ballman wrote:
> Shouldn't there be CHECK lines for these?
These are the ones:
 // CHECK: store i32 0
  // CHECK: ret i32 -1

they are truncated.  They are in reality these:
  store i32 -1, i32* %val1, align 4
  store i32 0, i32* %val2, align 4
Is that what you mean?


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

https://reviews.llvm.org/D121122



More information about the cfe-commits mailing list