Home
last modified time | relevance | path

Searched refs:lh_sign (Results 1 – 1 of 1) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_lower_idiv.c163 nir_ssa_def *lh_sign = nir_ilt(bld, numer, nir_imm_int(bld, 0)); in emit_idiv() local
165 lh_sign = nir_bcsel(bld, lh_sign, nir_imm_int(bld, -1), nir_imm_int(bld, 0)); in emit_idiv()
168 nir_ssa_def *lhs = nir_iadd(bld, numer, lh_sign); in emit_idiv()
170 lhs = nir_ixor(bld, lhs, lh_sign); in emit_idiv()
174 nir_ssa_def *d_sign = nir_ixor(bld, lh_sign, rh_sign); in emit_idiv()
180 res = nir_ixor(bld, res, lh_sign); in emit_idiv()
181 res = nir_isub(bld, res, lh_sign); in emit_idiv()
184 cond = nir_ior(bld, nir_ieq(bld, lh_sign, rh_sign), cond); in emit_idiv()