[PATCH] D147733: Set rounding_mode to tonearest in presence of a #pragma STDC FENV_ACCESS OFF.

Zahira Ammarguellat via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 10 11:38:33 PDT 2023


zahiraam added inline comments.


================
Comment at: clang/test/CodeGen/pragma-fenv_access.c:239
+// CHECK-LABEL: @func_20
+// STRICT: call float @llvm.experimental.constrained.fadd.f32(float {{.*}}, float {{.*}}, metadata !"round.tonearest", metadata !"fpexcept.strict")
+// DEFAULT: fadd float
----------------
pengfei wrote:
> Maybe use `float %0, float %1` to reduce unnecessary differences.
Andy has noticed that the rest of the test is using the %, so to stay consistent I have put back the %. 


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

https://reviews.llvm.org/D147733



More information about the cfe-commits mailing list