Disable f128 for amdgpu (#737)

`compiler_builtins` fails to compile to amdgpu if f128 is enabled.
The reason seems to be that compiler_builtins uses libcalls in the
implementation. I’m not really familiar with what libcalls are, but the
LLVM amdgpu backend explicitly does not support them.

Error message:
```
LLVM ERROR: unsupported libcall legalization
```
This commit is contained in:
Sebastian Neubauer 2024-12-26 06:01:14 +01:00 committed by GitHub
parent cd4b4a6cbf
commit e8eb76a45a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,6 +79,8 @@ pub fn configure_f16_f128(target: &Target) {
};
let f128_enabled = match target.arch.as_str() {
// Unsupported (libcall is not supported) <https://github.com/llvm/llvm-project/issues/121122>
"amdgpu" => false,
// Unsupported <https://github.com/llvm/llvm-project/issues/94434>
"arm64ec" => false,
// Selection failure <https://github.com/llvm/llvm-project/issues/96432>