[PATCH] D144454: Add builtin for llvm set rounding
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 21 10:36:40 PST 2023
rjmccall added a comment.
New builtins should be documented in the user manual.
There are standard pragmas for changing the rounding mode, right? What's the interaction between the ability to set this dynamically with a builtin call and those pragmas?
================
Comment at: clang/test/CodeGen/builtins.c:283
+ res = __builtin_flt_rounds_set(1);
+ // CHECK: call void @llvm.set.rounding(
}
----------------
Just for completeness, please test that this gets the result of the expression.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144454/new/
https://reviews.llvm.org/D144454
More information about the cfe-commits
mailing list