Skip to content

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

Open
@vejbomar

Description

@vejbomar

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions