Lines Matching refs:cd

80 insert_1 (CGEN_CPU_DESC cd,  in insert_1()  argument
90 x = cgen_get_insn_value (cd, bufp, word_length); in insert_1()
100 cgen_put_insn_value (cd, bufp, word_length, (bfd_vma) x); in insert_1()
122 insert_normal (CGEN_CPU_DESC cd, in insert_normal() argument
145 if (cd->min_insn_bitsize < cd->base_insn_bitsize) in insert_normal()
191 if (! cgen_signed_overflow_ok_p (cd)) in insert_normal()
224 insert_1 (cd, value, start, length, word_length, bufp); in insert_normal()
240 insert_insn_normal (CGEN_CPU_DESC cd, in insert_insn_normal() argument
250 CGEN_INIT_INSERT (cd); in insert_insn_normal()
258 put_insn_int_value (cd, buffer, cd->base_insn_bitsize, in insert_insn_normal()
263 cgen_put_insn_value (cd, buffer, min ((unsigned) cd->base_insn_bitsize, in insert_insn_normal()
281 errmsg = (* cd->insert_operand) (cd, CGEN_SYNTAX_FIELD (*syn), in insert_insn_normal()
295 put_insn_int_value (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in put_insn_int_value()
327 fill_cache (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in fill_cache()
371 extract_1 (CGEN_CPU_DESC cd, in extract_1() argument
382 x = cgen_get_insn_value (cd, bufp, word_length); in extract_1()
414 extract_normal (CGEN_CPU_DESC cd, in extract_normal() argument
449 if (cd->min_insn_bitsize < cd->base_insn_bitsize) in extract_normal()
474 if (fill_cache (cd, ex_info, word_offset / 8, word_length / 8, pc) == 0) in extract_normal()
477 value = extract_1 (cd, ex_info, start, length, word_length, bufp, pc); in extract_normal()
506 extract_insn_normal (CGEN_CPU_DESC cd, in extract_insn_normal() argument
518 CGEN_INIT_EXTRACT (cd); in extract_insn_normal()
527 length = (* cd->extract_operand) (cd, CGEN_SYNTAX_FIELD (*syn), in extract_insn_normal()
557 mt_cgen_insert_operand (CGEN_CPU_DESC cd, in mt_cgen_insert_operand() argument
569 errmsg = insert_normal (cd, fields->f_a23, 0, 0, 23, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
572 errmsg = insert_normal (cd, fields->f_ball, 0, 0, 19, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
575 errmsg = insert_normal (cd, fields->f_ball2, 0, 0, 15, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
578 errmsg = insert_normal (cd, fields->f_bankaddr, 0, 0, 25, 13, 32, total_length, buffer); in mt_cgen_insert_operand()
581 errmsg = insert_normal (cd, fields->f_brc, 0, 0, 18, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
584 errmsg = insert_normal (cd, fields->f_brc2, 0, 0, 14, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
587 …errmsg = insert_normal (cd, fields->f_cb1incr, 0|(1<<CGEN_IFLD_SIGNED), 0, 19, 6, 32, total_length… in mt_cgen_insert_operand()
590 errmsg = insert_normal (cd, fields->f_cb1sel, 0, 0, 25, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
593 …errmsg = insert_normal (cd, fields->f_cb2incr, 0|(1<<CGEN_IFLD_SIGNED), 0, 13, 6, 32, total_length… in mt_cgen_insert_operand()
596 errmsg = insert_normal (cd, fields->f_cb2sel, 0, 0, 22, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
599 errmsg = insert_normal (cd, fields->f_cbrb, 0, 0, 10, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
602 errmsg = insert_normal (cd, fields->f_cbs, 0, 0, 19, 2, 32, total_length, buffer); in mt_cgen_insert_operand()
605 errmsg = insert_normal (cd, fields->f_cbx, 0, 0, 14, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
608 errmsg = insert_normal (cd, fields->f_ccb, 0, 0, 11, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
611 errmsg = insert_normal (cd, fields->f_cdb, 0, 0, 10, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
614 errmsg = insert_normal (cd, fields->f_cell, 0, 0, 9, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
617 errmsg = insert_normal (cd, fields->f_colnum, 0, 0, 18, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
620 errmsg = insert_normal (cd, fields->f_contnum, 0, 0, 8, 9, 32, total_length, buffer); in mt_cgen_insert_operand()
623 errmsg = insert_normal (cd, fields->f_cr, 0, 0, 22, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
626 errmsg = insert_normal (cd, fields->f_ctxdisp, 0, 0, 5, 6, 32, total_length, buffer); in mt_cgen_insert_operand()
629 errmsg = insert_normal (cd, fields->f_dup, 0, 0, 6, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
632 errmsg = insert_normal (cd, fields->f_fbdisp, 0, 0, 15, 6, 32, total_length, buffer); in mt_cgen_insert_operand()
635 errmsg = insert_normal (cd, fields->f_fbincr, 0, 0, 23, 4, 32, total_length, buffer); in mt_cgen_insert_operand()
638 …errmsg = insert_normal (cd, fields->f_dr, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 19, 4, 32, total_length, b… in mt_cgen_insert_operand()
641 …errmsg = insert_normal (cd, fields->f_drrr, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 15, 4, 32, total_length,… in mt_cgen_insert_operand()
644 …errmsg = insert_normal (cd, fields->f_sr1, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 23, 4, 32, total_length, … in mt_cgen_insert_operand()
647 …errmsg = insert_normal (cd, fields->f_sr2, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 19, 4, 32, total_length, … in mt_cgen_insert_operand()
650 errmsg = insert_normal (cd, fields->f_id, 0, 0, 14, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
656 … errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, buffer); in mt_cgen_insert_operand()
660 errmsg = insert_normal (cd, fields->f_imm16l, 0, 0, 23, 16, 32, total_length, buffer); in mt_cgen_insert_operand()
666 … errmsg = insert_normal (cd, value, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, buffer); in mt_cgen_insert_operand()
670 errmsg = insert_normal (cd, fields->f_imm16u, 0, 0, 15, 16, 32, total_length, buffer); in mt_cgen_insert_operand()
673 errmsg = insert_normal (cd, fields->f_incamt, 0, 0, 19, 8, 32, total_length, buffer); in mt_cgen_insert_operand()
676 errmsg = insert_normal (cd, fields->f_incr, 0, 0, 17, 6, 32, total_length, buffer); in mt_cgen_insert_operand()
679 errmsg = insert_normal (cd, fields->f_length, 0, 0, 15, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
685 errmsg = insert_normal (cd, value, 0, 0, 7, 8, 32, total_length, buffer); in mt_cgen_insert_operand()
689 errmsg = insert_normal (cd, fields->f_mask, 0, 0, 25, 16, 32, total_length, buffer); in mt_cgen_insert_operand()
692 errmsg = insert_normal (cd, fields->f_mask1, 0, 0, 22, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
695 errmsg = insert_normal (cd, fields->f_mode, 0, 0, 25, 2, 32, total_length, buffer); in mt_cgen_insert_operand()
698 errmsg = insert_normal (cd, fields->f_perm, 0, 0, 25, 2, 32, total_length, buffer); in mt_cgen_insert_operand()
701 errmsg = insert_normal (cd, fields->f_rbbc, 0, 0, 25, 2, 32, total_length, buffer); in mt_cgen_insert_operand()
704 errmsg = insert_normal (cd, fields->f_rc, 0, 0, 15, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
707 errmsg = insert_normal (cd, fields->f_rc1, 0, 0, 11, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
710 errmsg = insert_normal (cd, fields->f_rc2, 0, 0, 6, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
713 errmsg = insert_normal (cd, fields->f_rc3, 0, 0, 7, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
716 errmsg = insert_normal (cd, fields->f_rcnum, 0, 0, 14, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
719 errmsg = insert_normal (cd, fields->f_rda, 0, 0, 25, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
722 errmsg = insert_normal (cd, fields->f_rownum, 0, 0, 14, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
725 errmsg = insert_normal (cd, fields->f_rownum1, 0, 0, 12, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
728 errmsg = insert_normal (cd, fields->f_rownum2, 0, 0, 9, 3, 32, total_length, buffer); in mt_cgen_insert_operand()
731 errmsg = insert_normal (cd, fields->f_size, 0, 0, 13, 14, 32, total_length, buffer); in mt_cgen_insert_operand()
734 errmsg = insert_normal (cd, fields->f_type, 0, 0, 21, 2, 32, total_length, buffer); in mt_cgen_insert_operand()
737 errmsg = insert_normal (cd, fields->f_wr, 0, 0, 24, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
740 errmsg = insert_normal (cd, fields->f_xmode, 0, 0, 23, 1, 32, total_length, buffer); in mt_cgen_insert_operand()
772 mt_cgen_extract_operand (CGEN_CPU_DESC cd, in mt_cgen_extract_operand() argument
786 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 23, 1, 32, total_length, pc, & fields->f_a… in mt_cgen_extract_operand()
789 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 19, 1, 32, total_length, pc, & fields->f_b… in mt_cgen_extract_operand()
792 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 15, 1, 32, total_length, pc, & fields->f_b… in mt_cgen_extract_operand()
795 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 25, 13, 32, total_length, pc, & fields->f_… in mt_cgen_extract_operand()
798 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 18, 3, 32, total_length, pc, & fields->f_b… in mt_cgen_extract_operand()
801 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 14, 3, 32, total_length, pc, & fields->f_b… in mt_cgen_extract_operand()
804 …length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 19, 6, 32, total_len… in mt_cgen_extract_operand()
807 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 25, 3, 32, total_length, pc, & fields->f_c… in mt_cgen_extract_operand()
810 …length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 13, 6, 32, total_len… in mt_cgen_extract_operand()
813 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 22, 3, 32, total_length, pc, & fields->f_c… in mt_cgen_extract_operand()
816 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 10, 1, 32, total_length, pc, & fields->f_c… in mt_cgen_extract_operand()
819 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 19, 2, 32, total_length, pc, & fields->f_c… in mt_cgen_extract_operand()
822 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 14, 3, 32, total_length, pc, & fields->f_c… in mt_cgen_extract_operand()
825 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 11, 1, 32, total_length, pc, & fields->f_c… in mt_cgen_extract_operand()
828 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 10, 1, 32, total_length, pc, & fields->f_c… in mt_cgen_extract_operand()
831 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 9, 3, 32, total_length, pc, & fields->f_ce… in mt_cgen_extract_operand()
834 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 18, 3, 32, total_length, pc, & fields->f_c… in mt_cgen_extract_operand()
837 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 9, 32, total_length, pc, & fields->f_co… in mt_cgen_extract_operand()
840 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 22, 3, 32, total_length, pc, & fields->f_c… in mt_cgen_extract_operand()
843 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 5, 6, 32, total_length, pc, & fields->f_ct… in mt_cgen_extract_operand()
846 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 6, 1, 32, total_length, pc, & fields->f_du… in mt_cgen_extract_operand()
849 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 15, 6, 32, total_length, pc, & fields->f_f… in mt_cgen_extract_operand()
852 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 23, 4, 32, total_length, pc, & fields->f_f… in mt_cgen_extract_operand()
855 …length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 19, 4, 32, total_l… in mt_cgen_extract_operand()
858 …length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 15, 4, 32, total_l… in mt_cgen_extract_operand()
861 …length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 23, 4, 32, total_l… in mt_cgen_extract_operand()
864 …length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 19, 4, 32, total_l… in mt_cgen_extract_operand()
867 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 14, 1, 32, total_length, pc, & fields->f_i… in mt_cgen_extract_operand()
872 …length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_le… in mt_cgen_extract_operand()
878 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 23, 16, 32, total_length, pc, & fields->f_… in mt_cgen_extract_operand()
883 …length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_le… in mt_cgen_extract_operand()
889 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 15, 16, 32, total_length, pc, & fields->f_… in mt_cgen_extract_operand()
892 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 19, 8, 32, total_length, pc, & fields->f_i… in mt_cgen_extract_operand()
895 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 17, 6, 32, total_length, pc, & fields->f_i… in mt_cgen_extract_operand()
898 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 15, 3, 32, total_length, pc, & fields->f_l… in mt_cgen_extract_operand()
903 … length = extract_normal (cd, ex_info, insn_value, 0, 0, 7, 8, 32, total_length, pc, & value); in mt_cgen_extract_operand()
909 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 25, 16, 32, total_length, pc, & fields->f_… in mt_cgen_extract_operand()
912 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 22, 3, 32, total_length, pc, & fields->f_m… in mt_cgen_extract_operand()
915 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 25, 2, 32, total_length, pc, & fields->f_m… in mt_cgen_extract_operand()
918 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 25, 2, 32, total_length, pc, & fields->f_p… in mt_cgen_extract_operand()
921 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 25, 2, 32, total_length, pc, & fields->f_r… in mt_cgen_extract_operand()
924 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 15, 1, 32, total_length, pc, & fields->f_r… in mt_cgen_extract_operand()
927 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 11, 1, 32, total_length, pc, & fields->f_r… in mt_cgen_extract_operand()
930 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 6, 1, 32, total_length, pc, & fields->f_rc… in mt_cgen_extract_operand()
933 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 7, 1, 32, total_length, pc, & fields->f_rc… in mt_cgen_extract_operand()
936 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 14, 3, 32, total_length, pc, & fields->f_r… in mt_cgen_extract_operand()
939 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 25, 1, 32, total_length, pc, & fields->f_r… in mt_cgen_extract_operand()
942 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 14, 3, 32, total_length, pc, & fields->f_r… in mt_cgen_extract_operand()
945 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 12, 3, 32, total_length, pc, & fields->f_r… in mt_cgen_extract_operand()
948 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 9, 3, 32, total_length, pc, & fields->f_ro… in mt_cgen_extract_operand()
951 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 13, 14, 32, total_length, pc, & fields->f_… in mt_cgen_extract_operand()
954 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 21, 2, 32, total_length, pc, & fields->f_t… in mt_cgen_extract_operand()
957 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 24, 1, 32, total_length, pc, & fields->f_w… in mt_cgen_extract_operand()
960 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 23, 1, 32, total_length, pc, & fields->f_x… in mt_cgen_extract_operand()
992 mt_cgen_get_int_operand (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in mt_cgen_get_int_operand()
1174 mt_cgen_get_vma_operand (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in mt_cgen_get_vma_operand()
1364 mt_cgen_set_int_operand (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in mt_cgen_set_int_operand()
1543 mt_cgen_set_vma_operand (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in mt_cgen_set_vma_operand()
1724 mt_cgen_init_ibld_table (CGEN_CPU_DESC cd) in mt_cgen_init_ibld_table() argument
1726 cd->insert_handlers = & mt_cgen_insert_handlers[0]; in mt_cgen_init_ibld_table()
1727 cd->extract_handlers = & mt_cgen_extract_handlers[0]; in mt_cgen_init_ibld_table()
1729 cd->insert_operand = mt_cgen_insert_operand; in mt_cgen_init_ibld_table()
1730 cd->extract_operand = mt_cgen_extract_operand; in mt_cgen_init_ibld_table()
1732 cd->get_int_operand = mt_cgen_get_int_operand; in mt_cgen_init_ibld_table()
1733 cd->set_int_operand = mt_cgen_set_int_operand; in mt_cgen_init_ibld_table()
1734 cd->get_vma_operand = mt_cgen_get_vma_operand; in mt_cgen_init_ibld_table()
1735 cd->set_vma_operand = mt_cgen_set_vma_operand; in mt_cgen_init_ibld_table()