diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2024-08-01 01:49:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-01 01:49:38 +0800 |
commit | 6aa723daa9d9c54c597788d384b41dd735359316 (patch) | |
tree | a671e3565bbab540bac083310730ceb456abce64 /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | |
parent | 055893f164f595e5d4115db17dd479ed3401bf00 (diff) | |
download | llvm-6aa723daa9d9c54c597788d384b41dd735359316.zip llvm-6aa723daa9d9c54c597788d384b41dd735359316.tar.gz llvm-6aa723daa9d9c54c597788d384b41dd735359316.tar.bz2 |
[TLI] Add support for nan libfunc (#101356)
Reference: https://en.cppreference.com/w/cpp/numeric/math/nan
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp index b8125b0..d344ebe 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -255,6 +255,9 @@ TEST_F(TargetLibraryInfoTest, ValidProto) { "declare double @modf(double, double*)\n" "declare float @modff(float, float*)\n" "declare x86_fp80 @modfl(x86_fp80, x86_fp80*)\n" + "declare double @nan(ptr)\n" + "declare float @nanf(ptr)\n" + "declare x86_fp80 @nanl(ptr)\n" "declare double @nearbyint(double)\n" "declare float @nearbyintf(float)\n" "declare x86_fp80 @nearbyintl(x86_fp80)\n" |