Lines Matching refs:width
51 int width = 0; in loongarch_get_bit_field_width() local
62 width += strtol (bit_field_1, &bit_field_1, 10); in loongarch_get_bit_field_width()
71 return has_specify ? width : -1; in loongarch_get_bit_field_width()
79 int len = 0, width, b_start; in loongarch_decode_imm() local
86 width = strtol (bit_field_1 + 1, &bit_field_1, 10); in loongarch_decode_imm()
87 len += width; in loongarch_decode_imm()
90 t <<= sizeof (t) * 8 - width - b_start; in loongarch_decode_imm()
91 t >>= sizeof (t) * 8 - width; in loongarch_decode_imm()
92 ret <<= width; in loongarch_decode_imm()
102 width = atoi (bit_field_1 + 1); in loongarch_decode_imm()
103 ret <<= width; in loongarch_decode_imm()
104 len += width; in loongarch_decode_imm()
124 int width, b_start; in loongarch_encode_imm() local
129 width = loongarch_get_bit_field_width (t, &t); in loongarch_encode_imm()
130 if (width == -1) in loongarch_encode_imm()
134 width += atoi (t + 1); in loongarch_encode_imm()
138 uimm = width ? (uimm << (sizeof (uimm) * 8 - width)) : 0; in loongarch_encode_imm()
145 width = strtol (bit_field_1 + 1, &bit_field_1, 10); in loongarch_encode_imm()
147 i = width ? (i >> (sizeof (i) * 8 - width)) : 0; in loongarch_encode_imm()
150 uimm = (width == 32) ? 0 : (uimm << width); in loongarch_encode_imm()