[PATCH] D147733: Set rounding_mode to tonearest in presence of a #pragma STDC FENV_ACCESS OFF.
Andy Kaylor via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 10 16:25:27 PDT 2023
andrew.w.kaylor added inline comments.
================
Comment at: clang/test/CodeGen/pragma-fenv_access.c:4
// RUN: %clang_cc1 -fexperimental-strict-floating-point -ffp-exception-behavior=strict -triple %itanium_abi_triple -emit-llvm %s -o - -fms-extensions -DMS | FileCheck --check-prefixes=CHECK,STRICT %s
+// RUN %clang_cc1 -fexperimental-strict-floating-point -frounding-math -ffp-exception-behavior=strict -triple %itanium_abi_triple -emit-llvm %s -o - -fms-extensions -DMS | FileCheck --check-prefixes=CHECK,STRICT %s
// RUN: %clang_cc1 -fexperimental-strict-floating-point -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck --check-prefixes=CHECK,DEFAULT %s
----------------
Why doesn't this case use STRICT-RND? round.tonearest, but I don't understand why.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147733/new/
https://reviews.llvm.org/D147733
More information about the cfe-commits
mailing list