• Home
  • Raw
  • Download

Lines Matching refs:tint

91 tint = "int"  variable
147 unop("imov", tint, "src0")
149 unop("ineg", tint, "-src0")
151 unop("inot", tint, "~src0") # invert every bit of the integer
157 unop("isign", tint, "(src0 == 0) ? 0 : ((src0 > 0) ? 1 : -1)")
158 unop("iabs", tint, "(src0 < 0) ? -src0 : src0")
170 for src_t in [tint, tuint, tfloat]:
171 if src_t in (tint, tuint):
174 dst_types = [tint, tuint, tfloat]
195 unop_convert("i2b", tbool, tint, "src0 != 0")
197 unop_convert("b2i", tint, tbool, "src0 ? 1 : 0")
392 binop("iadd", tint, commutative + associative, "src0 + src1")
394 binop("isub", tint, "", "src0 - src1")
398 binop("imul", tint, commutative + associative, "src0 * src1")
407 binop("idiv", tint, "", "src1 == 0 ? 0 : (src0 / src1)")
430 binop("irem", tint, "", "src1 == 0 ? 0 : src0 % src1")
431 binop("imod", tint, "",
448 binop_compare("ilt", tint, "", "src0 < src1")
449 binop_compare("ige", tint, "", "src0 >= src1")
450 binop_compare("ieq", tint, commutative, "src0 == src1")
451 binop_compare("ine", tint, commutative, "src0 != src1")
461 binop_reduce("ball_iequal", 1, tbool, tint, "{src0} == {src1}",
463 binop_reduce("bany_inequal", 1, tbool, tint, "{src0} != {src1}",
482 opcode("ishl", 0, tint, [0, 0], [tint, tuint32], "", "src0 << src1")
483 opcode("ishr", 0, tint, [0, 0], [tint, tuint32], "", "src0 >> src1")
521 binop("imin", tint, commutative + associative, "src1 > src0 ? src0 : src1")
524 binop("imax", tint, commutative + associative, "src1 > src0 ? src1 : src0")
607 binop("extract_i8", tint, "", "(int8_t)(src0 >> (src1 * 8))")
611 binop("extract_i16", tint, "", "(int16_t)(src0 >> (src1 * 16))")