Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
#define MUL64 (1U << 0)
#define SIGN64 (1U << 1)
#define DIV64 (1U << 2)
+#define MOD64 (1U << 3)
/**
* \see class lower_packing_builtins_visitor
}
break;
+ case ir_binop_mod:
+ if (lowering(MOD64)) {
+ if (ir->type->base_type == GLSL_TYPE_UINT64) {
+ *rvalue = handle_op(ir, "__builtin_umod64", generate_ir::umod64);
+ } else {
+ *rvalue = handle_op(ir, "__builtin_imod64", generate_ir::imod64);
+ }
+ this->progress = true;
+ }
+ break;
+
case ir_binop_mul:
if (lowering(MUL64)) {
*rvalue = handle_op(ir, "__builtin_umul64", generate_ir::umul64);