diff options
author | c8ef <c8ef@outlook.com> | 2024-10-18 14:20:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 14:20:34 +0800 |
commit | 761fa5844e692dbc7e0dcf8e30e80ef7ba38a317 (patch) | |
tree | d2e83c86480cd9a6a5325f3da0032dbf8e7704a3 /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | |
parent | 9d469b5988bfb1c2e99533f863b1f9eb5b0c58b7 (diff) | |
download | llvm-761fa5844e692dbc7e0dcf8e30e80ef7ba38a317.zip llvm-761fa5844e692dbc7e0dcf8e30e80ef7ba38a317.tar.gz llvm-761fa5844e692dbc7e0dcf8e30e80ef7ba38a317.tar.bz2 |
[TLI] Add support for the `ilogb` libcall. (#112725)
This patch adds the `ilogb` libcall. Constant folding will be handled in
subsequent patches.
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 4975651..b4856b5 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -266,6 +266,9 @@ TEST_F(TargetLibraryInfoTest, ValidProto) { "declare double @log2(double)\n" "declare float @log2f(float)\n" "declare x86_fp80 @log2l(x86_fp80)\n" + "declare i32 @ilogb(double)\n" + "declare i32 @ilogbf(float)\n" + "declare i32 @ilogbl(x86_fp80)\n" "declare double @logb(double)\n" "declare float @logbf(float)\n" "declare x86_fp80 @logbl(x86_fp80)\n" |