[PATCH] D88238: [APFloat] convert SNaN to QNaN in convert() and raise Invalid signal
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 12:34:35 PDT 2020
spatel updated this revision to Diff 295375.
spatel added a comment.
Added tests that use `__builtin_nanf` and `__builtin_nansf` (no changes with this patch as a whole or split into 2 pieces). We allow creating 32-bit NAN directly with those builtins.
This may be confusing because LLVM IR doesn't print 32-bit FP as 32-bit hex. That's the FIXME note in AsmWriter.cpp and hopefully the next step...although I suspect it would mean updating several hundred regression tests.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88238/new/
https://reviews.llvm.org/D88238
Files:
clang/lib/AST/ExprConstant.cpp
clang/test/CodeGen/builtin-nan-exception.c
clang/test/CodeGen/builtin-nan-legacy.c
clang/test/CodeGen/mips-unsupported-nan.c
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/Support/APFloat.cpp
llvm/test/Transforms/InstSimplify/ConstProp/cast.ll
llvm/test/Transforms/PhaseOrdering/X86/nancvt.ll
llvm/unittests/ADT/APFloatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88238.295375.patch
Type: text/x-patch
Size: 12850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200930/6b0e16d3/attachment.bin>
More information about the llvm-commits
mailing list