Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC: Investigate and fix what's missing for _Float128 support #240

Open
vejbomar opened this issue Jan 13, 2025 · 1 comment
Open

GCC: Investigate and fix what's missing for _Float128 support #240

vejbomar opened this issue Jan 13, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@vejbomar
Copy link
Member

Windows-on-ARM-Experiments/gcc-woarm64#3 changes definition of long double from 128bit to 64bit to be aligned with Clang and MSVC for aarch64 on Windows. After that 128bit float number is available as _Float128 but not everything that is working on aarch64-linux-gnu is working on aarch64-w64-minw32

What works:

  • _Float128 type exists, it can be used to define variables, in function args etc.
  • suffix Q works for defining 128bit numbers, e.g. _Float128 e_contant = 2.718281828459045235360287471352662498Q

What doesn't work (not sure if all should work but these mostly work with aarch64-linux-gnu target):

Sources: https://cpufun.substack.com/p/portable-support-for-128b-floats
Older branch which was enabling _Float128: https://github.com/Windows-on-ARM-Experiments/gcc-woarm64/tree/float128

@vejbomar vejbomar added the enhancement New feature or request label Jan 13, 2025
@vejbomar
Copy link
Member Author

After enabling support for _Float128, changes from Windows-on-ARM-Experiments/gcc-woarm64@4979060 and Windows-on-ARM-Experiments/gcc-woarm64@584885c which are part of 64bit long double PR, should be probably reverted

@Blackhex Blackhex changed the title Investigate and fix what's missing for _Float128 support GCC: Investigate and fix what's missing for _Float128 support Jan 27, 2025
@Blackhex Blackhex changed the title GCC: Investigate and fix what's missing for _Float128 support GCC: Investigate and fix what's missing for _Float128 support Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant