[CodeGen][PowerPC] `atan2(double)` is incorrectly recognized as `atan2(double, double)`
It appears that double atan2(double) is incorrectly recognized as double atan2(double, double) in this test:
https://github.com/llvm/llvm-project/blob/841433da7862a29bc1688ce7960c7ee349fa2973/llvm/test/CodeGen/PowerPC/lower-scalar-mass-fast.ll#L372-L379
Other two argument functions appear to be written correctly in that file.
TODO:
- Fix the broken test to use the correct prototype for
atan2 - Add tests (in a separate file) to make sure that
tail call nnan ninf afn nsz double @atan2(double %a)does not become__xl_atan2_finite. - Investigate if the libcall detection code should be fixed/modified for PowerPC, or if this extends beyond PowerPC.
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
- Check that no other contributor is working on this issue. If someone is assigned to the issue or claimed to be working on it, ping the person. After one week without a response, the assignee may be changed.
- Leave a comment indicating that you are working on the issue, or just create a pull request after following the steps below. Mention this issue in the description of the pull request.
- Fix the issue locally. Be aware that LLVM's AI policy forbids the use of AI tools to fix good first issues since it squanders a learning opportunity. Using LLMs to search and learn is permitted, since the goal is learning.
- Run the test suite locally. Remember that the subdirectories under
test/create fine-grained testing targets, so you can e.g. usemake check-clang-astto only run Clang's AST tests. - Create a Git commit.
- Run
git clang-format HEAD~1to format your changes. - Open a pull request to the upstream repository on GitHub. Detailed instructions can be found in GitHub's documentation. Mention this issue in the description of the pull request.
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: Eric Ross (ZERICO2005)
Other two argument functions appear to be written correctly in that file.
TODO:
- Fix the broken test to use the correct prototype for
atan2 - Add tests (in a separate file) to make sure that
tail call nnan ninf afn nsz double @<!-- -->atan2(double %a)does not become__xl_atan2_finite. - Investigate if the libcall detection code should be fixed/modified for PowerPC, or if this extends beyond PowerPC.
@llvm/issue-subscribers-backend-powerpc
Author: Eric Ross (ZERICO2005)
Other two argument functions appear to be written correctly in that file.
TODO:
- Fix the broken test to use the correct prototype for
atan2 - Add tests (in a separate file) to make sure that
tail call nnan ninf afn nsz double @<!-- -->atan2(double %a)does not become__xl_atan2_finite. - Investigate if the libcall detection code should be fixed/modified for PowerPC, or if this extends beyond PowerPC.
hi, can i work on this issue? is it available? please assign it to me.
I think I can work on this issue , if sangam151 u would like to cooperate
Hello @ZERICO2005 . While this has been assigned already, I dont see any updates here from the asignee since a week. I would like to work on this issue. I'll start looking into it and prepare a PR.
@sangam151 @shourya990 Are either of you still working on this issue?
Hi @ZERICO2005 If there is still no updates here, may I pick this up? I dont see any linked MRs, and would like to work on this Thanks
@sangam151 Could you open a draft PR or share your progress within the next few days (say, by Wednesday, October 21)? If there is no update by then, I'll reassign this to @adiroy28852, who has offered to pick it up.