<div dir="ltr"><div>Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></div><div><br></div><div>Marek<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 14, 2019 at 5:57 AM Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">LLVM r363339 changed llvm.amdgcn.icmp.i* to llvm.amdgcn.icmp.i64.i*.<br>
<br>
Signed-off-by: Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com" target="_blank">samuel.pitoiset@gmail.com</a>><br>
---<br>
 src/amd/common/ac_llvm_build.c | 7 ++++---<br>
 1 file changed, 4 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c<br>
index 88e89d1dfb4..b93fdde023e 100644<br>
--- a/src/amd/common/ac_llvm_build.c<br>
+++ b/src/amd/common/ac_llvm_build.c<br>
@@ -441,6 +441,7 @@ LLVMValueRef<br>
 ac_build_ballot(struct ac_llvm_context *ctx,<br>
                LLVMValueRef value)<br>
 {<br>
+       const char *name = HAVE_LLVM >= 0x900 ? "llvm.amdgcn.icmp.i64.i32" : "llvm.amdgcn.icmp.i32";<br>
        LLVMValueRef args[3] = {<br>
                value,<br>
                ctx->i32_0,<br>
@@ -454,8 +455,7 @@ ac_build_ballot(struct ac_llvm_context *ctx,<br>
<br>
        args[0] = ac_to_integer(ctx, args[0]);<br>
<br>
-       return ac_build_intrinsic(ctx,<br>
-                                 "llvm.amdgcn.icmp.i32",<br>
+       return ac_build_intrinsic(ctx, name,<br>
                                  ctx->i64, args, 3,<br>
                                  AC_FUNC_ATTR_NOUNWIND |<br>
                                  AC_FUNC_ATTR_READNONE |<br>
@@ -465,6 +465,7 @@ ac_build_ballot(struct ac_llvm_context *ctx,<br>
 LLVMValueRef ac_get_i1_sgpr_mask(struct ac_llvm_context *ctx,<br>
                                 LLVMValueRef value)<br>
 {<br>
+       const char *name = HAVE_LLVM >= 0x900 ? "llvm.amdgcn.icmp.i64.i1" : "llvm.amdgcn.icmp.i1";<br>
        LLVMValueRef args[3] = {<br>
                value,<br>
                ctx->i1false,<br>
@@ -472,7 +473,7 @@ LLVMValueRef ac_get_i1_sgpr_mask(struct ac_llvm_context *ctx,<br>
        };<br>
<br>
        assert(HAVE_LLVM >= 0x0800);<br>
-       return ac_build_intrinsic(ctx, "llvm.amdgcn.icmp.i1", ctx->i64, args, 3,<br>
+       return ac_build_intrinsic(ctx, name, ctx->i64, args, 3,<br>
                                  AC_FUNC_ATTR_NOUNWIND |<br>
                                  AC_FUNC_ATTR_READNONE |<br>
                                  AC_FUNC_ATTR_CONVERGENT);<br>
-- <br>
2.22.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a></blockquote></div>