diff options
author | Tue Ly <lntue@google.com> | 2022-03-10 09:25:54 -0500 |
---|---|---|
committer | Tue Ly <lntue@google.com> | 2022-03-10 09:26:09 -0500 |
commit | 0f031daea8fc01ce44766f07b0f4c626ef28f8f5 (patch) | |
tree | b0f0030929742c89a71b471f40927edf4702dfed /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 28e82982fe93a2accd03cb540638b3c70ed6172d (diff) | |
download | llvm-0f031daea8fc01ce44766f07b0f4c626ef28f8f5.zip llvm-0f031daea8fc01ce44766f07b0f4c626ef28f8f5.tar.gz llvm-0f031daea8fc01ce44766f07b0f4c626ef28f8f5.tar.bz2 |
[libc] Initial support for darwin-aarch64.
Add initial support for darwin-aarch64 (macOS M1).
Some differences compared to linux-aarch64:
- `math.h` defined `math_errhandling` by the compiler builtin `__math_errhandling()` but Apple Clang 13.0.0 on M1 does not support `__math_errhandling()` builtin as a macro function or a constexpr function.
- `math.h` defines `UNDERFLOW` and `OVERFLOW` macros.
- Besides 5 usual floating point exceptions: `FE_INEXACT`, `FE_UNDERFLOW`, `FE_OVERFLOW`, `FE_DIVBYZERO`, and `FE_INVALID`, `fenv.h` also has another floating point exception: `FE_FLUSHTOZERO`. The corresponding trap for `FE_FLUSHTOZERO` in the control register is at the different location compared to the status register.
- `FE_FLUSHTOZERO` exception flag cannot be raised with the default CPU floating point operation mode.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D120914
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions