Searched refs:alu1 (Results 1 - 4 of 4) sorted by relevance
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_instr_set.c | 413 * This function detects cases where \p alu1 is a constant and \p alu2 is a 415 * an SSA value that is a \c nir_op_fneg applied to \p alu1 (and vice versa). 417 * This function does not detect the general case when \p alu1 and \p alu2 are 418 * SSA values that are the negations of each other (e.g., \p alu1 represents 426 nir_alu_srcs_negative_equal(const nir_alu_instr *alu1, in nir_alu_srcs_negative_equal() argument 432 assert(nir_alu_instr_channel_used(alu1, src1, i) == in nir_alu_srcs_negative_equal() 436 if (nir_alu_type_get_base_type(nir_op_infos[alu1->op].input_types[src1]) == nir_type_float) { in nir_alu_srcs_negative_equal() 437 assert(nir_op_infos[alu1->op].input_types[src1] == in nir_alu_srcs_negative_equal() 440 assert(nir_op_infos[alu1->op].input_types[src1] == nir_type_int); in nir_alu_srcs_negative_equal() 445 if (alu1 in nir_alu_srcs_negative_equal() 529 nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2, unsigned src1, unsigned src2) nir_alu_srcs_equal() argument 560 nir_alu_instr *alu1 = nir_instr_as_alu(instr1); nir_instrs_equal() local [all...] |
H A D | nir_opt_vectorize.c | 120 nir_alu_instr *alu1 = nir_instr_as_alu(instr1); in instrs_equal() local 123 if (alu1->op != alu2->op) in instrs_equal() 126 if (alu1->dest.dest.ssa.bit_size != alu2->dest.dest.ssa.bit_size) in instrs_equal() 129 for (unsigned i = 0; i < nir_op_infos[alu1->op].num_inputs; i++) { in instrs_equal() 130 if (!alu_srcs_equal(&alu1->src[i], &alu2->src[i], instr1->pass_flags)) in instrs_equal() 192 nir_alu_instr *alu1 = nir_instr_as_alu(instr1); in instr_try_combine() local 195 assert(alu1->dest.dest.ssa.bit_size == alu2->dest.dest.ssa.bit_size); in instr_try_combine() 196 unsigned alu1_components = alu1->dest.dest.ssa.num_components; in instr_try_combine() 208 nir_alu_instr *new_alu = nir_alu_instr_create(b.shader, alu1->op); in instr_try_combine() 210 total_components, alu1 in instr_try_combine() [all...] |
H A D | nir.h | 1497 bool nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2, 1500 bool nir_alu_srcs_negative_equal(const nir_alu_instr *alu1,
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/tests/ |
H A D | sfn_instr_test.cpp | 199 AluInstr alu1(op1_mov, r128z, r129x, {alu_write}); in TEST_F() 200 EXPECT_NE(alu1, AluInstr(op1_mov, r128y, r129x, {alu_write})); in TEST_F() 201 EXPECT_NE(alu1, AluInstr(op1_mov, r128z, r129xc, {alu_write})); in TEST_F() 202 EXPECT_NE(alu1, AluInstr(op1_mov, r128z, r129y, {alu_write})); in TEST_F() 203 EXPECT_NE(alu1, AluInstr(op1_mov, r128z, r130x, {alu_write})); in TEST_F() 204 EXPECT_NE(alu1, AluInstr(op1_mov, r128z, r129x, {alu_write, alu_last_instr})); in TEST_F() 205 EXPECT_NE(alu1, AluInstr(op1_flt_to_int, r128z, r129x, {alu_write})); in TEST_F() 206 EXPECT_NE(alu1, AluInstr(op1_mov, r128zc, r129x, {alu_write})); in TEST_F() 208 EXPECT_EQ(alu1, alu1); in TEST_F() [all...] |
Completed in 7 milliseconds