summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_arit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index 65fc1809913..60018447e02 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@ -2565,10 +2565,11 @@ lp_build_mod(struct lp_build_context *bld,
LLVMValueRef res;
const struct lp_type type = bld->type;
- assert(type.floating);
assert(lp_check_value(type, x));
assert(lp_check_value(type, y));
+ if (type.floating)
+ res = LLVMBuildFRem(builder, x, y, "");
if (type.sign)
res = LLVMBuildSRem(builder, x, y, "");
else