ac: fix return type for llvm.amdgcn.frexp.exp.i32.64
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 29 Mar 2019 07:39:43 +0000 (08:39 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 29 Mar 2019 08:18:24 +0000 (09:18 +0100)
This fixes the following piglit with RadeonSI
tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-frexp-dvec4.shader_test

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/amd/common/ac_llvm_build.c

index 5572b244720c7d4f6c05ed681848e49390d289ab..eb9e4504248c88d52dca7895eda984662b08abcb 100644 (file)
@@ -3942,7 +3942,7 @@ ac_build_frexp_exp(struct ac_llvm_context *ctx, LLVMValueRef src0,
                type = ctx->i32;
        } else {
                intr = "llvm.amdgcn.frexp.exp.i32.f64";
-               type = ctx->i64;
+               type = ctx->i32;
        }
 
        LLVMValueRef params[] = {