Lines Matching refs:given
1869 arm_decode_shift (long given, fprintf_ftype func, void *stream, in arm_decode_shift() argument
1872 func (stream, "%s", arm_regnames[given & 0xf]); in arm_decode_shift()
1874 if ((given & 0xff0) != 0) in arm_decode_shift()
1876 if ((given & 0x10) == 0) in arm_decode_shift()
1878 int amount = (given & 0xf80) >> 7; in arm_decode_shift()
1879 int shift = (given & 0x60) >> 5; in arm_decode_shift()
1897 else if ((given & 0x80) == 0x80) in arm_decode_shift()
1900 func (stream, ", %s %s", arm_shift[(given & 0x60) >> 5], in arm_decode_shift()
1901 arm_regnames[(given & 0xf00) >> 8]); in arm_decode_shift()
1903 func (stream, ", %s", arm_regnames[(given & 0xf00) >> 8]); in arm_decode_shift()
1912 #define WRITEBACK_BIT_SET (given & (1 << W_BIT))
1913 #define IMMEDIATE_BIT_SET (given & (1 << I_BIT))
1914 #define NEGATIVE_BIT_SET ((given & (1 << U_BIT)) == 0)
1915 #define PRE_BIT_SET (given & (1 << P_BIT))
1924 long given, in print_insn_coprocessor() argument
1984 if ((given & 0xf0000000) == 0xf0000000) in print_insn_coprocessor()
1991 cond = (given >> 28) & 0xf; in print_insn_coprocessor()
1997 if ((given & mask) != value) in print_insn_coprocessor()
2015 int rn = (given >> 16) & 0xf; in print_insn_coprocessor()
2016 bfd_vma offset = given & 0xff; in print_insn_coprocessor()
2018 func (stream, "[%s", arm_regnames [(given >> 16) & 0xf]); in print_insn_coprocessor()
2075 int regno = ((given >> 12) & 0xf) | ((given >> (22 - 4)) & 0x10); in print_insn_coprocessor()
2076 int offset = (given >> 1) & 0x3f; in print_insn_coprocessor()
2104 imm = (given & 0xf) | ((given & 0xe0) >> 1); in print_insn_coprocessor()
2116 switch (given & 0x00408000) in print_insn_coprocessor()
2133 switch (given & 0x00080080) in print_insn_coprocessor()
2151 switch (given & 0x00408000) in print_insn_coprocessor()
2169 switch (given & 0x60) in print_insn_coprocessor()
2190 c = arm_decode_bitfield (c, given, &value, &width); in print_insn_coprocessor()
2225 int from = (given & (1 << 7)) ? 32 : 16; in print_insn_coprocessor()
2309 regno = given & 0x0000000f; in print_insn_coprocessor()
2313 regno += (given >> 5) & 1; in print_insn_coprocessor()
2316 regno += ((given >> 5) & 1) << 4; in print_insn_coprocessor()
2320 regno = (given >> 12) & 0x0000000f; in print_insn_coprocessor()
2324 regno += (given >> 22) & 1; in print_insn_coprocessor()
2327 regno += ((given >> 22) & 1) << 4; in print_insn_coprocessor()
2331 regno = (given >> 16) & 0x0000000f; in print_insn_coprocessor()
2335 regno += (given >> 7) & 1; in print_insn_coprocessor()
2338 regno += ((given >> 7) & 1) << 4; in print_insn_coprocessor()
2343 regno = (given >> 12) & 0x0000000f; in print_insn_coprocessor()
2347 regno += (given >> 22) & 1; in print_insn_coprocessor()
2350 regno += ((given >> 22) & 1) << 4; in print_insn_coprocessor()
2361 int count = given & 0xff; in print_insn_coprocessor()
2382 switch (given & 0x00400100) in print_insn_coprocessor()
2396 value = ((given >> 16) & 0xf0) | (given & 0xf); in print_insn_coprocessor()
2406 int offset = given & 0xff; in print_insn_coprocessor()
2407 int multiplier = (given & 0x00000100) ? 4 : 1; in print_insn_coprocessor()
2409 func (stream, "[%s", arm_regnames [(given >> 16) & 0xf]); in print_insn_coprocessor()
2437 int imm4 = (given >> 4) & 0xf; in print_insn_coprocessor()
2438 int puw_bits = ((given >> 22) & 6) | ((given >> W_BIT) & 1); in print_insn_coprocessor()
2440 const char *rm = arm_regnames [given & 0xf]; in print_insn_coprocessor()
2441 const char *rn = arm_regnames [(given >> 16) & 0xf]; in print_insn_coprocessor()
2473 imm5 = ((given & 0x100) >> 4) | (given & 0xf); in print_insn_coprocessor()
2504 print_arm_address (bfd_vma pc, struct disassemble_info *info, long given) in print_arm_address() argument
2510 if (((given & 0x000f0000) == 0x000f0000) in print_arm_address()
2511 && ((given & 0x02000000) == 0)) in print_arm_address()
2513 offset = given & 0xfff; in print_arm_address()
2550 arm_regnames[(given >> 16) & 0xf]); in print_arm_address()
2554 if ((given & 0x02000000) == 0) in print_arm_address()
2557 offset = given & 0xfff; in print_arm_address()
2564 arm_decode_shift (given, func, stream, TRUE); in print_arm_address()
2572 if ((given & 0x02000000) == 0) in print_arm_address()
2575 offset = given & 0xfff; in print_arm_address()
2583 arm_decode_shift (given, func, stream, TRUE); in print_arm_address()
2598 print_insn_neon (struct disassemble_info *info, long given, bfd_boolean thumb) in print_insn_neon() argument
2606 if ((given & 0xef000000) == 0xef000000) in print_insn_neon()
2609 unsigned long bit28 = given & (1 << 28); in print_insn_neon()
2611 given &= 0x00ffffff; in print_insn_neon()
2613 given |= 0xf3000000; in print_insn_neon()
2615 given |= 0xf2000000; in print_insn_neon()
2617 else if ((given & 0xff000000) == 0xf9000000) in print_insn_neon()
2618 given ^= 0xf9000000 ^ 0xf4000000; in print_insn_neon()
2625 if ((given & insn->mask) == insn->value) in print_insn_neon()
2667 int rd = ((given >> 12) & 0xf) | (((given >> 22) & 1) << 4); in print_insn_neon()
2668 int rn = ((given >> 16) & 0xf); in print_insn_neon()
2669 int rm = ((given >> 0) & 0xf); in print_insn_neon()
2670 int align = ((given >> 4) & 0x3); in print_insn_neon()
2671 int type = ((given >> 8) & 0xf); in print_insn_neon()
2697 int rd = ((given >> 12) & 0xf) | (((given >> 22) & 1) << 4); in print_insn_neon()
2698 int rn = ((given >> 16) & 0xf); in print_insn_neon()
2699 int rm = ((given >> 0) & 0xf); in print_insn_neon()
2700 int idx_align = ((given >> 4) & 0xf); in print_insn_neon()
2702 int size = ((given >> 10) & 0x3); in print_insn_neon()
2704 int length = ((given >> 8) & 3) + 1; in print_insn_neon()
2772 int rd = ((given >> 12) & 0xf) | (((given >> 22) & 1) << 4); in print_insn_neon()
2773 int rn = ((given >> 16) & 0xf); in print_insn_neon()
2774 int rm = ((given >> 0) & 0xf); in print_insn_neon()
2775 int align = ((given >> 4) & 0x1); in print_insn_neon()
2776 int size = ((given >> 6) & 0x3); in print_insn_neon()
2777 int type = ((given >> 8) & 0x3); in print_insn_neon()
2779 int stride = ((given >> 5) & 0x1); in print_insn_neon()
2816 int raw_reg = (given & 0xf) | ((given >> 1) & 0x10); in print_insn_neon()
2817 int size = (given >> 20) & 3; in print_insn_neon()
2829 int cmode = (given >> 8) & 0xf; in print_insn_neon()
2830 int op = (given >> 5) & 0x1; in print_insn_neon()
2836 bits |= ((given >> 24) & 1) << 7; in print_insn_neon()
2837 bits |= ((given >> 16) & 7) << 4; in print_insn_neon()
2838 bits |= ((given >> 0) & 15) << 0; in print_insn_neon()
2954 int regno = ((given >> 16) & 0xf) | ((given >> (7 - 4)) & 0x10); in print_insn_neon()
2955 int num = (given >> 8) & 0x3; in print_insn_neon()
2973 c = arm_decode_bitfield (c, given, &value, &width); in print_insn_neon()
3014 if (given & (1 << 6)) in print_insn_neon()
3139 print_insn_arm (bfd_vma pc, struct disassemble_info *info, long given) in print_insn_arm() argument
3146 if (print_insn_coprocessor (pc, info, given, FALSE)) in print_insn_arm()
3149 if (print_insn_neon (info, given, FALSE)) in print_insn_arm()
3154 if ((given & insn->mask) != insn->value) in print_insn_arm()
3163 if ((given & 0xF0000000) != 0xF0000000 in print_insn_arm()
3186 value_in_comment = print_arm_address (pc, info, given); in print_insn_arm()
3192 value_in_comment = print_arm_address (pc, info, given | (1 << P_BIT)); in print_insn_arm()
3198 if ((given & 0x004f0000) == 0x004f0000) in print_insn_arm()
3201 bfd_vma offset = ((given & 0xf00) >> 4) | (given & 0xf); in print_insn_arm()
3226 int offset = ((given & 0xf00) >> 4) | (given & 0xf); in print_insn_arm()
3229 arm_regnames[(given >> 16) & 0xf]); in print_insn_arm()
3252 arm_regnames[given & 0xf]); in print_insn_arm()
3258 && ((given & 0xf) == ((given >> 12) & 0xf))) in print_insn_arm()
3282 arm_regnames[given & 0xf]); in print_insn_arm()
3287 && (given & 0xf) == ((given >> 12) & 0xf)) in print_insn_arm()
3299 || (! IMMEDIATE_BIT_SET && ((given & 0xf) == 0xf))) in print_insn_arm()
3308 bfd_vma disp = (((given & 0xffffff) ^ 0x800000) - 0x800000); in print_insn_arm()
3314 if (((given >> 28) & 0xf) != 0xe) in print_insn_arm()
3316 arm_conditional [(given >> 28) & 0xf]); in print_insn_arm()
3326 if ((given & (1 << reg)) != 0) in print_insn_arm()
3340 arm_decode_shift (given, func, stream, FALSE); in print_insn_arm()
3344 if ((given & 0x02000000) != 0) in print_insn_arm()
3346 unsigned int rotate = (given & 0xf00) >> 7; in print_insn_arm()
3347 unsigned int immed = (given & 0xff); in print_insn_arm()
3365 arm_decode_shift (given, func, stream, TRUE); in print_insn_arm()
3369 if ((given & 0x0000f000) == 0x0000f000) in print_insn_arm()
3380 if ((given & 0x01200000) == 0x00200000) in print_insn_arm()
3386 int offset = given & 0xff; in print_insn_arm()
3392 func (stream, "[%s", arm_regnames [(given >> 16) & 0xf]); in print_insn_arm()
3432 offset += given & 0x00ffffff; in print_insn_arm()
3436 if (given & 0x01000000) in print_insn_arm()
3445 if ((given & 0x02000200) == 0x200) in print_insn_arm()
3448 unsigned sysm = (given & 0x004f0000) >> 16; in print_insn_arm()
3450 sysm |= (given & 0x300) >> 4; in print_insn_arm()
3461 (given & 0x00400000) ? 'S' : 'C'); in print_insn_arm()
3462 if (given & 0x80000) in print_insn_arm()
3464 if (given & 0x40000) in print_insn_arm()
3466 if (given & 0x20000) in print_insn_arm()
3468 if (given & 0x10000) in print_insn_arm()
3474 if ((given & 0xf0) == 0x60) in print_insn_arm()
3476 switch (given & 0xf) in print_insn_arm()
3480 func (stream, "#%d", (int) given & 0xf); in print_insn_arm()
3486 const char * opt = data_barrier_option (given & 0xf); in print_insn_arm()
3490 func (stream, "#%d", (int) given & 0xf); in print_insn_arm()
3500 c = arm_decode_bitfield (c, given, &value, &width); in print_insn_arm()
3551 if ((given & 0x0fffffff) == 0x0FF00000) in print_insn_arm()
3553 else if ((given & 0x0fffffff) == 0x0FF00001) in print_insn_arm()
3583 imm = (given & 0xf) | ((given & 0xfff00) >> 4); in print_insn_arm()
3593 long msb = (given & 0x001f0000) >> 16; in print_insn_arm()
3594 long lsb = (given & 0x00000f80) >> 7; in print_insn_arm()
3608 unsigned sysm = (given & 0x004f0000) >> 16; in print_insn_arm()
3610 sysm |= (given & 0x300) >> 4; in print_insn_arm()
3624 long hi = (given & 0x000f0000) >> 4; in print_insn_arm()
3625 long lo = (given & 0x00000fff); in print_insn_arm()
3657 print_insn_thumb16 (bfd_vma pc, struct disassemble_info *info, long given) in print_insn_thumb16() argument
3664 if ((given & insn->mask) == insn->value) in print_insn_thumb16()
3702 ifthen_next_state = given & 0xff; in print_insn_thumb16()
3703 for (tmp = given << 1; tmp & 0xf; tmp <<= 1) in print_insn_thumb16()
3704 func (stream, ((given ^ tmp) & 0x10) ? "e" : "t"); in print_insn_thumb16()
3705 func (stream, "\t%s", arm_conditional[(given >> 4) & 0xf]); in print_insn_thumb16()
3724 reg = (given >> 3) & 0x7; in print_insn_thumb16()
3725 if (given & (1 << 6)) in print_insn_thumb16()
3736 reg = given & 0x7; in print_insn_thumb16()
3737 if (given & (1 << 7)) in print_insn_thumb16()
3745 if (given & (1 << 8)) in print_insn_thumb16()
3749 if (*c == 'O' && (given & (1 << 8))) in print_insn_thumb16()
3762 if ((given & (1 << reg)) != 0) in print_insn_thumb16()
3793 if ((given & (1 << ((given & 0x0700) >> 8))) == 0) in print_insn_thumb16()
3801 + ((given & 0x00f8) >> 2) in print_insn_thumb16()
3802 + ((given & 0x0200) >> 3)); in print_insn_thumb16()
3811 long imm = (given & 0x07c0) >> 6; in print_insn_thumb16()
3838 reg = given >> bitstart; in print_insn_thumb16()
3893 if ((given & (1 << bitstart)) != 0) in print_insn_thumb16()
3899 if ((given & (1 << bitstart)) != 0) in print_insn_thumb16()
3953 print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given) in print_insn_thumb32() argument
3959 if (print_insn_coprocessor (pc, info, given, TRUE)) in print_insn_thumb32()
3962 if (print_insn_neon (info, given, TRUE)) in print_insn_thumb32()
3966 if ((given & insn->mask) == insn->value) in print_insn_thumb32()
4006 imm12 |= (given & 0x000000ffu); in print_insn_thumb32()
4007 imm12 |= (given & 0x00007000u) >> 4; in print_insn_thumb32()
4008 imm12 |= (given & 0x04000000u) >> 15; in print_insn_thumb32()
4018 bits |= (given & 0x000000ffu); in print_insn_thumb32()
4019 bits |= (given & 0x00007000u) >> 4; in print_insn_thumb32()
4020 bits |= (given & 0x04000000u) >> 15; in print_insn_thumb32()
4043 imm |= (given & 0x000000ffu); in print_insn_thumb32()
4044 imm |= (given & 0x00007000u) >> 4; in print_insn_thumb32()
4045 imm |= (given & 0x04000000u) >> 15; in print_insn_thumb32()
4046 imm |= (given & 0x000f0000u) >> 4; in print_insn_thumb32()
4056 imm |= (given & 0x000f0000u) >> 16; in print_insn_thumb32()
4057 imm |= (given & 0x00000ff0u) >> 0; in print_insn_thumb32()
4058 imm |= (given & 0x0000000fu) << 12; in print_insn_thumb32()
4068 imm |= (given & 0x000f0000u) >> 4; in print_insn_thumb32()
4069 imm |= (given & 0x00000fffu) >> 0; in print_insn_thumb32()
4079 imm |= (given & 0x00000fffu); in print_insn_thumb32()
4080 imm |= (given & 0x000f0000u) >> 4; in print_insn_thumb32()
4088 unsigned int reg = (given & 0x0000000fu); in print_insn_thumb32()
4089 unsigned int stp = (given & 0x00000030u) >> 4; in print_insn_thumb32()
4091 imm |= (given & 0x000000c0u) >> 6; in print_insn_thumb32()
4092 imm |= (given & 0x00007000u) >> 10; in print_insn_thumb32()
4125 unsigned int Rn = (given & 0x000f0000) >> 16; in print_insn_thumb32()
4127 unsigned int op = (given & 0x00000f00) >> 8; in print_insn_thumb32()
4128 unsigned int i12 = (given & 0x00000fff); in print_insn_thumb32()
4129 unsigned int i8 = (given & 0x000000ff); in print_insn_thumb32()
4210 unsigned int Rn = (given & 0x000f0000) >> 16; in print_insn_thumb32()
4211 unsigned int off = (given & 0x000000ff); in print_insn_thumb32()
4245 unsigned int Sbit = (given & 0x01000000) >> 24; in print_insn_thumb32()
4246 unsigned int type = (given & 0x00600000) >> 21; in print_insn_thumb32()
4270 if ((given & (1 << reg)) != 0) in print_insn_thumb32()
4283 unsigned int msb = (given & 0x0000001f); in print_insn_thumb32()
4286 lsb |= (given & 0x000000c0u) >> 6; in print_insn_thumb32()
4287 lsb |= (given & 0x00007000u) >> 10; in print_insn_thumb32()
4294 unsigned int width = (given & 0x0000001f) + 1; in print_insn_thumb32()
4297 lsb |= (given & 0x000000c0u) >> 6; in print_insn_thumb32()
4298 lsb |= (given & 0x00007000u) >> 10; in print_insn_thumb32()
4305 unsigned int S = (given & 0x04000000u) >> 26; in print_insn_thumb32()
4306 unsigned int J1 = (given & 0x00002000u) >> 13; in print_insn_thumb32()
4307 unsigned int J2 = (given & 0x00000800u) >> 11; in print_insn_thumb32()
4313 offset |= (given & 0x003f0000) >> 4; in print_insn_thumb32()
4314 offset |= (given & 0x000007ff) << 1; in print_insn_thumb32()
4323 unsigned int S = (given & 0x04000000u) >> 26; in print_insn_thumb32()
4324 unsigned int I1 = (given & 0x00002000u) >> 13; in print_insn_thumb32()
4325 unsigned int I2 = (given & 0x00000800u) >> 11; in print_insn_thumb32()
4331 offset |= (given & 0x03ff0000u) >> 4; in print_insn_thumb32()
4332 offset |= (given & 0x000007ffu) << 1; in print_insn_thumb32()
4337 if ((given & 0x00001000u) == 0) in print_insn_thumb32()
4348 shift |= (given & 0x000000c0u) >> 6; in print_insn_thumb32()
4349 shift |= (given & 0x00007000u) >> 10; in print_insn_thumb32()
4360 unsigned int rot = (given & 0x00000030) >> 4; in print_insn_thumb32()
4368 if ((given & 0xf0) == 0x60) in print_insn_thumb32()
4370 switch (given & 0xf) in print_insn_thumb32()
4374 func (stream, "#%d", (int) given & 0xf); in print_insn_thumb32()
4380 const char * opt = data_barrier_option (given & 0xf); in print_insn_thumb32()
4384 func (stream, "#%d", (int) given & 0xf); in print_insn_thumb32()
4389 if ((given & 0xff) == 0) in print_insn_thumb32()
4391 func (stream, "%cPSR_", (given & 0x100000) ? 'S' : 'C'); in print_insn_thumb32()
4392 if (given & 0x800) in print_insn_thumb32()
4394 if (given & 0x400) in print_insn_thumb32()
4396 if (given & 0x200) in print_insn_thumb32()
4398 if (given & 0x100) in print_insn_thumb32()
4401 else if ((given & 0x20) == 0x20) in print_insn_thumb32()
4404 unsigned sysm = (given & 0xf00) >> 8; in print_insn_thumb32()
4406 sysm |= (given & 0x30); in print_insn_thumb32()
4407 sysm |= (given & 0x00100000) >> 14; in print_insn_thumb32()
4417 func (stream, "%s", psr_name (given & 0xff)); in print_insn_thumb32()
4422 if (((given & 0xff) == 0) in print_insn_thumb32()
4423 || ((given & 0x20) == 0x20)) in print_insn_thumb32()
4426 unsigned sm = (given & 0xf0000) >> 16; in print_insn_thumb32()
4428 sm |= (given & 0x30); in print_insn_thumb32()
4429 sm |= (given & 0x00100000) >> 14; in print_insn_thumb32()
4438 func (stream, "%s", psr_name (given & 0xff)); in print_insn_thumb32()
4447 c = arm_decode_bitfield (c, given, &val, &width); in print_insn_thumb32()
4508 if (((given >> 16) & 0xf) == 0xf) in print_insn_thumb32()
4510 bfd_vma offset = (given & 0xff) * 4; in print_insn_thumb32()
4512 if ((given & (1 << 23)) == 0) in print_insn_thumb32()
4542 long given) in print_insn_data() argument
4547 info->fprintf_func (info->stream, ".byte\t0x%02lx", given); in print_insn_data()
4550 info->fprintf_func (info->stream, ".short\t0x%04lx", given); in print_insn_data()
4553 info->fprintf_func (info->stream, ".word\t0x%08lx", given); in print_insn_data()
4831 long given; in print_insn() local
5094 given = 0; in print_insn()
5097 given = b[i] | (given << 8); in print_insn()
5100 given = b[i] | (given << 8); in print_insn()
5112 given = (b[0]) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24); in print_insn()
5114 given = (b[3]) | (b[2] << 8) | (b[1] << 16) | (b[0] << 24); in print_insn()
5128 given = (b[0]) | (b[1] << 8); in print_insn()
5130 given = (b[1]) | (b[0] << 8); in print_insn()
5136 if ((given & 0xF800) == 0xF800 in print_insn()
5137 || (given & 0xF800) == 0xF000 in print_insn()
5138 || (given & 0xF800) == 0xE800) in print_insn()
5142 given = (b[0]) | (b[1] << 8) | (given << 16); in print_insn()
5144 given = (b[1]) | (b[0] << 8) | (given << 16); in print_insn()
5177 printer (pc, info, given); in print_insn()