arsenm wrote: The amdgpu customization should be removed. This is legacy code from before we had the ldexp intrinsic. Regular __builtin_ldexp* should work now https://github.com/llvm/llvm-project/pull/126078