llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[libc] Modify NaN/Payload related functions for emulated float128 type

Open Sukumarsawant opened this issue 3 months ago • 9 comments

The following functions should be modified

  • nanf128
  • getpayloadf128
  • setpayloadf128
  • setpayloadsigf128

part of https://github.com/llvm/llvm-project/issues/216576

[!NOTE]

  • Please read the https://llvm.org/docs/AIToolPolicy.html
  • You can use already merged PRs for reference

Sukumarsawant avatar Sep 06 '26 14:09 Sukumarsawant

@llvm/issue-subscribers-libc

Author: Zorojuro (Sukumarsawant)

The following functions should be modified
  • nanf128
  • getpayloadf128
  • setpayloadf128
  • setpayloadsigf128

part of https://github.com/llvm/llvm-project/issues/216576

> [!NOTE] > - Please read the https://llvm.org/docs/AIToolPolicy.html > - You can use already merged PRs for reference

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:

  1. 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.
  2. 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.
  3. 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.
  4. Run the test suite locally. Remember that the subdirectories under test/ create fine-grained testing targets, so you can e.g. use make check-clang-ast to only run Clang's AST tests.
  5. Create a Git commit.
  6. Run git clang-format HEAD~1 to format your changes.
  7. 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: Zorojuro (Sukumarsawant)

The following functions should be modified
  • nanf128
  • getpayloadf128
  • setpayloadf128
  • setpayloadsigf128

part of https://github.com/llvm/llvm-project/issues/216576

> [!NOTE] > - Please read the https://llvm.org/docs/AIToolPolicy.html > - You can use already merged PRs for reference

Hi, i would like to give this a try!

Popie52 avatar Sep 06 '26 14:09 Popie52

@Sukumarsawant , i noticed that the existing nanf128 tests contain death test cases and smoke test has a fixme noting of that death test cases should that part be also handled in this migration or keep this unchanged for now

Popie52 avatar Sep 08 '26 07:09 Popie52

@Sukumarsawant , i noticed that the existing nanf128 tests contain death test cases and smoke test has a fixme noting of that death test cases should that part be also handled in this migration or keep this unchanged for now

Let's keep them as they are for now . But do try testing it locally if that is causing any failure ( It shouldn't) . If it isn't a blocker for now, we would move forward with only the modification for the emulated type.

Sukumarsawant avatar Sep 08 '26 07:09 Sukumarsawant

@Sukumarsawant , i have made the changes and tested it locally. have a look at this pr.

Popie52 avatar Sep 08 '26 10:09 Popie52

did your pr get merged ? if not can I try this one ?

shourya990 avatar Sep 19 '26 00:09 shourya990

@shourya990 Work is already done, only maintainers review is remaining buddy.

Popie52 avatar Sep 19 '26 01:09 Popie52