Skip to content

Commit fe6b093

Browse files
authored
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 ```
1 parent 3e0fe12 commit fe6b093

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configure.rs

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ pub fn configure_f16_f128(target: &Target) {
7979
};
8080

8181
let f128_enabled = match target.arch.as_str() {
82+
// Unsupported (libcall is not supported) <https://github.com/llvm/llvm-project/issues/121122>
83+
"amdgpu" => false,
8284
// Unsupported <https://github.com/llvm/llvm-project/issues/94434>
8385
"arm64ec" => false,
8486
// Selection failure <https://github.com/llvm/llvm-project/issues/96432>

0 commit comments

Comments
 (0)