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 lm32_cgen_insert_operand() argument
564 unsigned int total_length = CGEN_FIELDS_BITSIZE (fields); in lm32_cgen_insert_operand()
570 long value = fields->f_branch; in lm32_cgen_insert_operand()
577 long value = fields->f_call; in lm32_cgen_insert_operand()
583 errmsg = insert_normal (cd, fields->f_csr, 0, 0, 25, 5, 32, total_length, buffer); in lm32_cgen_insert_operand()
586 errmsg = insert_normal (cd, fields->f_exception, 0, 0, 25, 26, 32, total_length, buffer); in lm32_cgen_insert_operand()
589 …errmsg = insert_normal (cd, fields->f_imm, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, b… in lm32_cgen_insert_operand()
592 …errmsg = insert_normal (cd, fields->f_imm, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, b… in lm32_cgen_insert_operand()
595 …errmsg = insert_normal (cd, fields->f_imm, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, b… in lm32_cgen_insert_operand()
598 …errmsg = insert_normal (cd, fields->f_imm, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, b… in lm32_cgen_insert_operand()
601 errmsg = insert_normal (cd, fields->f_uimm, 0, 0, 15, 16, 32, total_length, buffer); in lm32_cgen_insert_operand()
604 …errmsg = insert_normal (cd, fields->f_imm, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, b… in lm32_cgen_insert_operand()
607 errmsg = insert_normal (cd, fields->f_uimm, 0, 0, 15, 16, 32, total_length, buffer); in lm32_cgen_insert_operand()
610 errmsg = insert_normal (cd, fields->f_r0, 0, 0, 25, 5, 32, total_length, buffer); in lm32_cgen_insert_operand()
613 errmsg = insert_normal (cd, fields->f_r1, 0, 0, 20, 5, 32, total_length, buffer); in lm32_cgen_insert_operand()
616 errmsg = insert_normal (cd, fields->f_r2, 0, 0, 15, 5, 32, total_length, buffer); in lm32_cgen_insert_operand()
619 errmsg = insert_normal (cd, fields->f_shift, 0, 0, 4, 5, 32, total_length, buffer); in lm32_cgen_insert_operand()
622 errmsg = insert_normal (cd, fields->f_uimm, 0, 0, 15, 16, 32, total_length, buffer); in lm32_cgen_insert_operand()
625 errmsg = insert_normal (cd, fields->f_user, 0, 0, 10, 11, 32, total_length, buffer); in lm32_cgen_insert_operand()
661 CGEN_FIELDS * fields, in lm32_cgen_extract_operand() argument
666 unsigned int total_length = CGEN_FIELDS_BITSIZE (fields); in lm32_cgen_extract_operand()
675 fields->f_branch = value; in lm32_cgen_extract_operand()
683 fields->f_call = value; in lm32_cgen_extract_operand()
687 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 25, 5, 32, total_length, pc, & fields->f_c… in lm32_cgen_extract_operand()
690 …xtract_normal (cd, ex_info, insn_value, 0, 0, 25, 26, 32, total_length, pc, & fields->f_exception); in lm32_cgen_extract_operand()
693 …d, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, pc, & fields->f_imm); in lm32_cgen_extract_operand()
696 …d, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, pc, & fields->f_imm); in lm32_cgen_extract_operand()
699 …d, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, pc, & fields->f_imm); in lm32_cgen_extract_operand()
702 …d, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, pc, & fields->f_imm); in lm32_cgen_extract_operand()
705 …h = extract_normal (cd, ex_info, insn_value, 0, 0, 15, 16, 32, total_length, pc, & fields->f_uimm); in lm32_cgen_extract_operand()
708 …d, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED), 0, 15, 16, 32, total_length, pc, & fields->f_imm); in lm32_cgen_extract_operand()
711 …h = extract_normal (cd, ex_info, insn_value, 0, 0, 15, 16, 32, total_length, pc, & fields->f_uimm); in lm32_cgen_extract_operand()
714 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 25, 5, 32, total_length, pc, & fields->f_r… in lm32_cgen_extract_operand()
717 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 20, 5, 32, total_length, pc, & fields->f_r… in lm32_cgen_extract_operand()
720 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 15, 5, 32, total_length, pc, & fields->f_r… in lm32_cgen_extract_operand()
723 …length = extract_normal (cd, ex_info, insn_value, 0, 0, 4, 5, 32, total_length, pc, & fields->f_sh… in lm32_cgen_extract_operand()
726 …h = extract_normal (cd, ex_info, insn_value, 0, 0, 15, 16, 32, total_length, pc, & fields->f_uimm); in lm32_cgen_extract_operand()
729 …h = extract_normal (cd, ex_info, insn_value, 0, 0, 10, 11, 32, total_length, pc, & fields->f_user); in lm32_cgen_extract_operand()
763 const CGEN_FIELDS * fields) in lm32_cgen_get_int_operand() argument
770 value = fields->f_branch; in lm32_cgen_get_int_operand()
773 value = fields->f_call; in lm32_cgen_get_int_operand()
776 value = fields->f_csr; in lm32_cgen_get_int_operand()
779 value = fields->f_exception; in lm32_cgen_get_int_operand()
782 value = fields->f_imm; in lm32_cgen_get_int_operand()
785 value = fields->f_imm; in lm32_cgen_get_int_operand()
788 value = fields->f_imm; in lm32_cgen_get_int_operand()
791 value = fields->f_imm; in lm32_cgen_get_int_operand()
794 value = fields->f_uimm; in lm32_cgen_get_int_operand()
797 value = fields->f_imm; in lm32_cgen_get_int_operand()
800 value = fields->f_uimm; in lm32_cgen_get_int_operand()
803 value = fields->f_r0; in lm32_cgen_get_int_operand()
806 value = fields->f_r1; in lm32_cgen_get_int_operand()
809 value = fields->f_r2; in lm32_cgen_get_int_operand()
812 value = fields->f_shift; in lm32_cgen_get_int_operand()
815 value = fields->f_uimm; in lm32_cgen_get_int_operand()
818 value = fields->f_user; in lm32_cgen_get_int_operand()
834 const CGEN_FIELDS * fields) in lm32_cgen_get_vma_operand() argument
841 value = fields->f_branch; in lm32_cgen_get_vma_operand()
844 value = fields->f_call; in lm32_cgen_get_vma_operand()
847 value = fields->f_csr; in lm32_cgen_get_vma_operand()
850 value = fields->f_exception; in lm32_cgen_get_vma_operand()
853 value = fields->f_imm; in lm32_cgen_get_vma_operand()
856 value = fields->f_imm; in lm32_cgen_get_vma_operand()
859 value = fields->f_imm; in lm32_cgen_get_vma_operand()
862 value = fields->f_imm; in lm32_cgen_get_vma_operand()
865 value = fields->f_uimm; in lm32_cgen_get_vma_operand()
868 value = fields->f_imm; in lm32_cgen_get_vma_operand()
871 value = fields->f_uimm; in lm32_cgen_get_vma_operand()
874 value = fields->f_r0; in lm32_cgen_get_vma_operand()
877 value = fields->f_r1; in lm32_cgen_get_vma_operand()
880 value = fields->f_r2; in lm32_cgen_get_vma_operand()
883 value = fields->f_shift; in lm32_cgen_get_vma_operand()
886 value = fields->f_uimm; in lm32_cgen_get_vma_operand()
889 value = fields->f_user; in lm32_cgen_get_vma_operand()
913 CGEN_FIELDS * fields, in lm32_cgen_set_int_operand() argument
919 fields->f_branch = value; in lm32_cgen_set_int_operand()
922 fields->f_call = value; in lm32_cgen_set_int_operand()
925 fields->f_csr = value; in lm32_cgen_set_int_operand()
928 fields->f_exception = value; in lm32_cgen_set_int_operand()
931 fields->f_imm = value; in lm32_cgen_set_int_operand()
934 fields->f_imm = value; in lm32_cgen_set_int_operand()
937 fields->f_imm = value; in lm32_cgen_set_int_operand()
940 fields->f_imm = value; in lm32_cgen_set_int_operand()
943 fields->f_uimm = value; in lm32_cgen_set_int_operand()
946 fields->f_imm = value; in lm32_cgen_set_int_operand()
949 fields->f_uimm = value; in lm32_cgen_set_int_operand()
952 fields->f_r0 = value; in lm32_cgen_set_int_operand()
955 fields->f_r1 = value; in lm32_cgen_set_int_operand()
958 fields->f_r2 = value; in lm32_cgen_set_int_operand()
961 fields->f_shift = value; in lm32_cgen_set_int_operand()
964 fields->f_uimm = value; in lm32_cgen_set_int_operand()
967 fields->f_user = value; in lm32_cgen_set_int_operand()
981 CGEN_FIELDS * fields, in lm32_cgen_set_vma_operand() argument
987 fields->f_branch = value; in lm32_cgen_set_vma_operand()
990 fields->f_call = value; in lm32_cgen_set_vma_operand()
993 fields->f_csr = value; in lm32_cgen_set_vma_operand()
996 fields->f_exception = value; in lm32_cgen_set_vma_operand()
999 fields->f_imm = value; in lm32_cgen_set_vma_operand()
1002 fields->f_imm = value; in lm32_cgen_set_vma_operand()
1005 fields->f_imm = value; in lm32_cgen_set_vma_operand()
1008 fields->f_imm = value; in lm32_cgen_set_vma_operand()
1011 fields->f_uimm = value; in lm32_cgen_set_vma_operand()
1014 fields->f_imm = value; in lm32_cgen_set_vma_operand()
1017 fields->f_uimm = value; in lm32_cgen_set_vma_operand()
1020 fields->f_r0 = value; in lm32_cgen_set_vma_operand()
1023 fields->f_r1 = value; in lm32_cgen_set_vma_operand()
1026 fields->f_r2 = value; in lm32_cgen_set_vma_operand()
1029 fields->f_shift = value; in lm32_cgen_set_vma_operand()
1032 fields->f_uimm = value; in lm32_cgen_set_vma_operand()
1035 fields->f_user = value; in lm32_cgen_set_vma_operand()