Lines Matching refs:operands

148    ir->operands[1] = new(ir) ir_expression(ir_unop_neg, ir->operands[1]->type,
149 ir->operands[1], NULL);
240 i.insert_before(assign(x, ir->operands[0]));
242 i.insert_before(assign(exp, ir->operands[1]));
319 ir->operands[0] = gequal(extracted_biased_exp,
321 ir->operands[1] = new(ir) ir_dereference_variable(x);
322 ir->operands[2] = bitcast_u2f(result);
368 i.insert_before(assign(x, ir->operands[0]));
370 i.insert_before(assign(exp, ir->operands[1]));
445 ir->operands[0] = results[0];
446 ir->operands[1] = results[1];
447 ir->operands[2] = results[2];
448 ir->operands[3] = results[3];
483 nequal(abs(ir->operands[0]->clone(ir, NULL)), dzero)));
500 ir_rvalue *x = swizzle(ir->operands[0]->clone(ir, NULL), elem, 1);
522 ir->operands[0] = results[0];
523 ir->operands[1] = results[1];
524 ir->operands[2] = results[2];
525 ir->operands[3] = results[3];
555 ir_rvalue *absval = abs(ir->operands[0]);
576 ir->operands[0] = new(ir) ir_dereference_variable(is_not_zero);
577 ir->operands[1] = add(exponent_bias, u2i(rshift(high_words, exponent_shift)));
578 ir->operands[2] = izero;
594 ir_rvalue *x_clone = ir->operands[0]->clone(ir, NULL);
597 ir->operands[0] = b2i(less(add(ir->operands[0], ir->operands[1]), x_clone));
598 ir->operands[1] = NULL;
615 ir->operands[0] = b2i(less(ir->operands[0], ir->operands[1]));
616 ir->operands[1] = NULL;
624 ir_variable *temp = new(ir) ir_variable(ir->operands[0]->type->get_base_type(), "dot_res",
628 int nc = ir->operands[0]->type->components();
632 assig = assign(temp, mul(swizzle(ir->operands[0]->clone(ir, NULL), i, 1),
633 swizzle(ir->operands[1]->clone(ir, NULL), i, 1)));
635 assig = assign(temp, fma(swizzle(ir->operands[0]->clone(ir, NULL), i, 1),
636 swizzle(ir->operands[1]->clone(ir, NULL), i, 1),
644 ir->operands[0] = swizzle(ir->operands[0], 0, 1);
645 ir->operands[1] = swizzle(ir->operands[1], 0, 1);
646 ir->operands[2] = new(ir) ir_dereference_variable(temp);
656 ir_rvalue *op0 = ir->operands[0], *op2 = ir->operands[2];
671 ir->operands[0] = swizzle(op2, swizval, op0->type->vector_elements);
672 ir->operands[2] = mul(sub(one, op2->clone(ir, NULL)), op0);
686 ir_constant *zero = new(ir) ir_constant(0.0, ir->operands[0]->type->vector_elements);
687 ir_constant *one = new(ir) ir_constant(1.0, ir->operands[0]->type->vector_elements);
688 ir_variable *frtemp = new(ir) ir_variable(ir->operands[0]->type, "frtemp",
692 i.insert_before(assign(frtemp, fract(ir->operands[0])));
696 ir->operands[0] = sub(ir->operands[0]->clone(ir, NULL), frtemp);
697 ir->operands[1] = csel(nequal(frtemp, zero), one, zero->clone(ir, NULL));
711 ir->operands[1] = fract(ir->operands[0]->clone(ir, NULL));
730 ir_variable *frtemp = new(ir) ir_variable(ir->operands[0]->type, "frtemp",
732 ir_variable *temp = new(ir) ir_variable(ir->operands[0]->type, "temp",
734 ir_variable *t2 = new(ir) ir_variable(ir->operands[0]->type, "t2",
736 ir_constant *p5 = new(ir) ir_constant(0.5, ir->operands[0]->type->vector_elements);
737 ir_constant *one = new(ir) ir_constant(1.0, ir->operands[0]->type->vector_elements);
738 ir_constant *zero = new(ir) ir_constant(0.0, ir->operands[0]->type->vector_elements);
741 i.insert_before(assign(temp, add(ir->operands[0], p5)));
751 ir->operands[0] = equal(fract(ir->operands[0]->clone(ir, NULL)),
753 ir->operands[1] = csel(equal(fract(mul(t2, p5->clone(ir, NULL))),
757 ir->operands[2] = new(ir) ir_dereference_variable(t2);
770 ir_rvalue *arg = ir->operands[0];
777 ir_variable *temp = new(ir) ir_variable(ir->operands[0]->type, "temp",
787 ir->operands[0] = gequal(arg->clone(ir, NULL), zero);
788 ir->operands[1] = new (ir) ir_dereference_variable(temp);
789 ir->operands[2] = add(temp,
804 ir_rvalue *arg = ir->operands[0];
811 ir->operands[0] = less(arg->clone(ir, NULL),
813 ir->operands[1] = neg_one;
814 ir->operands[2] = csel(greater(arg, zero),
828 const unsigned elements = ir->operands[0]->type->vector_elements;
842 if (ir->operands[0]->type->base_type == GLSL_TYPE_UINT) {
843 base_ir->insert_before(assign(temp, ir->operands[0]));
845 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
846 base_ir->insert_before(assign(temp, i2u(ir->operands[0])));
861 ir->operands[0] = rshift(mul(bit_and(add(temp, rshift(temp, c4)), c0F0F0F0F),
872 new(ir) ir_variable(ir->operands[0]->type, "bits", ir_var_temporary);
875 base_ir->insert_before(assign(bits, ir->operands[2]));
877 if (ir->operands[0]->type->base_type == GLSL_TYPE_UINT) {
879 new(ir) ir_constant(1u, ir->operands[0]->type->vector_elements);
881 new(ir) ir_constant(32u, ir->operands[0]->type->vector_elements);
883 new(ir) ir_constant(0xFFFFFFFFu, ir->operands[0]->type->vector_elements);
905 ir->operands[0] = rshift(ir->operands[0], ir->operands[1]);
906 ir->operands[1] = mask;
907 ir->operands[2] = NULL;
910 new(ir) ir_constant(int(0), ir->operands[0]->type->vector_elements);
912 new(ir) ir_constant(int(32), ir->operands[0]->type->vector_elements);
914 new(ir) ir_variable(ir->operands[0]->type, "temp", ir_var_temporary);
922 rshift(lshift(ir->operands[0], sub(temp, ir->operands[1])), temp);
936 ir->operands[0] = equal(c0, bits);
937 ir->operands[1] = c0->clone(ir, NULL);
938 ir->operands[2] = expr;
951 new(ir) ir_variable(ir->operands[0]->type, "offset", ir_var_temporary);
953 new(ir) ir_variable(ir->operands[0]->type, "bits", ir_var_temporary);
955 new(ir) ir_variable(ir->operands[0]->type, "mask", ir_var_temporary);
957 if (ir->operands[0]->type->base_type == GLSL_TYPE_INT) {
958 c1 = new(ir) ir_constant(int(1), ir->operands[0]->type->vector_elements);
959 c32 = new(ir) ir_constant(int(32), ir->operands[0]->type->vector_elements);
960 cFFFFFFFF = new(ir) ir_constant(int(0xFFFFFFFF), ir->operands[0]->type->vector_elements);
962 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT);
964 c1 = new(ir) ir_constant(1u, ir->operands[0]->type->vector_elements);
965 c32 = new(ir) ir_constant(32u, ir->operands[0]->type->vector_elements);
966 cFFFFFFFF = new(ir) ir_constant(0xFFFFFFFFu, ir->operands[0]->type->vector_elements);
970 base_ir->insert_before(assign(offset, ir->operands[2]));
973 base_ir->insert_before(assign(bits, ir->operands[3]));
1003 ir->operands[0] = bit_and(ir->operands[0], bit_not(mask));
1004 ir->operands[1] = bit_and(lshift(ir->operands[1], offset), mask);
1005 ir->operands[2] = NULL;
1006 ir->operands[3] = NULL;
1019 new(ir) ir_constant(1u, ir->operands[0]->type->vector_elements);
1021 new(ir) ir_constant(2u, ir->operands[0]->type->vector_elements);
1023 new(ir) ir_constant(4u, ir->operands[0]->type->vector_elements);
1025 new(ir) ir_constant(8u, ir->operands[0]->type->vector_elements);
1027 new(ir) ir_constant(16u, ir->operands[0]->type->vector_elements);
1029 new(ir) ir_constant(0x33333333u, ir->operands[0]->type->vector_elements);
1031 new(ir) ir_constant(0x55555555u, ir->operands[0]->type->vector_elements);
1033 new(ir) ir_constant(0x0F0F0F0Fu, ir->operands[0]->type->vector_elements);
1035 new(ir) ir_constant(0x00FF00FFu, ir->operands[0]->type->vector_elements);
1037 new(ir) ir_variable(glsl_type::uvec(ir->operands[0]->type->vector_elements),
1043 if (ir->operands[0]->type->base_type == GLSL_TYPE_UINT) {
1044 i.insert_before(assign(temp, ir->operands[0]));
1046 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
1047 i.insert_before(assign(temp, i2u(ir->operands[0])));
1084 if (ir->operands[0]->type->base_type == GLSL_TYPE_UINT) {
1087 ir->operands[0] = rshift(temp, c16);
1088 ir->operands[1] = lshift(temp, c16->clone(ir, NULL));
1092 ir->operands[0] = bit_or(rshift(temp, c16),
1106 const unsigned elements = ir->operands[0]->type->vector_elements;
1124 if (ir->operands[0]->type->base_type == GLSL_TYPE_INT) {
1125 i.insert_before(assign(temp, ir->operands[0]));
1127 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT);
1128 i.insert_before(assign(temp, u2i(ir->operands[0])));
1173 ir->operands[0] = equal(lsb_only, c0);
1174 ir->operands[1] = cminus1;
1175 ir->operands[2] = new(ir) ir_dereference_variable(lsb);
1187 const unsigned elements = ir->operands[0]->type->vector_elements;
1205 if (ir->operands[0]->type->base_type == GLSL_TYPE_UINT) {
1206 i.insert_before(assign(temp, ir->operands[0]));
1208 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
1231 i.insert_before(assign(as_int, ir->operands[0]));
1274 ir->operands[0] = less(msb, c0);
1275 ir->operands[1] = cminus1;
1276 ir->operands[2] = new(ir) ir_dereference_variable(msb);
1317 const unsigned elements = ir->operands[0]->type->vector_elements;
1351 if (ir->operands[0]->type->base_type == GLSL_TYPE_UINT) {
1352 i.insert_before(assign(src1, ir->operands[0]));
1353 i.insert_before(assign(src2, ir->operands[1]));
1355 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
1365 i.insert_before(assign(itmp1, ir->operands[0]));
1366 i.insert_before(assign(itmp2, ir->operands[1]));
1403 assert(ir->operands[0]->type->base_type == GLSL_TYPE_UINT);
1407 ir->operands[0] = add(hi, rshift(t1, c16->clone(ir, NULL)));
1408 ir->operands[1] = rshift(t2, c16->clone(ir, NULL));
1410 assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT);
1430 ir->operands[0] = new(ir) ir_dereference_variable(different_signs);
1431 ir->operands[1] = new(ir) ir_dereference_variable(neg_hi);
1432 ir->operands[2] = u2i(hi);
1439 ir->operands[0] = new(ir) ir_expression(ir_unop_abs, ir->operands[0]);
1448 if (ir->operands[0]->type->is_double())
1452 if (ir->operands[0]->type->is_double())
1468 if (lowering(DFREXP_DLDEXP_TO_ARITH) && ir->operands[0]->type->is_double())
1473 if (lowering(DFREXP_DLDEXP_TO_ARITH) && ir->operands[0]->type->is_double())