Lines Matching refs:fields
45 #define FLD(f) (fields->f)
242 CGEN_FIELDS * fields, in insert_insn_normal() argument
259 CGEN_FIELDS_BITSIZE (fields), value); in insert_insn_normal()
264 (unsigned) CGEN_FIELDS_BITSIZE (fields)), in insert_insn_normal()
282 fields, buffer, pc); in insert_insn_normal()
510 CGEN_FIELDS *fields, in extract_insn_normal() argument
516 CGEN_FIELDS_BITSIZE (fields) = CGEN_INSN_BITSIZE (insn); in extract_insn_normal()
528 ex_info, insn_value, fields, pc); in extract_insn_normal()
559 CGEN_FIELDS * fields, in m32r_cgen_insert_operand() argument
564 unsigned int total_length = CGEN_FIELDS_BITSIZE (fields); in m32r_cgen_insert_operand()
569 errmsg = insert_normal (cd, fields->f_acc, 0, 0, 8, 1, 32, total_length, buffer); in m32r_cgen_insert_operand()
572 errmsg = insert_normal (cd, fields->f_accd, 0, 0, 4, 2, 32, total_length, buffer); in m32r_cgen_insert_operand()
575 errmsg = insert_normal (cd, fields->f_accs, 0, 0, 12, 2, 32, total_length, buffer); in m32r_cgen_insert_operand()
578 errmsg = insert_normal (cd, fields->f_r1, 0, 0, 4, 4, 32, total_length, buffer); in m32r_cgen_insert_operand()
582 long value = fields->f_disp16; in m32r_cgen_insert_operand()
589 long value = fields->f_disp24; in m32r_cgen_insert_operand()
596 long value = fields->f_disp8; in m32r_cgen_insert_operand()
602 errmsg = insert_normal (cd, fields->f_r1, 0, 0, 4, 4, 32, total_length, buffer); in m32r_cgen_insert_operand()
607 …errmsg = insert_normal (cd, fields->f_hi16, 0|(1<<CGEN_IFLD_SIGN_OPT), 0, 16, 16, 32, total_length… in m32r_cgen_insert_operand()
611 long value = fields->f_imm1; in m32r_cgen_insert_operand()
617 errmsg = insert_normal (cd, fields->f_r2, 0, 0, 12, 4, 32, total_length, buffer); in m32r_cgen_insert_operand()
620 …errmsg = insert_normal (cd, fields->f_simm16, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length… in m32r_cgen_insert_operand()
623 …errmsg = insert_normal (cd, fields->f_simm8, 0|(1<<CGEN_IFLD_SIGNED), 0, 8, 8, 32, total_length, b… in m32r_cgen_insert_operand()
626 …errmsg = insert_normal (cd, fields->f_simm16, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length… in m32r_cgen_insert_operand()
629 errmsg = insert_normal (cd, fields->f_r2, 0, 0, 12, 4, 32, total_length, buffer); in m32r_cgen_insert_operand()
632 errmsg = insert_normal (cd, fields->f_r1, 0, 0, 4, 4, 32, total_length, buffer); in m32r_cgen_insert_operand()
635 errmsg = insert_normal (cd, fields->f_r2, 0, 0, 12, 4, 32, total_length, buffer); in m32r_cgen_insert_operand()
638 errmsg = insert_normal (cd, fields->f_uimm16, 0, 0, 16, 16, 32, total_length, buffer); in m32r_cgen_insert_operand()
641 …errmsg = insert_normal (cd, fields->f_uimm24, 0|(1<<CGEN_IFLD_RELOC)|(1<<CGEN_IFLD_ABS_ADDR), 0, 8… in m32r_cgen_insert_operand()
644 errmsg = insert_normal (cd, fields->f_uimm3, 0, 0, 5, 3, 32, total_length, buffer); in m32r_cgen_insert_operand()
647 errmsg = insert_normal (cd, fields->f_uimm4, 0, 0, 12, 4, 32, total_length, buffer); in m32r_cgen_insert_operand()
650 errmsg = insert_normal (cd, fields->f_uimm5, 0, 0, 11, 5, 32, total_length, buffer); in m32r_cgen_insert_operand()
653 errmsg = insert_normal (cd, fields->f_uimm8, 0, 0, 8, 8, 32, total_length, buffer); in m32r_cgen_insert_operand()
656 errmsg = insert_normal (cd, fields->f_uimm16, 0, 0, 16, 16, 32, total_length, buffer); in m32r_cgen_insert_operand()
692 CGEN_FIELDS * fields, in m32r_cgen_extract_operand() argument
697 unsigned int total_length = CGEN_FIELDS_BITSIZE (fields); in m32r_cgen_extract_operand()
702 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 1, 32, total_length, pc, & fields->f_ac… in m32r_cgen_extract_operand()
705 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 4, 2, 32, total_length, pc, & fields->f_ac… in m32r_cgen_extract_operand()
708 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 12, 2, 32, total_length, pc, & fields->f_a… in m32r_cgen_extract_operand()
711 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 4, 4, 32, total_length, pc, & fields->f_r1… in m32r_cgen_extract_operand()
718 fields->f_disp16 = value; in m32r_cgen_extract_operand()
726 fields->f_disp24 = value; in m32r_cgen_extract_operand()
734 fields->f_disp8 = value; in m32r_cgen_extract_operand()
738 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 4, 4, 32, total_length, pc, & fields->f_r1… in m32r_cgen_extract_operand()
743 …ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGN_OPT), 0, 16, 16, 32, total_length, pc, & fields->f_hi16); in m32r_cgen_extract_operand()
750 fields->f_imm1 = value; in m32r_cgen_extract_operand()
754 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 12, 4, 32, total_length, pc, & fields->f_r… in m32r_cgen_extract_operand()
757 …ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length, pc, & fields->f_simm16); in m32r_cgen_extract_operand()
760 …d, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 8, 8, 32, total_length, pc, & fields->f_simm8); in m32r_cgen_extract_operand()
763 …ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 16, 16, 32, total_length, pc, & fields->f_simm16); in m32r_cgen_extract_operand()
766 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 12, 4, 32, total_length, pc, & fields->f_r… in m32r_cgen_extract_operand()
769 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 4, 4, 32, total_length, pc, & fields->f_r1… in m32r_cgen_extract_operand()
772 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 12, 4, 32, total_length, pc, & fields->f_r… in m32r_cgen_extract_operand()
775 …= extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & fields->f_uimm16); in m32r_cgen_extract_operand()
778 …|(1<<CGEN_IFLD_RELOC)|(1<<CGEN_IFLD_ABS_ADDR), 0, 8, 24, 32, total_length, pc, & fields->f_uimm24); in m32r_cgen_extract_operand()
781 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 5, 3, 32, total_length, pc, & fields->f_ui… in m32r_cgen_extract_operand()
784 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 12, 4, 32, total_length, pc, & fields->f_u… in m32r_cgen_extract_operand()
787 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 11, 5, 32, total_length, pc, & fields->f_u… in m32r_cgen_extract_operand()
790 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 8, 32, total_length, pc, & fields->f_ui… in m32r_cgen_extract_operand()
793 …= extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & fields->f_uimm16); in m32r_cgen_extract_operand()
827 const CGEN_FIELDS * fields) in m32r_cgen_get_int_operand() argument
834 value = fields->f_acc; in m32r_cgen_get_int_operand()
837 value = fields->f_accd; in m32r_cgen_get_int_operand()
840 value = fields->f_accs; in m32r_cgen_get_int_operand()
843 value = fields->f_r1; in m32r_cgen_get_int_operand()
846 value = fields->f_disp16; in m32r_cgen_get_int_operand()
849 value = fields->f_disp24; in m32r_cgen_get_int_operand()
852 value = fields->f_disp8; in m32r_cgen_get_int_operand()
855 value = fields->f_r1; in m32r_cgen_get_int_operand()
861 value = fields->f_hi16; in m32r_cgen_get_int_operand()
864 value = fields->f_imm1; in m32r_cgen_get_int_operand()
867 value = fields->f_r2; in m32r_cgen_get_int_operand()
870 value = fields->f_simm16; in m32r_cgen_get_int_operand()
873 value = fields->f_simm8; in m32r_cgen_get_int_operand()
876 value = fields->f_simm16; in m32r_cgen_get_int_operand()
879 value = fields->f_r2; in m32r_cgen_get_int_operand()
882 value = fields->f_r1; in m32r_cgen_get_int_operand()
885 value = fields->f_r2; in m32r_cgen_get_int_operand()
888 value = fields->f_uimm16; in m32r_cgen_get_int_operand()
891 value = fields->f_uimm24; in m32r_cgen_get_int_operand()
894 value = fields->f_uimm3; in m32r_cgen_get_int_operand()
897 value = fields->f_uimm4; in m32r_cgen_get_int_operand()
900 value = fields->f_uimm5; in m32r_cgen_get_int_operand()
903 value = fields->f_uimm8; in m32r_cgen_get_int_operand()
906 value = fields->f_uimm16; in m32r_cgen_get_int_operand()
922 const CGEN_FIELDS * fields) in m32r_cgen_get_vma_operand() argument
929 value = fields->f_acc; in m32r_cgen_get_vma_operand()
932 value = fields->f_accd; in m32r_cgen_get_vma_operand()
935 value = fields->f_accs; in m32r_cgen_get_vma_operand()
938 value = fields->f_r1; in m32r_cgen_get_vma_operand()
941 value = fields->f_disp16; in m32r_cgen_get_vma_operand()
944 value = fields->f_disp24; in m32r_cgen_get_vma_operand()
947 value = fields->f_disp8; in m32r_cgen_get_vma_operand()
950 value = fields->f_r1; in m32r_cgen_get_vma_operand()
956 value = fields->f_hi16; in m32r_cgen_get_vma_operand()
959 value = fields->f_imm1; in m32r_cgen_get_vma_operand()
962 value = fields->f_r2; in m32r_cgen_get_vma_operand()
965 value = fields->f_simm16; in m32r_cgen_get_vma_operand()
968 value = fields->f_simm8; in m32r_cgen_get_vma_operand()
971 value = fields->f_simm16; in m32r_cgen_get_vma_operand()
974 value = fields->f_r2; in m32r_cgen_get_vma_operand()
977 value = fields->f_r1; in m32r_cgen_get_vma_operand()
980 value = fields->f_r2; in m32r_cgen_get_vma_operand()
983 value = fields->f_uimm16; in m32r_cgen_get_vma_operand()
986 value = fields->f_uimm24; in m32r_cgen_get_vma_operand()
989 value = fields->f_uimm3; in m32r_cgen_get_vma_operand()
992 value = fields->f_uimm4; in m32r_cgen_get_vma_operand()
995 value = fields->f_uimm5; in m32r_cgen_get_vma_operand()
998 value = fields->f_uimm8; in m32r_cgen_get_vma_operand()
1001 value = fields->f_uimm16; in m32r_cgen_get_vma_operand()
1025 CGEN_FIELDS * fields, in m32r_cgen_set_int_operand() argument
1031 fields->f_acc = value; in m32r_cgen_set_int_operand()
1034 fields->f_accd = value; in m32r_cgen_set_int_operand()
1037 fields->f_accs = value; in m32r_cgen_set_int_operand()
1040 fields->f_r1 = value; in m32r_cgen_set_int_operand()
1043 fields->f_disp16 = value; in m32r_cgen_set_int_operand()
1046 fields->f_disp24 = value; in m32r_cgen_set_int_operand()
1049 fields->f_disp8 = value; in m32r_cgen_set_int_operand()
1052 fields->f_r1 = value; in m32r_cgen_set_int_operand()
1057 fields->f_hi16 = value; in m32r_cgen_set_int_operand()
1060 fields->f_imm1 = value; in m32r_cgen_set_int_operand()
1063 fields->f_r2 = value; in m32r_cgen_set_int_operand()
1066 fields->f_simm16 = value; in m32r_cgen_set_int_operand()
1069 fields->f_simm8 = value; in m32r_cgen_set_int_operand()
1072 fields->f_simm16 = value; in m32r_cgen_set_int_operand()
1075 fields->f_r2 = value; in m32r_cgen_set_int_operand()
1078 fields->f_r1 = value; in m32r_cgen_set_int_operand()
1081 fields->f_r2 = value; in m32r_cgen_set_int_operand()
1084 fields->f_uimm16 = value; in m32r_cgen_set_int_operand()
1087 fields->f_uimm24 = value; in m32r_cgen_set_int_operand()
1090 fields->f_uimm3 = value; in m32r_cgen_set_int_operand()
1093 fields->f_uimm4 = value; in m32r_cgen_set_int_operand()
1096 fields->f_uimm5 = value; in m32r_cgen_set_int_operand()
1099 fields->f_uimm8 = value; in m32r_cgen_set_int_operand()
1102 fields->f_uimm16 = value; in m32r_cgen_set_int_operand()
1116 CGEN_FIELDS * fields, in m32r_cgen_set_vma_operand() argument
1122 fields->f_acc = value; in m32r_cgen_set_vma_operand()
1125 fields->f_accd = value; in m32r_cgen_set_vma_operand()
1128 fields->f_accs = value; in m32r_cgen_set_vma_operand()
1131 fields->f_r1 = value; in m32r_cgen_set_vma_operand()
1134 fields->f_disp16 = value; in m32r_cgen_set_vma_operand()
1137 fields->f_disp24 = value; in m32r_cgen_set_vma_operand()
1140 fields->f_disp8 = value; in m32r_cgen_set_vma_operand()
1143 fields->f_r1 = value; in m32r_cgen_set_vma_operand()
1148 fields->f_hi16 = value; in m32r_cgen_set_vma_operand()
1151 fields->f_imm1 = value; in m32r_cgen_set_vma_operand()
1154 fields->f_r2 = value; in m32r_cgen_set_vma_operand()
1157 fields->f_simm16 = value; in m32r_cgen_set_vma_operand()
1160 fields->f_simm8 = value; in m32r_cgen_set_vma_operand()
1163 fields->f_simm16 = value; in m32r_cgen_set_vma_operand()
1166 fields->f_r2 = value; in m32r_cgen_set_vma_operand()
1169 fields->f_r1 = value; in m32r_cgen_set_vma_operand()
1172 fields->f_r2 = value; in m32r_cgen_set_vma_operand()
1175 fields->f_uimm16 = value; in m32r_cgen_set_vma_operand()
1178 fields->f_uimm24 = value; in m32r_cgen_set_vma_operand()
1181 fields->f_uimm3 = value; in m32r_cgen_set_vma_operand()
1184 fields->f_uimm4 = value; in m32r_cgen_set_vma_operand()
1187 fields->f_uimm5 = value; in m32r_cgen_set_vma_operand()
1190 fields->f_uimm8 = value; in m32r_cgen_set_vma_operand()
1193 fields->f_uimm16 = value; in m32r_cgen_set_vma_operand()