target-tilegx: Modify opcode_tilegx.h to fit QEMU usage
Use 'inline' instead of '__inline', and also use 'uint64_t' instead of "unsigned long long" Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <BLU436-SMTP1945B04384351D5EE7D9DECB9660@phx.gbl> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
b1406c6c59
commit
2c56c87fcf
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#ifndef __ASSEMBLER__
|
#ifndef __ASSEMBLER__
|
||||||
|
|
||||||
typedef unsigned long long tilegx_bundle_bits;
|
typedef uint64_t tilegx_bundle_bits;
|
||||||
|
|
||||||
/* These are the bits that determine if a bundle is in the X encoding. */
|
/* These are the bits that determine if a bundle is in the X encoding. */
|
||||||
#define TILEGX_BUNDLE_MODE_MASK ((tilegx_bundle_bits)3 << 62)
|
#define TILEGX_BUNDLE_MODE_MASK ((tilegx_bundle_bits)3 << 62)
|
||||||
|
@ -66,360 +66,360 @@ typedef tilegx_bundle_bits tile_bundle_bits;
|
||||||
/* 64-bit pattern for a { bpt ; nop } bundle. */
|
/* 64-bit pattern for a { bpt ; nop } bundle. */
|
||||||
#define TILEGX_BPT_BUNDLE 0x286a44ae51485000ULL
|
#define TILEGX_BPT_BUNDLE 0x286a44ae51485000ULL
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_BFEnd_X0(tilegx_bundle_bits num)
|
get_BFEnd_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0x3f);
|
return (((n >> 12)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_BFOpcodeExtension_X0(tilegx_bundle_bits num)
|
get_BFOpcodeExtension_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 24)) & 0xf);
|
return (((n >> 24)) & 0xf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_BFStart_X0(tilegx_bundle_bits num)
|
get_BFStart_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 18)) & 0x3f);
|
return (((n >> 18)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_BrOff_X1(tilegx_bundle_bits n)
|
get_BrOff_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 31)) & 0x0000003f) |
|
return (((unsigned int)(n >> 31)) & 0x0000003f) |
|
||||||
(((unsigned int)(n >> 37)) & 0x0001ffc0);
|
(((unsigned int)(n >> 37)) & 0x0001ffc0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_BrType_X1(tilegx_bundle_bits n)
|
get_BrType_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 54)) & 0x1f);
|
return (((unsigned int)(n >> 54)) & 0x1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Dest_Imm8_X1(tilegx_bundle_bits n)
|
get_Dest_Imm8_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 31)) & 0x0000003f) |
|
return (((unsigned int)(n >> 31)) & 0x0000003f) |
|
||||||
(((unsigned int)(n >> 43)) & 0x000000c0);
|
(((unsigned int)(n >> 43)) & 0x000000c0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Dest_X0(tilegx_bundle_bits num)
|
get_Dest_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 0)) & 0x3f);
|
return (((n >> 0)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Dest_X1(tilegx_bundle_bits n)
|
get_Dest_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 31)) & 0x3f);
|
return (((unsigned int)(n >> 31)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Dest_Y0(tilegx_bundle_bits num)
|
get_Dest_Y0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 0)) & 0x3f);
|
return (((n >> 0)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Dest_Y1(tilegx_bundle_bits n)
|
get_Dest_Y1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 31)) & 0x3f);
|
return (((unsigned int)(n >> 31)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Imm16_X0(tilegx_bundle_bits num)
|
get_Imm16_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0xffff);
|
return (((n >> 12)) & 0xffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Imm16_X1(tilegx_bundle_bits n)
|
get_Imm16_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 43)) & 0xffff);
|
return (((unsigned int)(n >> 43)) & 0xffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Imm8OpcodeExtension_X0(tilegx_bundle_bits num)
|
get_Imm8OpcodeExtension_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 20)) & 0xff);
|
return (((n >> 20)) & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Imm8OpcodeExtension_X1(tilegx_bundle_bits n)
|
get_Imm8OpcodeExtension_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 51)) & 0xff);
|
return (((unsigned int)(n >> 51)) & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Imm8_X0(tilegx_bundle_bits num)
|
get_Imm8_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0xff);
|
return (((n >> 12)) & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Imm8_X1(tilegx_bundle_bits n)
|
get_Imm8_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 43)) & 0xff);
|
return (((unsigned int)(n >> 43)) & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Imm8_Y0(tilegx_bundle_bits num)
|
get_Imm8_Y0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0xff);
|
return (((n >> 12)) & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Imm8_Y1(tilegx_bundle_bits n)
|
get_Imm8_Y1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 43)) & 0xff);
|
return (((unsigned int)(n >> 43)) & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_JumpOff_X1(tilegx_bundle_bits n)
|
get_JumpOff_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 31)) & 0x7ffffff);
|
return (((unsigned int)(n >> 31)) & 0x7ffffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_JumpOpcodeExtension_X1(tilegx_bundle_bits n)
|
get_JumpOpcodeExtension_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 58)) & 0x1);
|
return (((unsigned int)(n >> 58)) & 0x1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_MF_Imm14_X1(tilegx_bundle_bits n)
|
get_MF_Imm14_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 37)) & 0x3fff);
|
return (((unsigned int)(n >> 37)) & 0x3fff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_MT_Imm14_X1(tilegx_bundle_bits n)
|
get_MT_Imm14_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 31)) & 0x0000003f) |
|
return (((unsigned int)(n >> 31)) & 0x0000003f) |
|
||||||
(((unsigned int)(n >> 37)) & 0x00003fc0);
|
(((unsigned int)(n >> 37)) & 0x00003fc0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Mode(tilegx_bundle_bits n)
|
get_Mode(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 62)) & 0x3);
|
return (((unsigned int)(n >> 62)) & 0x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Opcode_X0(tilegx_bundle_bits num)
|
get_Opcode_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 28)) & 0x7);
|
return (((n >> 28)) & 0x7);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Opcode_X1(tilegx_bundle_bits n)
|
get_Opcode_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 59)) & 0x7);
|
return (((unsigned int)(n >> 59)) & 0x7);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Opcode_Y0(tilegx_bundle_bits num)
|
get_Opcode_Y0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 27)) & 0xf);
|
return (((n >> 27)) & 0xf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Opcode_Y1(tilegx_bundle_bits n)
|
get_Opcode_Y1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 58)) & 0xf);
|
return (((unsigned int)(n >> 58)) & 0xf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_Opcode_Y2(tilegx_bundle_bits n)
|
get_Opcode_Y2(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((n >> 26)) & 0x00000001) |
|
return (((n >> 26)) & 0x00000001) |
|
||||||
(((unsigned int)(n >> 56)) & 0x00000002);
|
(((unsigned int)(n >> 56)) & 0x00000002);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_RRROpcodeExtension_X0(tilegx_bundle_bits num)
|
get_RRROpcodeExtension_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 18)) & 0x3ff);
|
return (((n >> 18)) & 0x3ff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_RRROpcodeExtension_X1(tilegx_bundle_bits n)
|
get_RRROpcodeExtension_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 49)) & 0x3ff);
|
return (((unsigned int)(n >> 49)) & 0x3ff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_RRROpcodeExtension_Y0(tilegx_bundle_bits num)
|
get_RRROpcodeExtension_Y0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 18)) & 0x3);
|
return (((n >> 18)) & 0x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_RRROpcodeExtension_Y1(tilegx_bundle_bits n)
|
get_RRROpcodeExtension_Y1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 49)) & 0x3);
|
return (((unsigned int)(n >> 49)) & 0x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_ShAmt_X0(tilegx_bundle_bits num)
|
get_ShAmt_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0x3f);
|
return (((n >> 12)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_ShAmt_X1(tilegx_bundle_bits n)
|
get_ShAmt_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 43)) & 0x3f);
|
return (((unsigned int)(n >> 43)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_ShAmt_Y0(tilegx_bundle_bits num)
|
get_ShAmt_Y0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0x3f);
|
return (((n >> 12)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_ShAmt_Y1(tilegx_bundle_bits n)
|
get_ShAmt_Y1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 43)) & 0x3f);
|
return (((unsigned int)(n >> 43)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_ShiftOpcodeExtension_X0(tilegx_bundle_bits num)
|
get_ShiftOpcodeExtension_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 18)) & 0x3ff);
|
return (((n >> 18)) & 0x3ff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_ShiftOpcodeExtension_X1(tilegx_bundle_bits n)
|
get_ShiftOpcodeExtension_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 49)) & 0x3ff);
|
return (((unsigned int)(n >> 49)) & 0x3ff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_ShiftOpcodeExtension_Y0(tilegx_bundle_bits num)
|
get_ShiftOpcodeExtension_Y0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 18)) & 0x3);
|
return (((n >> 18)) & 0x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_ShiftOpcodeExtension_Y1(tilegx_bundle_bits n)
|
get_ShiftOpcodeExtension_Y1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 49)) & 0x3);
|
return (((unsigned int)(n >> 49)) & 0x3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcA_X0(tilegx_bundle_bits num)
|
get_SrcA_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 6)) & 0x3f);
|
return (((n >> 6)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcA_X1(tilegx_bundle_bits n)
|
get_SrcA_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 37)) & 0x3f);
|
return (((unsigned int)(n >> 37)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcA_Y0(tilegx_bundle_bits num)
|
get_SrcA_Y0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 6)) & 0x3f);
|
return (((n >> 6)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcA_Y1(tilegx_bundle_bits n)
|
get_SrcA_Y1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 37)) & 0x3f);
|
return (((unsigned int)(n >> 37)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcA_Y2(tilegx_bundle_bits num)
|
get_SrcA_Y2(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 20)) & 0x3f);
|
return (((n >> 20)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcBDest_Y2(tilegx_bundle_bits n)
|
get_SrcBDest_Y2(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 51)) & 0x3f);
|
return (((unsigned int)(n >> 51)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcB_X0(tilegx_bundle_bits num)
|
get_SrcB_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0x3f);
|
return (((n >> 12)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcB_X1(tilegx_bundle_bits n)
|
get_SrcB_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 43)) & 0x3f);
|
return (((unsigned int)(n >> 43)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcB_Y0(tilegx_bundle_bits num)
|
get_SrcB_Y0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0x3f);
|
return (((n >> 12)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_SrcB_Y1(tilegx_bundle_bits n)
|
get_SrcB_Y1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 43)) & 0x3f);
|
return (((unsigned int)(n >> 43)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_UnaryOpcodeExtension_X0(tilegx_bundle_bits num)
|
get_UnaryOpcodeExtension_X0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0x3f);
|
return (((n >> 12)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_UnaryOpcodeExtension_X1(tilegx_bundle_bits n)
|
get_UnaryOpcodeExtension_X1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 43)) & 0x3f);
|
return (((unsigned int)(n >> 43)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_UnaryOpcodeExtension_Y0(tilegx_bundle_bits num)
|
get_UnaryOpcodeExtension_Y0(tilegx_bundle_bits num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((n >> 12)) & 0x3f);
|
return (((n >> 12)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline unsigned int
|
static inline unsigned int
|
||||||
get_UnaryOpcodeExtension_Y1(tilegx_bundle_bits n)
|
get_UnaryOpcodeExtension_Y1(tilegx_bundle_bits n)
|
||||||
{
|
{
|
||||||
return (((unsigned int)(n >> 43)) & 0x3f);
|
return (((unsigned int)(n >> 43)) & 0x3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static __inline int
|
static inline int
|
||||||
sign_extend(int n, int num_bits)
|
sign_extend(int n, int num_bits)
|
||||||
{
|
{
|
||||||
int shift = (int)(sizeof(int) * 8 - num_bits);
|
int shift = (int)(sizeof(int) * 8 - num_bits);
|
||||||
|
@ -428,28 +428,28 @@ sign_extend(int n, int num_bits)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_BFEnd_X0(int num)
|
create_BFEnd_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 12);
|
return ((n & 0x3f) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_BFOpcodeExtension_X0(int num)
|
create_BFOpcodeExtension_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0xf) << 24);
|
return ((n & 0xf) << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_BFStart_X0(int num)
|
create_BFStart_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 18);
|
return ((n & 0x3f) << 18);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_BrOff_X1(int num)
|
create_BrOff_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
|
@ -457,14 +457,14 @@ create_BrOff_X1(int num)
|
||||||
(((tilegx_bundle_bits)(n & 0x0001ffc0)) << 37);
|
(((tilegx_bundle_bits)(n & 0x0001ffc0)) << 37);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_BrType_X1(int num)
|
create_BrType_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x1f)) << 54);
|
return (((tilegx_bundle_bits)(n & 0x1f)) << 54);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Dest_Imm8_X1(int num)
|
create_Dest_Imm8_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
|
@ -472,112 +472,112 @@ create_Dest_Imm8_X1(int num)
|
||||||
(((tilegx_bundle_bits)(n & 0x000000c0)) << 43);
|
(((tilegx_bundle_bits)(n & 0x000000c0)) << 43);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Dest_X0(int num)
|
create_Dest_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 0);
|
return ((n & 0x3f) << 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Dest_X1(int num)
|
create_Dest_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 31);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 31);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Dest_Y0(int num)
|
create_Dest_Y0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 0);
|
return ((n & 0x3f) << 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Dest_Y1(int num)
|
create_Dest_Y1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 31);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 31);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Imm16_X0(int num)
|
create_Imm16_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0xffff) << 12);
|
return ((n & 0xffff) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Imm16_X1(int num)
|
create_Imm16_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0xffff)) << 43);
|
return (((tilegx_bundle_bits)(n & 0xffff)) << 43);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Imm8OpcodeExtension_X0(int num)
|
create_Imm8OpcodeExtension_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0xff) << 20);
|
return ((n & 0xff) << 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Imm8OpcodeExtension_X1(int num)
|
create_Imm8OpcodeExtension_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0xff)) << 51);
|
return (((tilegx_bundle_bits)(n & 0xff)) << 51);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Imm8_X0(int num)
|
create_Imm8_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0xff) << 12);
|
return ((n & 0xff) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Imm8_X1(int num)
|
create_Imm8_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0xff)) << 43);
|
return (((tilegx_bundle_bits)(n & 0xff)) << 43);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Imm8_Y0(int num)
|
create_Imm8_Y0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0xff) << 12);
|
return ((n & 0xff) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Imm8_Y1(int num)
|
create_Imm8_Y1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0xff)) << 43);
|
return (((tilegx_bundle_bits)(n & 0xff)) << 43);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_JumpOff_X1(int num)
|
create_JumpOff_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x7ffffff)) << 31);
|
return (((tilegx_bundle_bits)(n & 0x7ffffff)) << 31);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_JumpOpcodeExtension_X1(int num)
|
create_JumpOpcodeExtension_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x1)) << 58);
|
return (((tilegx_bundle_bits)(n & 0x1)) << 58);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_MF_Imm14_X1(int num)
|
create_MF_Imm14_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3fff)) << 37);
|
return (((tilegx_bundle_bits)(n & 0x3fff)) << 37);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_MT_Imm14_X1(int num)
|
create_MT_Imm14_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
|
@ -585,42 +585,42 @@ create_MT_Imm14_X1(int num)
|
||||||
(((tilegx_bundle_bits)(n & 0x00003fc0)) << 37);
|
(((tilegx_bundle_bits)(n & 0x00003fc0)) << 37);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Mode(int num)
|
create_Mode(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3)) << 62);
|
return (((tilegx_bundle_bits)(n & 0x3)) << 62);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Opcode_X0(int num)
|
create_Opcode_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x7) << 28);
|
return ((n & 0x7) << 28);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Opcode_X1(int num)
|
create_Opcode_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x7)) << 59);
|
return (((tilegx_bundle_bits)(n & 0x7)) << 59);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Opcode_Y0(int num)
|
create_Opcode_Y0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0xf) << 27);
|
return ((n & 0xf) << 27);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Opcode_Y1(int num)
|
create_Opcode_Y1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0xf)) << 58);
|
return (((tilegx_bundle_bits)(n & 0xf)) << 58);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_Opcode_Y2(int num)
|
create_Opcode_Y2(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
|
@ -628,182 +628,182 @@ create_Opcode_Y2(int num)
|
||||||
(((tilegx_bundle_bits)(n & 0x00000002)) << 56);
|
(((tilegx_bundle_bits)(n & 0x00000002)) << 56);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_RRROpcodeExtension_X0(int num)
|
create_RRROpcodeExtension_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3ff) << 18);
|
return ((n & 0x3ff) << 18);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_RRROpcodeExtension_X1(int num)
|
create_RRROpcodeExtension_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3ff)) << 49);
|
return (((tilegx_bundle_bits)(n & 0x3ff)) << 49);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_RRROpcodeExtension_Y0(int num)
|
create_RRROpcodeExtension_Y0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3) << 18);
|
return ((n & 0x3) << 18);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_RRROpcodeExtension_Y1(int num)
|
create_RRROpcodeExtension_Y1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3)) << 49);
|
return (((tilegx_bundle_bits)(n & 0x3)) << 49);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_ShAmt_X0(int num)
|
create_ShAmt_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 12);
|
return ((n & 0x3f) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_ShAmt_X1(int num)
|
create_ShAmt_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_ShAmt_Y0(int num)
|
create_ShAmt_Y0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 12);
|
return ((n & 0x3f) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_ShAmt_Y1(int num)
|
create_ShAmt_Y1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_ShiftOpcodeExtension_X0(int num)
|
create_ShiftOpcodeExtension_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3ff) << 18);
|
return ((n & 0x3ff) << 18);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_ShiftOpcodeExtension_X1(int num)
|
create_ShiftOpcodeExtension_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3ff)) << 49);
|
return (((tilegx_bundle_bits)(n & 0x3ff)) << 49);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_ShiftOpcodeExtension_Y0(int num)
|
create_ShiftOpcodeExtension_Y0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3) << 18);
|
return ((n & 0x3) << 18);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_ShiftOpcodeExtension_Y1(int num)
|
create_ShiftOpcodeExtension_Y1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3)) << 49);
|
return (((tilegx_bundle_bits)(n & 0x3)) << 49);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcA_X0(int num)
|
create_SrcA_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 6);
|
return ((n & 0x3f) << 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcA_X1(int num)
|
create_SrcA_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 37);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 37);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcA_Y0(int num)
|
create_SrcA_Y0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 6);
|
return ((n & 0x3f) << 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcA_Y1(int num)
|
create_SrcA_Y1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 37);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 37);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcA_Y2(int num)
|
create_SrcA_Y2(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 20);
|
return ((n & 0x3f) << 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcBDest_Y2(int num)
|
create_SrcBDest_Y2(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 51);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 51);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcB_X0(int num)
|
create_SrcB_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 12);
|
return ((n & 0x3f) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcB_X1(int num)
|
create_SrcB_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcB_Y0(int num)
|
create_SrcB_Y0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 12);
|
return ((n & 0x3f) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_SrcB_Y1(int num)
|
create_SrcB_Y1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_UnaryOpcodeExtension_X0(int num)
|
create_UnaryOpcodeExtension_X0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 12);
|
return ((n & 0x3f) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_UnaryOpcodeExtension_X1(int num)
|
create_UnaryOpcodeExtension_X1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_UnaryOpcodeExtension_Y0(int num)
|
create_UnaryOpcodeExtension_Y0(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
return ((n & 0x3f) << 12);
|
return ((n & 0x3f) << 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline tilegx_bundle_bits
|
static inline tilegx_bundle_bits
|
||||||
create_UnaryOpcodeExtension_Y1(int num)
|
create_UnaryOpcodeExtension_Y1(int num)
|
||||||
{
|
{
|
||||||
const unsigned int n = (unsigned int)num;
|
const unsigned int n = (unsigned int)num;
|
||||||
|
|
Loading…
Reference in a new issue