This revision was automatically updated to reflect the committed changes.
Closed by commit rG6d3b779792fb: Set rounding_mode to
tonearest with #pragma STDC FENV_ACCESS OFF. (authored
by zahiraam).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
andrew.w.kaylor accepted this revision.
andrew.w.kaylor added a comment.
Looks good to me.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147733/new/
https://reviews.llvm.org/D147733
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
zahiraam updated this revision to Diff 512388.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147733/new/
https://reviews.llvm.org/D147733
Files:
clang/lib/Sema/SemaAttr.cpp
clang/test/CodeGen/pragma-fenv_access.c
Index: clang/test/CodeGen/pragma-fenv_access.c
zahiraam 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
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
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:
zahiraam updated this revision to Diff 512203.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147733/new/
https://reviews.llvm.org/D147733
Files:
clang/lib/Sema/SemaAttr.cpp
clang/test/CodeGen/pragma-fenv_access.c
Index: clang/test/CodeGen/pragma-fenv_access.c
zahiraam updated this revision to Diff 512108.
zahiraam marked an inline comment as done.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147733/new/
https://reviews.llvm.org/D147733
Files:
clang/lib/Sema/SemaAttr.cpp
clang/test/CodeGen/pragma-fenv_access.c
Index:
pengfei accepted this revision.
pengfei added a comment.
This revision is now accepted and ready to land.
The change makes more sense to me, thanks!
Comment at: clang/test/CodeGen/pragma-fenv_access.c:239
+// CHECK-LABEL: @func_20
+// STRICT: call float
zahiraam updated this revision to Diff 511760.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147733/new/
https://reviews.llvm.org/D147733
Files:
clang/lib/Sema/SemaAttr.cpp
clang/test/CodeGen/pragma-fenv_access.c
Index: clang/test/CodeGen/pragma-fenv_access.c
zahiraam added inline comments.
Comment at: clang/lib/Sema/SemaAttr.cpp:1340
+ if (!IsEnabled)
+NewFPFeatures.setDisallowFenvAccess(IsEnabled);
FpPragmaStack.Act(Loc, PSK_Set, StringRef(), NewFPFeatures);
andrew.w.kaylor wrote:
> Why is this only needed
andrew.w.kaylor 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")
+//
andrew.w.kaylor added inline comments.
Comment at: clang/lib/Sema/SemaAttr.cpp:1340
+ if (!IsEnabled)
+NewFPFeatures.setDisallowFenvAccess(IsEnabled);
FpPragmaStack.Act(Loc, PSK_Set, StringRef(), NewFPFeatures);
Why is this only needed for "!IsEnabled"?
pengfei 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:
pengfei added a comment.
Remove the `fenv_04_06.patch`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147733/new/
https://reviews.llvm.org/D147733
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
zahiraam updated this revision to Diff 511522.
Herald added subscribers: jplehr, sstefan1, aheejin.
Herald added a reviewer: jdoerfert.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147733/new/
https://reviews.llvm.org/D147733
Files:
clang/include/clang/Basic/LangOptions.h
zahiraam created this revision.
zahiraam added reviewers: andrew.w.kaylor, pengfei.
Herald added a project: All.
zahiraam requested review of this revision.
Herald added a project: clang.
In strict mode the 'roundin_mode' is set to 'dynamic'. Using this pragma to get
out of strict mode doesn't
17 matches
Mail list logo