Lines Matching refs:inst_buf_index
513 unsigned long inst_buf_index; variable
528 memmove(&inst_buf[1], &inst_buf[0], inst_buf_index * sizeof inst_buf[0]); in insert_nop()
536 ++inst_buf_index; in insert_nop()
544 (inst_buf_index == 3 ? inst_buf[2].opcode->pipes : (1 << NO_PIPELINE))); in compute_format()
565 if (inst_buf_index == 1) { in assign_pipes()
576 for (i = 0; i < inst_buf_index; i++) { in assign_pipes()
593 if (inst_buf_index == 2 && !tilegx_is_x_pipeline(match->pipe[0])) { in assign_pipes()
627 int orig_index = inst_buf_index; in update_buffer()
635 for (i = 0; i < inst_buf_index; i++) { in update_buffer()
642 if (inst_buf_index == 3) in update_buffer()
649 inst_buf_index = 0; in update_buffer()
663 inst_buf_index = orig_index - 1; in update_buffer()
668 for (i = 0; i < inst_buf_index; i++) { in update_buffer()
676 if (inst_buf_index == 3) in update_buffer()
685 inst_buf_index = 1; in update_buffer()
688 inst_buf_index = 1; in update_buffer()
701 inst_buf_index = 1; in update_buffer()
706 for (i = 0; i < inst_buf_index; i++) { in update_buffer()
714 if (inst_buf_index == 3) in update_buffer()
723 inst_buf_index = orig_index - 1; in update_buffer()
738 while (inst_buf_index != 0) { in flush_buffer()
746 if (inst_buf_index == TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE) in push_4_buffer()
750 inst_buf[inst_buf_index].opcode = opcode; in push_4_buffer()
751 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_4_buffer()
752 inst_buf[inst_buf_index].operand_value[0] = op0; in push_4_buffer()
753 inst_buf[inst_buf_index].operand_value[1] = op1; in push_4_buffer()
754 inst_buf[inst_buf_index].operand_value[2] = op2; in push_4_buffer()
755 inst_buf[inst_buf_index].operand_value[3] = op3; in push_4_buffer()
756 inst_buf[inst_buf_index].input_registers = 1L << op1; in push_4_buffer()
757 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_4_buffer()
758 inst_buf[inst_buf_index].line = line; in push_4_buffer()
759 inst_buf_index++; in push_4_buffer()
766 if (inst_buf_index == TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE) in push_3_buffer()
770 inst_buf[inst_buf_index].opcode = opcode; in push_3_buffer()
771 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_3_buffer()
772 inst_buf[inst_buf_index].operand_value[0] = op0; in push_3_buffer()
773 inst_buf[inst_buf_index].operand_value[1] = op1; in push_3_buffer()
774 inst_buf[inst_buf_index].operand_value[2] = op2; in push_3_buffer()
775 inst_buf[inst_buf_index].line = line; in push_3_buffer()
779 inst_buf[inst_buf_index].input_registers = (1L << op0) | (1L << op1); in push_3_buffer()
780 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_3_buffer()
783 inst_buf[inst_buf_index].input_registers = 1L << op1; in push_3_buffer()
784 inst_buf[inst_buf_index].output_registers = (1L << op0) | (1L << op1); in push_3_buffer()
800 inst_buf[inst_buf_index].input_registers = (1L << op1) | (1L << op2); in push_3_buffer()
801 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_3_buffer()
812 inst_buf[inst_buf_index].input_registers = 1L << op1; in push_3_buffer()
813 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_3_buffer()
820 inst_buf_index++; in push_3_buffer()
827 if (inst_buf_index == TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE) in push_2_buffer()
831 inst_buf[inst_buf_index].opcode = opcode; in push_2_buffer()
832 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_2_buffer()
833 inst_buf[inst_buf_index].operand_value[0] = op0; in push_2_buffer()
834 inst_buf[inst_buf_index].operand_value[1] = op1; in push_2_buffer()
835 inst_buf[inst_buf_index].line = line; in push_2_buffer()
840 inst_buf[inst_buf_index].input_registers = 1L << op0; in push_2_buffer()
846 inst_buf[inst_buf_index].input_registers = (1L << op0) | (1L << op1); in push_2_buffer()
847 inst_buf[inst_buf_index].output_registers = 0; in push_2_buffer()
857 inst_buf[inst_buf_index].input_registers = 1L << op1; in push_2_buffer()
858 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_2_buffer()
865 inst_buf_index++; in push_2_buffer()
872 if (inst_buf_index == TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE) in push_0_buffer()
876 inst_buf[inst_buf_index].opcode = opcode; in push_0_buffer()
877 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_0_buffer()
878 inst_buf[inst_buf_index].input_registers = 0; in push_0_buffer()
879 inst_buf[inst_buf_index].output_registers = 0; in push_0_buffer()
880 inst_buf[inst_buf_index].line = line; in push_0_buffer()
881 inst_buf_index++; in push_0_buffer()
888 if (inst_buf_index == TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE) in push_jr_buffer()
892 inst_buf[inst_buf_index].opcode = opcode; in push_jr_buffer()
893 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_jr_buffer()
894 inst_buf[inst_buf_index].operand_value[0] = op0; in push_jr_buffer()
895 inst_buf[inst_buf_index].input_registers = 1L << op0; in push_jr_buffer()
896 inst_buf[inst_buf_index].output_registers = 0; in push_jr_buffer()
897 inst_buf[inst_buf_index].line = line; in push_jr_buffer()
898 inst_buf_index++; in push_jr_buffer()