diff options
author | Kenji Mouri / 毛利 研二 <Mouri_Naruto@Outlook.com> | 2024-10-31 01:34:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 10:34:32 -0700 |
commit | feb2d867fac3b6339c169fff97ddf0716fce6f0a (patch) | |
tree | b7a54ab020593b59d03d27eeb5fca006da342c3e /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp | |
parent | b94762d5a7fbf883707c4018dbf43d7525a06e12 (diff) | |
download | llvm-feb2d867fac3b6339c169fff97ddf0716fce6f0a.zip llvm-feb2d867fac3b6339c169fff97ddf0716fce6f0a.tar.gz llvm-feb2d867fac3b6339c169fff97ddf0716fce6f0a.tar.bz2 |
[TLI] Add support for hypot libcall. (#113724)
This patch adds basic support for `hypot`. Constant folding support will
be submitted in a subsequent patch.
Related issue: https://github.com/llvm/llvm-project/issues/113711
Note: It's my first time contributing to the LLVM with encouragement
from one of my friends, @fawdlstty. I learned a lot from
https://github.com/llvm/llvm-project/pull/99611, and thanks for that.
Kenji Mouri
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 98f8989..982d00c 100644 --- a/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp +++ b/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp @@ -249,6 +249,9 @@ TEST_F(TargetLibraryInfoTest, ValidProto) { "declare %struct* @getpwnam(i8*)\n" "declare i8* @gets(i8*)\n" "declare i32 @gettimeofday(%struct*, i8*)\n" + "declare double @hypot(double, double)\n" + "declare float @hypotf(float, float)\n" + "declare x86_fp80 @hypotl(x86_fp80, x86_fp80)\n" "declare i32 @_Z7isasciii(i32)\n" "declare i32 @_Z7isdigiti(i32)\n" "declare i64 @labs(i64)\n" |