Lines Matching refs:n
82 const UInt n = (UInt)num; in get_BFEnd_X0() local
83 return (((n >> 12)) & 0x3f); in get_BFEnd_X0()
89 const UInt n = (UInt)num; in get_BFOpcodeExtension_X0() local
90 return (((n >> 24)) & 0xf); in get_BFOpcodeExtension_X0()
96 const UInt n = (UInt)num; in get_BFStart_X0() local
97 return (((n >> 18)) & 0x3f); in get_BFStart_X0()
101 get_BrOff_X1(tilegx_bundle_bits n) in get_BrOff_X1() argument
103 return (((UInt)(n >> 31)) & 0x0000003f) | in get_BrOff_X1()
104 (((UInt)(n >> 37)) & 0x0001ffc0); in get_BrOff_X1()
108 get_BrType_X1(tilegx_bundle_bits n) in get_BrType_X1() argument
110 return (((UInt)(n >> 54)) & 0x1f); in get_BrType_X1()
114 get_Dest_Imm8_X1(tilegx_bundle_bits n) in get_Dest_Imm8_X1() argument
116 return (((UInt)(n >> 31)) & 0x0000003f) | in get_Dest_Imm8_X1()
117 (((UInt)(n >> 43)) & 0x000000c0); in get_Dest_Imm8_X1()
123 const UInt n = (UInt)num; in get_Dest_X0() local
124 return (((n >> 0)) & 0x3f); in get_Dest_X0()
128 get_Dest_X1(tilegx_bundle_bits n) in get_Dest_X1() argument
130 return (((UInt)(n >> 31)) & 0x3f); in get_Dest_X1()
136 const UInt n = (UInt)num; in get_Dest_Y0() local
137 return (((n >> 0)) & 0x3f); in get_Dest_Y0()
141 get_Dest_Y1(tilegx_bundle_bits n) in get_Dest_Y1() argument
143 return (((UInt)(n >> 31)) & 0x3f); in get_Dest_Y1()
149 const UInt n = (UInt)num; in get_Imm16_X0() local
150 return (((n >> 12)) & 0xffff); in get_Imm16_X0()
154 get_Imm16_X1(tilegx_bundle_bits n) in get_Imm16_X1() argument
156 return (((UInt)(n >> 43)) & 0xffff); in get_Imm16_X1()
162 const UInt n = (UInt)num; in get_Imm8OpcodeExtension_X0() local
163 return (((n >> 20)) & 0xff); in get_Imm8OpcodeExtension_X0()
167 get_Imm8OpcodeExtension_X1(tilegx_bundle_bits n) in get_Imm8OpcodeExtension_X1() argument
169 return (((UInt)(n >> 51)) & 0xff); in get_Imm8OpcodeExtension_X1()
175 const UInt n = (UInt)num; in get_Imm8_X0() local
176 return (((n >> 12)) & 0xff); in get_Imm8_X0()
180 get_Imm8_X1(tilegx_bundle_bits n) in get_Imm8_X1() argument
182 return (((UInt)(n >> 43)) & 0xff); in get_Imm8_X1()
188 const UInt n = (UInt)num; in get_Imm8_Y0() local
189 return (((n >> 12)) & 0xff); in get_Imm8_Y0()
193 get_Imm8_Y1(tilegx_bundle_bits n) in get_Imm8_Y1() argument
195 return (((UInt)(n >> 43)) & 0xff); in get_Imm8_Y1()
199 get_JumpOff_X1(tilegx_bundle_bits n) in get_JumpOff_X1() argument
201 return (((UInt)(n >> 31)) & 0x7ffffff); in get_JumpOff_X1()
205 get_JumpOpcodeExtension_X1(tilegx_bundle_bits n) in get_JumpOpcodeExtension_X1() argument
207 return (((UInt)(n >> 58)) & 0x1); in get_JumpOpcodeExtension_X1()
211 get_MF_Imm14_X1(tilegx_bundle_bits n) in get_MF_Imm14_X1() argument
213 return (((UInt)(n >> 37)) & 0x3fff); in get_MF_Imm14_X1()
217 get_MT_Imm14_X1(tilegx_bundle_bits n) in get_MT_Imm14_X1() argument
219 return (((UInt)(n >> 31)) & 0x0000003f) | in get_MT_Imm14_X1()
220 (((UInt)(n >> 37)) & 0x00003fc0); in get_MT_Imm14_X1()
224 get_Mode(tilegx_bundle_bits n) in get_Mode() argument
226 return (((UInt)(n >> 62)) & 0x3); in get_Mode()
232 const UInt n = (UInt)num; in get_Opcode_X0() local
233 return (((n >> 28)) & 0x7); in get_Opcode_X0()
237 get_Opcode_X1(tilegx_bundle_bits n) in get_Opcode_X1() argument
239 return (((UInt)(n >> 59)) & 0x7); in get_Opcode_X1()
245 const UInt n = (UInt)num; in get_Opcode_Y0() local
246 return (((n >> 27)) & 0xf); in get_Opcode_Y0()
250 get_Opcode_Y1(tilegx_bundle_bits n) in get_Opcode_Y1() argument
252 return (((UInt)(n >> 58)) & 0xf); in get_Opcode_Y1()
256 get_Opcode_Y2(tilegx_bundle_bits n) in get_Opcode_Y2() argument
258 return (((n >> 26)) & 0x00000001) | in get_Opcode_Y2()
259 (((UInt)(n >> 56)) & 0x00000002); in get_Opcode_Y2()
265 const UInt n = (UInt)num; in get_RRROpcodeExtension_X0() local
266 return (((n >> 18)) & 0x3ff); in get_RRROpcodeExtension_X0()
270 get_RRROpcodeExtension_X1(tilegx_bundle_bits n) in get_RRROpcodeExtension_X1() argument
272 return (((UInt)(n >> 49)) & 0x3ff); in get_RRROpcodeExtension_X1()
278 const UInt n = (UInt)num; in get_RRROpcodeExtension_Y0() local
279 return (((n >> 18)) & 0x3); in get_RRROpcodeExtension_Y0()
283 get_RRROpcodeExtension_Y1(tilegx_bundle_bits n) in get_RRROpcodeExtension_Y1() argument
285 return (((UInt)(n >> 49)) & 0x3); in get_RRROpcodeExtension_Y1()
291 const UInt n = (UInt)num; in get_ShAmt_X0() local
292 return (((n >> 12)) & 0x3f); in get_ShAmt_X0()
296 get_ShAmt_X1(tilegx_bundle_bits n) in get_ShAmt_X1() argument
298 return (((UInt)(n >> 43)) & 0x3f); in get_ShAmt_X1()
304 const UInt n = (UInt)num; in get_ShAmt_Y0() local
305 return (((n >> 12)) & 0x3f); in get_ShAmt_Y0()
309 get_ShAmt_Y1(tilegx_bundle_bits n) in get_ShAmt_Y1() argument
311 return (((UInt)(n >> 43)) & 0x3f); in get_ShAmt_Y1()
317 const UInt n = (UInt)num; in get_ShiftOpcodeExtension_X0() local
318 return (((n >> 18)) & 0x3ff); in get_ShiftOpcodeExtension_X0()
322 get_ShiftOpcodeExtension_X1(tilegx_bundle_bits n) in get_ShiftOpcodeExtension_X1() argument
324 return (((UInt)(n >> 49)) & 0x3ff); in get_ShiftOpcodeExtension_X1()
330 const UInt n = (UInt)num; in get_ShiftOpcodeExtension_Y0() local
331 return (((n >> 18)) & 0x3); in get_ShiftOpcodeExtension_Y0()
335 get_ShiftOpcodeExtension_Y1(tilegx_bundle_bits n) in get_ShiftOpcodeExtension_Y1() argument
337 return (((UInt)(n >> 49)) & 0x3); in get_ShiftOpcodeExtension_Y1()
343 const UInt n = (UInt)num; in get_SrcA_X0() local
344 return (((n >> 6)) & 0x3f); in get_SrcA_X0()
348 get_SrcA_X1(tilegx_bundle_bits n) in get_SrcA_X1() argument
350 return (((UInt)(n >> 37)) & 0x3f); in get_SrcA_X1()
356 const UInt n = (UInt)num; in get_SrcA_Y0() local
357 return (((n >> 6)) & 0x3f); in get_SrcA_Y0()
361 get_SrcA_Y1(tilegx_bundle_bits n) in get_SrcA_Y1() argument
363 return (((UInt)(n >> 37)) & 0x3f); in get_SrcA_Y1()
369 const UInt n = (UInt)num; in get_SrcA_Y2() local
370 return (((n >> 20)) & 0x3f); in get_SrcA_Y2()
374 get_SrcBDest_Y2(tilegx_bundle_bits n) in get_SrcBDest_Y2() argument
376 return (((UInt)(n >> 51)) & 0x3f); in get_SrcBDest_Y2()
382 const UInt n = (UInt)num; in get_SrcB_X0() local
383 return (((n >> 12)) & 0x3f); in get_SrcB_X0()
387 get_SrcB_X1(tilegx_bundle_bits n) in get_SrcB_X1() argument
389 return (((UInt)(n >> 43)) & 0x3f); in get_SrcB_X1()
395 const UInt n = (UInt)num; in get_SrcB_Y0() local
396 return (((n >> 12)) & 0x3f); in get_SrcB_Y0()
400 get_SrcB_Y1(tilegx_bundle_bits n) in get_SrcB_Y1() argument
402 return (((UInt)(n >> 43)) & 0x3f); in get_SrcB_Y1()
408 const UInt n = (UInt)num; in get_UnaryOpcodeExtension_X0() local
409 return (((n >> 12)) & 0x3f); in get_UnaryOpcodeExtension_X0()
413 get_UnaryOpcodeExtension_X1(tilegx_bundle_bits n) in get_UnaryOpcodeExtension_X1() argument
415 return (((UInt)(n >> 43)) & 0x3f); in get_UnaryOpcodeExtension_X1()
421 const UInt n = (UInt)num; in get_UnaryOpcodeExtension_Y0() local
422 return (((n >> 12)) & 0x3f); in get_UnaryOpcodeExtension_Y0()
426 get_UnaryOpcodeExtension_Y1(tilegx_bundle_bits n) in get_UnaryOpcodeExtension_Y1() argument
428 return (((UInt)(n >> 43)) & 0x3f); in get_UnaryOpcodeExtension_Y1()
433 sign_extend(int n, int num_bits) in sign_extend() argument
436 return (n << shift) >> shift; in sign_extend()
444 const UInt n = (UInt)num; in create_BFEnd_X0() local
445 return ((n & 0x3f) << 12); in create_BFEnd_X0()
451 const UInt n = (UInt)num; in create_BFOpcodeExtension_X0() local
452 return ((n & 0xf) << 24); in create_BFOpcodeExtension_X0()
458 const UInt n = (UInt)num; in create_BFStart_X0() local
459 return ((n & 0x3f) << 18); in create_BFStart_X0()
465 const UInt n = (UInt)num; in create_BrOff_X1() local
466 return (((tilegx_bundle_bits)(n & 0x0000003f)) << 31) | in create_BrOff_X1()
467 (((tilegx_bundle_bits)(n & 0x0001ffc0)) << 37); in create_BrOff_X1()
473 const UInt n = (UInt)num; in create_BrType_X1() local
474 return (((tilegx_bundle_bits)(n & 0x1f)) << 54); in create_BrType_X1()
480 const UInt n = (UInt)num; in create_Dest_Imm8_X1() local
481 return (((tilegx_bundle_bits)(n & 0x0000003f)) << 31) | in create_Dest_Imm8_X1()
482 (((tilegx_bundle_bits)(n & 0x000000c0)) << 43); in create_Dest_Imm8_X1()
488 const UInt n = (UInt)num; in create_Dest_X0() local
489 return ((n & 0x3f) << 0); in create_Dest_X0()
495 const UInt n = (UInt)num; in create_Dest_X1() local
496 return (((tilegx_bundle_bits)(n & 0x3f)) << 31); in create_Dest_X1()
502 const UInt n = (UInt)num; in create_Dest_Y0() local
503 return ((n & 0x3f) << 0); in create_Dest_Y0()
509 const UInt n = (UInt)num; in create_Dest_Y1() local
510 return (((tilegx_bundle_bits)(n & 0x3f)) << 31); in create_Dest_Y1()
516 const UInt n = (UInt)num; in create_Imm16_X0() local
517 return ((n & 0xffff) << 12); in create_Imm16_X0()
523 const UInt n = (UInt)num; in create_Imm16_X1() local
524 return (((tilegx_bundle_bits)(n & 0xffff)) << 43); in create_Imm16_X1()
530 const UInt n = (UInt)num; in create_Imm8OpcodeExtension_X0() local
531 return ((n & 0xff) << 20); in create_Imm8OpcodeExtension_X0()
537 const UInt n = (UInt)num; in create_Imm8OpcodeExtension_X1() local
538 return (((tilegx_bundle_bits)(n & 0xff)) << 51); in create_Imm8OpcodeExtension_X1()
544 const UInt n = (UInt)num; in create_Imm8_X0() local
545 return ((n & 0xff) << 12); in create_Imm8_X0()
551 const UInt n = (UInt)num; in create_Imm8_X1() local
552 return (((tilegx_bundle_bits)(n & 0xff)) << 43); in create_Imm8_X1()
558 const UInt n = (UInt)num; in create_Imm8_Y0() local
559 return ((n & 0xff) << 12); in create_Imm8_Y0()
565 const UInt n = (UInt)num; in create_Imm8_Y1() local
566 return (((tilegx_bundle_bits)(n & 0xff)) << 43); in create_Imm8_Y1()
572 const UInt n = (UInt)num; in create_JumpOff_X1() local
573 return (((tilegx_bundle_bits)(n & 0x7ffffff)) << 31); in create_JumpOff_X1()
579 const UInt n = (UInt)num; in create_JumpOpcodeExtension_X1() local
580 return (((tilegx_bundle_bits)(n & 0x1)) << 58); in create_JumpOpcodeExtension_X1()
586 const UInt n = (UInt)num; in create_MF_Imm14_X1() local
587 return (((tilegx_bundle_bits)(n & 0x3fff)) << 37); in create_MF_Imm14_X1()
593 const UInt n = (UInt)num; in create_MT_Imm14_X1() local
594 return (((tilegx_bundle_bits)(n & 0x0000003f)) << 31) | in create_MT_Imm14_X1()
595 (((tilegx_bundle_bits)(n & 0x00003fc0)) << 37); in create_MT_Imm14_X1()
601 const UInt n = (UInt)num; in create_Mode() local
602 return (((tilegx_bundle_bits)(n & 0x3)) << 62); in create_Mode()
608 const UInt n = (UInt)num; in create_Opcode_X0() local
609 return ((n & 0x7) << 28); in create_Opcode_X0()
615 const UInt n = (UInt)num; in create_Opcode_X1() local
616 return (((tilegx_bundle_bits)(n & 0x7)) << 59); in create_Opcode_X1()
622 const UInt n = (UInt)num; in create_Opcode_Y0() local
623 return ((n & 0xf) << 27); in create_Opcode_Y0()
629 const UInt n = (UInt)num; in create_Opcode_Y1() local
630 return (((tilegx_bundle_bits)(n & 0xf)) << 58); in create_Opcode_Y1()
636 const UInt n = (UInt)num; in create_Opcode_Y2() local
637 return ((n & 0x00000001) << 26) | in create_Opcode_Y2()
638 (((tilegx_bundle_bits)(n & 0x00000002)) << 56); in create_Opcode_Y2()
644 const UInt n = (UInt)num; in create_RRROpcodeExtension_X0() local
645 return ((n & 0x3ff) << 18); in create_RRROpcodeExtension_X0()
651 const UInt n = (UInt)num; in create_RRROpcodeExtension_X1() local
652 return (((tilegx_bundle_bits)(n & 0x3ff)) << 49); in create_RRROpcodeExtension_X1()
658 const UInt n = (UInt)num; in create_RRROpcodeExtension_Y0() local
659 return ((n & 0x3) << 18); in create_RRROpcodeExtension_Y0()
665 const UInt n = (UInt)num; in create_RRROpcodeExtension_Y1() local
666 return (((tilegx_bundle_bits)(n & 0x3)) << 49); in create_RRROpcodeExtension_Y1()
672 const UInt n = (UInt)num; in create_ShAmt_X0() local
673 return ((n & 0x3f) << 12); in create_ShAmt_X0()
679 const UInt n = (UInt)num; in create_ShAmt_X1() local
680 return (((tilegx_bundle_bits)(n & 0x3f)) << 43); in create_ShAmt_X1()
686 const UInt n = (UInt)num; in create_ShAmt_Y0() local
687 return ((n & 0x3f) << 12); in create_ShAmt_Y0()
693 const UInt n = (UInt)num; in create_ShAmt_Y1() local
694 return (((tilegx_bundle_bits)(n & 0x3f)) << 43); in create_ShAmt_Y1()
700 const UInt n = (UInt)num; in create_ShiftOpcodeExtension_X0() local
701 return ((n & 0x3ff) << 18); in create_ShiftOpcodeExtension_X0()
707 const UInt n = (UInt)num; in create_ShiftOpcodeExtension_X1() local
708 return (((tilegx_bundle_bits)(n & 0x3ff)) << 49); in create_ShiftOpcodeExtension_X1()
714 const UInt n = (UInt)num; in create_ShiftOpcodeExtension_Y0() local
715 return ((n & 0x3) << 18); in create_ShiftOpcodeExtension_Y0()
721 const UInt n = (UInt)num; in create_ShiftOpcodeExtension_Y1() local
722 return (((tilegx_bundle_bits)(n & 0x3)) << 49); in create_ShiftOpcodeExtension_Y1()
728 const UInt n = (UInt)num; in create_SrcA_X0() local
729 return ((n & 0x3f) << 6); in create_SrcA_X0()
735 const UInt n = (UInt)num; in create_SrcA_X1() local
736 return (((tilegx_bundle_bits)(n & 0x3f)) << 37); in create_SrcA_X1()
742 const UInt n = (UInt)num; in create_SrcA_Y0() local
743 return ((n & 0x3f) << 6); in create_SrcA_Y0()
749 const UInt n = (UInt)num; in create_SrcA_Y1() local
750 return (((tilegx_bundle_bits)(n & 0x3f)) << 37); in create_SrcA_Y1()
756 const UInt n = (UInt)num; in create_SrcA_Y2() local
757 return ((n & 0x3f) << 20); in create_SrcA_Y2()
763 const UInt n = (UInt)num; in create_SrcBDest_Y2() local
764 return (((tilegx_bundle_bits)(n & 0x3f)) << 51); in create_SrcBDest_Y2()
770 const UInt n = (UInt)num; in create_SrcB_X0() local
771 return ((n & 0x3f) << 12); in create_SrcB_X0()
777 const UInt n = (UInt)num; in create_SrcB_X1() local
778 return (((tilegx_bundle_bits)(n & 0x3f)) << 43); in create_SrcB_X1()
784 const UInt n = (UInt)num; in create_SrcB_Y0() local
785 return ((n & 0x3f) << 12); in create_SrcB_Y0()
791 const UInt n = (UInt)num; in create_SrcB_Y1() local
792 return (((tilegx_bundle_bits)(n & 0x3f)) << 43); in create_SrcB_Y1()
798 const UInt n = (UInt)num; in create_UnaryOpcodeExtension_X0() local
799 return ((n & 0x3f) << 12); in create_UnaryOpcodeExtension_X0()
805 const UInt n = (UInt)num; in create_UnaryOpcodeExtension_X1() local
806 return (((tilegx_bundle_bits)(n & 0x3f)) << 43); in create_UnaryOpcodeExtension_X1()
812 const UInt n = (UInt)num; in create_UnaryOpcodeExtension_Y0() local
813 return ((n & 0x3f) << 12); in create_UnaryOpcodeExtension_Y0()
819 const UInt n = (UInt)num; in create_UnaryOpcodeExtension_Y1() local
820 return (((tilegx_bundle_bits)(n & 0x3f)) << 43); in create_UnaryOpcodeExtension_Y1()