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 xstormy16_cgen_insert_operand() argument
564 unsigned int total_length = CGEN_FIELDS_BITSIZE (fields); in xstormy16_cgen_insert_operand()
569 errmsg = insert_normal (cd, fields->f_Rb, 0, 0, 17, 3, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
572 errmsg = insert_normal (cd, fields->f_Rbj, 0, 0, 11, 1, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
575 errmsg = insert_normal (cd, fields->f_Rd, 0, 0, 12, 4, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
578 errmsg = insert_normal (cd, fields->f_Rdm, 0, 0, 13, 3, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
581 errmsg = insert_normal (cd, fields->f_Rm, 0, 0, 4, 3, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
584 errmsg = insert_normal (cd, fields->f_Rs, 0, 0, 8, 4, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
592 errmsg = insert_normal (cd, fields->f_abs24_1, 0, 0, 8, 8, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
595 errmsg = insert_normal (cd, fields->f_abs24_2, 0, 0, 16, 16, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
601 errmsg = insert_normal (cd, fields->f_op2, 0, 0, 4, 4, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
604 errmsg = insert_normal (cd, fields->f_op5, 0, 0, 16, 4, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
608 long value = fields->f_hmem8; in xstormy16_cgen_insert_operand()
614 …errmsg = insert_normal (cd, fields->f_imm12, 0|(1<<CGEN_IFLD_SIGNED), 0, 20, 12, 32, total_length,… in xstormy16_cgen_insert_operand()
617 …errmsg = insert_normal (cd, fields->f_imm16, 0|(1<<CGEN_IFLD_SIGN_OPT), 0, 16, 16, 32, total_lengt… in xstormy16_cgen_insert_operand()
620 errmsg = insert_normal (cd, fields->f_imm2, 0, 0, 10, 2, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
623 errmsg = insert_normal (cd, fields->f_imm3, 0, 0, 4, 3, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
626 errmsg = insert_normal (cd, fields->f_imm3b, 0, 0, 17, 3, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
629 errmsg = insert_normal (cd, fields->f_imm4, 0, 0, 8, 4, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
632 errmsg = insert_normal (cd, fields->f_imm8, 0, 0, 8, 8, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
635 errmsg = insert_normal (cd, fields->f_imm8, 0, 0, 8, 8, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
638 …errmsg = insert_normal (cd, fields->f_lmem8, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 8, 8, 32, total_length,… in xstormy16_cgen_insert_operand()
642 long value = fields->f_rel12; in xstormy16_cgen_insert_operand()
649 long value = fields->f_rel12a; in xstormy16_cgen_insert_operand()
656 long value = fields->f_rel8_2; in xstormy16_cgen_insert_operand()
663 long value = fields->f_rel8_4; in xstormy16_cgen_insert_operand()
669 errmsg = insert_normal (cd, fields->f_op2m, 0, 0, 7, 1, 32, total_length, buffer); in xstormy16_cgen_insert_operand()
705 CGEN_FIELDS * fields, in xstormy16_cgen_extract_operand() argument
710 unsigned int total_length = CGEN_FIELDS_BITSIZE (fields); in xstormy16_cgen_extract_operand()
715 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 17, 3, 32, total_length, pc, & fields->f_R… in xstormy16_cgen_extract_operand()
718 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 11, 1, 32, total_length, pc, & fields->f_R… in xstormy16_cgen_extract_operand()
721 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 12, 4, 32, total_length, pc, & fields->f_R… in xstormy16_cgen_extract_operand()
724 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 13, 3, 32, total_length, pc, & fields->f_R… in xstormy16_cgen_extract_operand()
727 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 4, 3, 32, total_length, pc, & fields->f_Rm… in xstormy16_cgen_extract_operand()
730 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 4, 32, total_length, pc, & fields->f_Rs… in xstormy16_cgen_extract_operand()
734 … = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 8, 32, total_length, pc, & fields->f_abs24_1); in xstormy16_cgen_extract_operand()
736 … extract_normal (cd, ex_info, insn_value, 0, 0, 16, 16, 32, total_length, pc, & fields->f_abs24_2); in xstormy16_cgen_extract_operand()
742 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 4, 4, 32, total_length, pc, & fields->f_op… in xstormy16_cgen_extract_operand()
745 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 16, 4, 32, total_length, pc, & fields->f_o… in xstormy16_cgen_extract_operand()
752 fields->f_hmem8 = value; in xstormy16_cgen_extract_operand()
756 … ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 20, 12, 32, total_length, pc, & fields->f_imm12); in xstormy16_cgen_extract_operand()
759 …x_info, insn_value, 0|(1<<CGEN_IFLD_SIGN_OPT), 0, 16, 16, 32, total_length, pc, & fields->f_imm16); in xstormy16_cgen_extract_operand()
762 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 10, 2, 32, total_length, pc, & fields->f_i… in xstormy16_cgen_extract_operand()
765 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 4, 3, 32, total_length, pc, & fields->f_im… in xstormy16_cgen_extract_operand()
768 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 17, 3, 32, total_length, pc, & fields->f_i… in xstormy16_cgen_extract_operand()
771 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 4, 32, total_length, pc, & fields->f_im… in xstormy16_cgen_extract_operand()
774 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 8, 32, total_length, pc, & fields->f_im… in xstormy16_cgen_extract_operand()
777 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 8, 32, total_length, pc, & fields->f_im… in xstormy16_cgen_extract_operand()
780 … ex_info, insn_value, 0|(1<<CGEN_IFLD_ABS_ADDR), 0, 8, 8, 32, total_length, pc, & fields->f_lmem8); in xstormy16_cgen_extract_operand()
787 fields->f_rel12 = value; in xstormy16_cgen_extract_operand()
795 fields->f_rel12a = value; in xstormy16_cgen_extract_operand()
803 fields->f_rel8_2 = value; in xstormy16_cgen_extract_operand()
811 fields->f_rel8_4 = value; in xstormy16_cgen_extract_operand()
815 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 7, 1, 32, total_length, pc, & fields->f_op… in xstormy16_cgen_extract_operand()
849 const CGEN_FIELDS * fields) in xstormy16_cgen_get_int_operand() argument
856 value = fields->f_Rb; in xstormy16_cgen_get_int_operand()
859 value = fields->f_Rbj; in xstormy16_cgen_get_int_operand()
862 value = fields->f_Rd; in xstormy16_cgen_get_int_operand()
865 value = fields->f_Rdm; in xstormy16_cgen_get_int_operand()
868 value = fields->f_Rm; in xstormy16_cgen_get_int_operand()
871 value = fields->f_Rs; in xstormy16_cgen_get_int_operand()
874 value = fields->f_abs24; in xstormy16_cgen_get_int_operand()
877 value = fields->f_op2; in xstormy16_cgen_get_int_operand()
880 value = fields->f_op5; in xstormy16_cgen_get_int_operand()
883 value = fields->f_hmem8; in xstormy16_cgen_get_int_operand()
886 value = fields->f_imm12; in xstormy16_cgen_get_int_operand()
889 value = fields->f_imm16; in xstormy16_cgen_get_int_operand()
892 value = fields->f_imm2; in xstormy16_cgen_get_int_operand()
895 value = fields->f_imm3; in xstormy16_cgen_get_int_operand()
898 value = fields->f_imm3b; in xstormy16_cgen_get_int_operand()
901 value = fields->f_imm4; in xstormy16_cgen_get_int_operand()
904 value = fields->f_imm8; in xstormy16_cgen_get_int_operand()
907 value = fields->f_imm8; in xstormy16_cgen_get_int_operand()
910 value = fields->f_lmem8; in xstormy16_cgen_get_int_operand()
913 value = fields->f_rel12; in xstormy16_cgen_get_int_operand()
916 value = fields->f_rel12a; in xstormy16_cgen_get_int_operand()
919 value = fields->f_rel8_2; in xstormy16_cgen_get_int_operand()
922 value = fields->f_rel8_4; in xstormy16_cgen_get_int_operand()
925 value = fields->f_op2m; in xstormy16_cgen_get_int_operand()
941 const CGEN_FIELDS * fields) in xstormy16_cgen_get_vma_operand() argument
948 value = fields->f_Rb; in xstormy16_cgen_get_vma_operand()
951 value = fields->f_Rbj; in xstormy16_cgen_get_vma_operand()
954 value = fields->f_Rd; in xstormy16_cgen_get_vma_operand()
957 value = fields->f_Rdm; in xstormy16_cgen_get_vma_operand()
960 value = fields->f_Rm; in xstormy16_cgen_get_vma_operand()
963 value = fields->f_Rs; in xstormy16_cgen_get_vma_operand()
966 value = fields->f_abs24; in xstormy16_cgen_get_vma_operand()
969 value = fields->f_op2; in xstormy16_cgen_get_vma_operand()
972 value = fields->f_op5; in xstormy16_cgen_get_vma_operand()
975 value = fields->f_hmem8; in xstormy16_cgen_get_vma_operand()
978 value = fields->f_imm12; in xstormy16_cgen_get_vma_operand()
981 value = fields->f_imm16; in xstormy16_cgen_get_vma_operand()
984 value = fields->f_imm2; in xstormy16_cgen_get_vma_operand()
987 value = fields->f_imm3; in xstormy16_cgen_get_vma_operand()
990 value = fields->f_imm3b; in xstormy16_cgen_get_vma_operand()
993 value = fields->f_imm4; in xstormy16_cgen_get_vma_operand()
996 value = fields->f_imm8; in xstormy16_cgen_get_vma_operand()
999 value = fields->f_imm8; in xstormy16_cgen_get_vma_operand()
1002 value = fields->f_lmem8; in xstormy16_cgen_get_vma_operand()
1005 value = fields->f_rel12; in xstormy16_cgen_get_vma_operand()
1008 value = fields->f_rel12a; in xstormy16_cgen_get_vma_operand()
1011 value = fields->f_rel8_2; in xstormy16_cgen_get_vma_operand()
1014 value = fields->f_rel8_4; in xstormy16_cgen_get_vma_operand()
1017 value = fields->f_op2m; in xstormy16_cgen_get_vma_operand()
1041 CGEN_FIELDS * fields, in xstormy16_cgen_set_int_operand() argument
1047 fields->f_Rb = value; in xstormy16_cgen_set_int_operand()
1050 fields->f_Rbj = value; in xstormy16_cgen_set_int_operand()
1053 fields->f_Rd = value; in xstormy16_cgen_set_int_operand()
1056 fields->f_Rdm = value; in xstormy16_cgen_set_int_operand()
1059 fields->f_Rm = value; in xstormy16_cgen_set_int_operand()
1062 fields->f_Rs = value; in xstormy16_cgen_set_int_operand()
1065 fields->f_abs24 = value; in xstormy16_cgen_set_int_operand()
1068 fields->f_op2 = value; in xstormy16_cgen_set_int_operand()
1071 fields->f_op5 = value; in xstormy16_cgen_set_int_operand()
1074 fields->f_hmem8 = value; in xstormy16_cgen_set_int_operand()
1077 fields->f_imm12 = value; in xstormy16_cgen_set_int_operand()
1080 fields->f_imm16 = value; in xstormy16_cgen_set_int_operand()
1083 fields->f_imm2 = value; in xstormy16_cgen_set_int_operand()
1086 fields->f_imm3 = value; in xstormy16_cgen_set_int_operand()
1089 fields->f_imm3b = value; in xstormy16_cgen_set_int_operand()
1092 fields->f_imm4 = value; in xstormy16_cgen_set_int_operand()
1095 fields->f_imm8 = value; in xstormy16_cgen_set_int_operand()
1098 fields->f_imm8 = value; in xstormy16_cgen_set_int_operand()
1101 fields->f_lmem8 = value; in xstormy16_cgen_set_int_operand()
1104 fields->f_rel12 = value; in xstormy16_cgen_set_int_operand()
1107 fields->f_rel12a = value; in xstormy16_cgen_set_int_operand()
1110 fields->f_rel8_2 = value; in xstormy16_cgen_set_int_operand()
1113 fields->f_rel8_4 = value; in xstormy16_cgen_set_int_operand()
1116 fields->f_op2m = value; in xstormy16_cgen_set_int_operand()
1130 CGEN_FIELDS * fields, in xstormy16_cgen_set_vma_operand() argument
1136 fields->f_Rb = value; in xstormy16_cgen_set_vma_operand()
1139 fields->f_Rbj = value; in xstormy16_cgen_set_vma_operand()
1142 fields->f_Rd = value; in xstormy16_cgen_set_vma_operand()
1145 fields->f_Rdm = value; in xstormy16_cgen_set_vma_operand()
1148 fields->f_Rm = value; in xstormy16_cgen_set_vma_operand()
1151 fields->f_Rs = value; in xstormy16_cgen_set_vma_operand()
1154 fields->f_abs24 = value; in xstormy16_cgen_set_vma_operand()
1157 fields->f_op2 = value; in xstormy16_cgen_set_vma_operand()
1160 fields->f_op5 = value; in xstormy16_cgen_set_vma_operand()
1163 fields->f_hmem8 = value; in xstormy16_cgen_set_vma_operand()
1166 fields->f_imm12 = value; in xstormy16_cgen_set_vma_operand()
1169 fields->f_imm16 = value; in xstormy16_cgen_set_vma_operand()
1172 fields->f_imm2 = value; in xstormy16_cgen_set_vma_operand()
1175 fields->f_imm3 = value; in xstormy16_cgen_set_vma_operand()
1178 fields->f_imm3b = value; in xstormy16_cgen_set_vma_operand()
1181 fields->f_imm4 = value; in xstormy16_cgen_set_vma_operand()
1184 fields->f_imm8 = value; in xstormy16_cgen_set_vma_operand()
1187 fields->f_imm8 = value; in xstormy16_cgen_set_vma_operand()
1190 fields->f_lmem8 = value; in xstormy16_cgen_set_vma_operand()
1193 fields->f_rel12 = value; in xstormy16_cgen_set_vma_operand()
1196 fields->f_rel12a = value; in xstormy16_cgen_set_vma_operand()
1199 fields->f_rel8_2 = value; in xstormy16_cgen_set_vma_operand()
1202 fields->f_rel8_4 = value; in xstormy16_cgen_set_vma_operand()
1205 fields->f_op2m = value; in xstormy16_cgen_set_vma_operand()