aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
diff options
context:
space:
mode:
authorArtem Tyurin <artem.tyurin@gmail.com>2024-02-24 14:35:35 +0100
committerGitHub <noreply@github.com>2024-02-24 21:35:35 +0800
commit1901f442ca6374787e6810adb573d138f80893dd (patch)
tree3f5ecc50337dff1e24824f3127b56eaf4441a23c /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
parent00c0638b5613912a7d1b65c8789bbb8ad1003115 (diff)
downloadllvm-1901f442ca6374787e6810adb573d138f80893dd.zip
llvm-1901f442ca6374787e6810adb573d138f80893dd.tar.gz
llvm-1901f442ca6374787e6810adb573d138f80893dd.tar.bz2
[InstCombine] Handle more even/odd math functions (#81324)
At the moment this PR adds support only for `erf` function. Fixes #77220.
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
-rw-r--r--llvm/unittests/Analysis/TargetLibraryInfoTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
index 34b06fe..8e3fe3b 100644
--- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
+++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
@@ -264,6 +264,9 @@ TEST_F(TargetLibraryInfoTest, ValidProto) {
"declare double @pow(double, double)\n"
"declare float @powf(float, float)\n"
"declare x86_fp80 @powl(x86_fp80, x86_fp80)\n"
+ "declare double @erf(double)\n"
+ "declare float @erff(float)\n"
+ "declare x86_fp80 @erfl(x86_fp80)\n"
"declare i32 @printf(i8*, ...)\n"
"declare i32 @putc(i32, %struct*)\n"
"declare i32 @putc_unlocked(i32, %struct*)\n"