diff options
author | Amy Kwan <amy.kwan1@ibm.com> | 2022-05-19 09:38:34 -0500 |
---|---|---|
committer | Amy Kwan <amy.kwan1@ibm.com> | 2022-05-19 11:28:40 -0500 |
commit | c35ca3a1c78f693b749ad11742350b7fc6c5cd89 (patch) | |
tree | 3f22220ee171f2b4119ed7c0b2f1c3b7d331ed63 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 559b8fc17ef6f5a65ccf9a11fce5f91c0a011b00 (diff) | |
download | llvm-c35ca3a1c78f693b749ad11742350b7fc6c5cd89.zip llvm-c35ca3a1c78f693b749ad11742350b7fc6c5cd89.tar.gz llvm-c35ca3a1c78f693b749ad11742350b7fc6c5cd89.tar.bz2 |
[PowerPC] Implement XL compat __fnabs and __fnabss builtins.
This patch implements the following floating point negative absolute value
builtins that required for compatibility with the XL compiler:
```
double __fnabs(double);
float __fnabss(float);
```
These builtins will emit :
- fnabs on PWR6 and below, or if VSX is disabled.
- xsnabsdp on PWR7 and above, if VSX is enabled.
Differential Revision: https://reviews.llvm.org/D125506
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions