diff options
author | Fawdlstty <fawdlstty@users.noreply.github.com> | 2024-10-21 05:17:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-20 14:17:15 -0700 |
commit | 20bda93e438c63fb68a8130b7f88090c558e99b7 (patch) | |
tree | 2667c46887c32d89d1876f4211173b6fb55f2add /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | |
parent | c2717a89b8437d041d532c7b2c535ca4f4b35872 (diff) | |
download | llvm-20bda93e438c63fb68a8130b7f88090c558e99b7.zip llvm-20bda93e438c63fb68a8130b7f88090c558e99b7.tar.gz llvm-20bda93e438c63fb68a8130b7f88090c558e99b7.tar.bz2 |
[TLI] Add basic support for scalbnxx (#112936)
This patch adds basic support for `scalbln, scalblnf, scalblnl, scalbn,
scalbnf, scalbnl`. Constant folding support will be submitted in a
subsequent patch.
Related issue: <#112631>
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp index b4856b5..3469403 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -335,6 +335,12 @@ TEST_F(TargetLibraryInfoTest, ValidProto) { "declare double @roundeven(double)\n" "declare float @roundevenf(float)\n" "declare x86_fp80 @roundevenl(x86_fp80)\n" + "declare double @scalbln(double, i64)\n" + "declare float @scalblnf(float, i64)\n" + "declare x86_fp80 @scalblnl(x86_fp80, i64)\n" + "declare double @scalbn(double, i32)\n" + "declare float @scalbnf(float, i32)\n" + "declare x86_fp80 @scalbnl(x86_fp80, i32)\n" "declare i32 @scanf(i8*, ...)\n" "declare void @setbuf(%struct*, i8*)\n" "declare i32 @setitimer(i32, %struct*, %struct*)\n" |