/third_party/elfutils/backends/ |
D | ppc_regs.c | 41 int regno, char *name, size_t namelen, in ppc_register_info() argument 48 if (regno < 0 || regno > 1155 || namelen < 8) in ppc_register_info() 53 *type = (regno < 32 ? DW_ATE_signed in ppc_register_info() 54 : regno < 64 ? DW_ATE_float : DW_ATE_unsigned); in ppc_register_info() 56 if (regno < 32 || regno == 64 || regno == 66) in ppc_register_info() 58 else if (regno < 64 || regno == 65) in ppc_register_info() 61 if (ebl->machine != EM_PPC64 && regno < 64) in ppc_register_info() 64 else if (regno == 67 || regno == 356 || regno == 612 || regno >= 1124) in ppc_register_info() 67 *bits = regno >= 1124 ? 128 : 32; in ppc_register_info() 72 switch (regno) in ppc_register_info() [all …]
|
D | ia64_regs.c | 41 int regno, char *name, size_t namelen, in ia64_register_info() argument 48 if (regno < 0 || regno > 687 + 63 || namelen < 12) in ia64_register_info() 55 switch (regno) in ia64_register_info() 59 name[1] = (regno - 0) + '0'; in ia64_register_info() 67 name[1] = (regno - 0) / 10 + '0'; in ia64_register_info() 68 name[2] = (regno - 0) % 10 + '0'; in ia64_register_info() 77 name[2] = (regno - 100) / 10 + '0'; in ia64_register_info() 78 name[3] = (regno - 0) % 10 + '0'; in ia64_register_info() 86 name[1] = (regno - 128) + '0'; in ia64_register_info() 96 name[1] = (regno - 128) / 10 + '0'; in ia64_register_info() [all …]
|
D | s390_regs.c | 58 int regno, char *name, size_t namelen, in s390_register_info() argument 65 if (regno < 0 || regno > 65 || namelen < 7) in s390_register_info() 72 if (regno < 16) in s390_register_info() 77 else if (regno < 32) in s390_register_info() 83 else if (regno < 48 || regno > 63) in s390_register_info() 91 switch (regno) in s390_register_info() 95 name[1] = regno + '0'; in s390_register_info() 102 name[2] = regno - 10 + '0'; in s390_register_info() 108 regno = (regno & 8) | ((regno & 4) >> 2) | ((regno & 3) << 1); in s390_register_info() 110 if (regno >= 10) in s390_register_info() [all …]
|
D | sparc_regs.c | 41 int regno, char *name, size_t namelen, in sparc_register_info() argument 51 if (regno < 0 || regno >= 32 + nfp + nspec || namelen < 6) in sparc_register_info() 59 if (regno >= 32 + nfp) in sparc_register_info() 61 regno -= 32 + nfp; in sparc_register_info() 69 if ((ebl->class == ELFCLASS64 ? 0 : 4) + 1 - (unsigned int) regno <= 1) in sparc_register_info() 71 return stpncpy (name, names[ebl->class == ELFCLASS64][regno], in sparc_register_info() 75 if (regno < 32) in sparc_register_info() 78 name[0] = "goli"[regno >> 3]; in sparc_register_info() 79 name[1] = (regno & 7) + '0'; in sparc_register_info() 81 if ((regno & 8) && (regno & 7) == 6) in sparc_register_info() [all …]
|
D | x86_64_regs.c | 42 int regno, char *name, size_t namelen, in x86_64_register_info() argument 49 if (regno < 0 || regno > 66 || namelen < 7) in x86_64_register_info() 55 if (regno < 17) in x86_64_register_info() 60 else if (regno < 33) in x86_64_register_info() 65 else if (regno < 41) in x86_64_register_info() 71 else if (regno < 49) in x86_64_register_info() 73 else if (regno > 49 && regno < 60) in x86_64_register_info() 81 switch (regno) in x86_64_register_info() 93 name[1] = baseregs[regno][0]; in x86_64_register_info() 94 name[2] = baseregs[regno][1]; in x86_64_register_info() [all …]
|
D | i386_regs.c | 41 int regno, char *name, size_t namelen, in i386_register_info() argument 48 if (regno < 0 || regno > 45 || namelen < 6) in i386_register_info() 54 if (regno < 11) in i386_register_info() 57 if (regno < 9) in i386_register_info() 60 else if (regno < 19) in i386_register_info() 66 else if (regno < 29) in i386_register_info() 71 else if (regno < 37) in i386_register_info() 76 else if (regno < 40) in i386_register_info() 84 switch (regno) in i386_register_info() 99 name[1] = baseregs[regno][0]; in i386_register_info() [all …]
|
D | riscv_regs.c | 39 riscv_register_info (Ebl *ebl, int regno, char *name, size_t namelen, in riscv_register_info() argument 48 if (regno < 32) in riscv_register_info() 61 switch (regno) in riscv_register_info() 84 name[1] = regno - 5 + '0'; in riscv_register_info() 90 name[1] = regno - 8 + '0'; in riscv_register_info() 96 name[1] = regno - 10 + '0'; in riscv_register_info() 102 name[1] = regno - 18 + '2'; in riscv_register_info() 109 name[2] = regno - 26 + '0'; in riscv_register_info() 115 name[1] = regno - 28 + '3'; in riscv_register_info() 122 name[2] = regno - 32 + '0'; in riscv_register_info() [all …]
|
D | arm_regs.c | 41 int regno, char *name, size_t namelen, in arm_register_info() argument 48 if (regno < 0 || regno > 320 || namelen < 5) in arm_register_info() 56 switch (regno) in arm_register_info() 60 name[1] = regno + '0'; in arm_register_info() 67 name[2] = regno % 10 + '0'; in arm_register_info() 73 name[0] = "slp"[regno - 13]; in arm_register_info() 74 name[1] = "prc"[regno - 13]; in arm_register_info() 79 regno += 96 - 16; in arm_register_info() 86 name[1] = regno - 96 + '0'; in arm_register_info() 99 name[1] = regno - 256 + '0'; in arm_register_info() [all …]
|
D | alpha_regs.c | 41 int regno, char *name, size_t namelen, in alpha_register_info() argument 48 if (regno < 0 || regno > 66 || namelen < 7) in alpha_register_info() 56 if (regno >= 32 && regno < 64) in alpha_register_info() 62 switch (regno) in alpha_register_info() 72 name[1] = regno - 1 + '0'; in alpha_register_info() 78 name[1] = regno - 9 + '0'; in alpha_register_info() 84 name[1] = regno - 16 + '0'; in alpha_register_info() 90 name[1] = regno - 22 + '8'; in alpha_register_info() 97 name[2] = regno - 24 + '0'; in alpha_register_info() 124 name[1] = regno - 32 + '0'; in alpha_register_info() [all …]
|
D | sh_regs.c | 43 int regno, char *name, size_t namelen, in sh_register_info() argument 50 if (regno < 0 || regno > 103 || namelen < 6) in sh_register_info() 57 switch (regno) in sh_register_info() 62 name[1] = regno + '0'; in sh_register_info() 70 name[2] = regno - 10 + '0'; in sh_register_info() 152 name[2] = regno - 25 + '0'; in sh_register_info() 162 name[3] = regno - 35 + '0'; in sh_register_info() 171 name[2] = regno - 87 + '0'; in sh_register_info() 181 name[3] = regno - 97 + '0'; in sh_register_info()
|
D | ppc_corenote.c | 51 { .offset = at * BITS/8, .regno = dwreg, .count = n, .bits = BITS } 72 { .offset = 0, .regno = 32, .count = 32, .bits = 64 }, /* f0-f31 */ 73 { .offset = 32 * 8 + 4, .regno = 65, .count = 1, .bits = 32 } /* fpscr */ 80 { .offset = 0, .regno = 1124, .count = 32, .bits = 128 }, 82 { .offset = 32 * 16, .regno = 67, .count = 1, .bits = 32, .pad = 12 }, 84 { .offset = 33 * 16, .regno = 356, .count = 1, .bits = 32, .pad = 12 } 94 { .offset = 34 * 4, .regno = 612, .count = 1, .bits = 32 } 100 { .offset = 0, .regno = 114, .count = 1, .bits = 64 }, 102 { .offset = 8, .regno = 116, .count = 1, .bits = 64 }, 104 { .offset = 16, .regno = 115, .count = 1, .bits = 64 }
|
D | m68k_regs.c | 41 int regno, char *name, size_t namelen, in m68k_register_info() argument 48 if (regno < 0 || regno > 24 || namelen < 5) in m68k_register_info() 55 switch (regno) in m68k_register_info() 60 name[1] = regno + '0'; in m68k_register_info() 67 name[1] = regno - 8 + '0'; in m68k_register_info() 77 name[2] = regno - 16 + '0'; in m68k_register_info()
|
D | i386_corenote.c | 46 { .offset = at * 4, .regno = dwreg, .count = n, .bits = 32 } 48 { .offset = at * 4, .regno = dwreg, .count = n, .bits = 16, .pad = 2 } 93 { .offset = 0, .regno = 37, .count = 2, .bits = 32 }, /* fctrl-fstat */ 94 { .offset = 7 * 4, .regno = 11, .count = 8, .bits = 80 }, /* stN */ 100 { .offset = 0, .regno = 37, .count = 2, .bits = 16 }, /* fctrl-fstat */ 101 { .offset = 24, .regno = 39, .count = 1, .bits = 32 }, /* mxcsr */ 102 { .offset = 32, .regno = 11, .count = 8, .bits = 80, .pad = 6 }, /* stN */ 103 { .offset = 32 + 128, .regno = 21, .count = 8, .bits = 128 }, /* xmm */
|
D | m68k_corenote.c | 44 { .offset = 0, .regno = 1, .count = 14, .bits = 32 }, /* d1-d7, a0-a6 */ 45 { .offset = 14 * 4, .regno = 0, .count = 1, .bits = 32 }, /* d0 */ 46 { .offset = 15 * 4, .regno = 15, .count = 1, .bits = 32 }, /* a7 */ 47 { .offset = 18 * 4, .regno = 24, .count = 1, .bits = 32 } /* pc */ 68 { .offset = 0, .regno = 16, .count = 8, .bits = 96 }, /* fp0-fp7 */
|
D | csky_regs.c | 41 int regno, char *name, size_t namelen, in csky_register_info() argument 53 switch (regno) in csky_register_info() 57 name[1] = regno + '0'; in csky_register_info() 64 name[1] = regno / 10 + '0'; in csky_register_info() 65 name[2] = regno % 10 + '0'; in csky_register_info()
|
D | x86_64_corenote.c | 53 { .offset = at * 8, .regno = dwreg, .count = n, .bits = 64 } 55 { .offset = at * 8, .regno = dwreg, .count = n, .bits = 16, .pad = 6 } 129 { .offset = 0, .regno = 65, .count = 2, .bits = 16 }, /* fcw-fsw */ 130 { .offset = 24, .regno = 64, .count = 1, .bits = 32 }, /* mxcsr */ 131 { .offset = 32, .regno = 33, .count = 8, .bits = 80, .pad = 6 }, /* stN */ 132 { .offset = 32 + 128, .regno = 17, .count = 16, .bits = 128 }, /* xmm */
|
D | sh_corenote.c | 46 { .offset = at * 4, .regno = dwreg, .count = n, .bits = 32 } 81 { .offset = 0, .regno = 25, .count = 16, .bits = 32 }, /* fr0-fr15 */ 82 { .offset = 16, .regno = 87, .count = 16, .bits = 32 }, /* xf0-xf15 */ 83 { .offset = 32, .regno = 24, .count = 1, .bits = 32 }, /* fpscr */ 84 { .offset = 33, .regno = 23, .count = 1, .bits = 32 } /* fpul */
|
D | ppc_initreg.c | 51 ppc_dwarf_to_regno (Ebl *ebl __attribute__ ((unused)), unsigned *regno) in ppc_dwarf_to_regno() argument 53 switch (*regno) in ppc_dwarf_to_regno() 57 *regno = 65; in ppc_dwarf_to_regno() 63 *regno = *regno - 1200 + (114 - 1); in ppc_dwarf_to_regno()
|
D | bpf_regs.c | 42 int regno, char *name, size_t namelen, in bpf_register_info() argument 50 if (regno < 0 || regno >= MAX_BPF_REG) in bpf_register_info() 58 len = snprintf(name, namelen, "r%d", regno); in bpf_register_info()
|
/third_party/elfutils/tests/ |
D | allregs.c | 75 int regno; member 86 return a->regno - b->regno; in compare() 100 int regno, in one_register() argument 108 if (regno >= state->nregs) in one_register() 110 state->info = realloc (state->info, (regno + 1) * sizeof state->info[0]); in one_register() 112 ((void *) &state->info[regno + 1] in one_register() 114 state->nregs = regno + 1; in one_register() 117 state->info[regno].regno = regno; in one_register() 118 state->info[regno].set = setname; in one_register() 119 state->info[regno].pfx = prefix; in one_register() [all …]
|
/third_party/elfutils/libdw/ |
D | cfi.c | 121 #define register_rule(regno, r_rule, r_value) do { \ in execute_cfi() argument 122 if (unlikely (! enough_registers (regno, &fs, &result))) \ in execute_cfi() 124 fs->regs[regno].rule = reg_##r_rule; \ in execute_cfi() 125 fs->regs[regno].value = (r_value); \ in execute_cfi() 131 Dwarf_Word regno; in execute_cfi() local 185 get_uleb128 (regno, program, end); in execute_cfi() 187 fs->cfa_val_reg = regno; in execute_cfi() 220 get_uleb128 (regno, program, end); in execute_cfi() 221 register_rule (regno, undefined, 0); in execute_cfi() 225 get_uleb128 (regno, program, end); in execute_cfi() [all …]
|
/third_party/elfutils/libdwfl/ |
D | dwfl_frame_regs.c | 42 for (unsigned regno = firstreg; regno < firstreg + nregs; regno++) in dwfl_thread_state_registers() local 43 if (! __libdwfl_frame_reg_set (state, regno, regs[regno - firstreg])) in dwfl_thread_state_registers() 64 dwfl_frame_reg (Dwfl_Frame *state, unsigned regno, Dwarf_Word *val) in INTDEF() 66 int res = __libdwfl_frame_reg_get (state, regno, val); in INTDEF()
|
D | frame_unwind.c | 48 __libdwfl_frame_reg_get (Dwfl_Frame *state, unsigned regno, Dwarf_Addr *val) in __libdwfl_frame_reg_get() argument 51 if (! ebl_dwarf_to_regno (ebl, ®no)) in __libdwfl_frame_reg_get() 53 if (regno >= ebl_frame_nregs (ebl)) in __libdwfl_frame_reg_get() 55 if ((state->regs_set[regno / sizeof (*state->regs_set) / 8] in __libdwfl_frame_reg_get() 56 & ((uint64_t) 1U << (regno % (sizeof (*state->regs_set) * 8)))) == 0) in __libdwfl_frame_reg_get() 59 *val = state->regs[regno]; in __libdwfl_frame_reg_get() 65 __libdwfl_frame_reg_set (Dwfl_Frame *state, unsigned regno, Dwarf_Addr val) in __libdwfl_frame_reg_set() argument 68 if (! ebl_dwarf_to_regno (ebl, ®no)) in __libdwfl_frame_reg_set() 70 if (regno >= ebl_frame_nregs (ebl)) in __libdwfl_frame_reg_set() 75 state->regs_set[regno / sizeof (*state->regs_set) / 8] |= in __libdwfl_frame_reg_set() [all …]
|
D | dwfl_module_register_names.c | 59 for (int regno = 0; regno < nregs && likely (result == 0); ++regno) in dwfl_module_register_names() local 66 ssize_t len = ebl_register_info (mod->ebl, regno, name, sizeof name, in dwfl_module_register_names() 77 result = (*func) (arg, regno, setname, prefix, name, bits, type); in dwfl_module_register_names()
|
/third_party/ltp/tools/sparse/sparse-src/ |
D | storage.c | 126 if (aa->regno != bb->regno) in storage_hash_cmp() 127 return aa->regno < bb->regno ? -1 : 1; in storage_hash_cmp() 147 && a->regno == b->regno) { in vrfy_storage() 177 sprintf(buffer, "reg%d (%d)", s->regno, s->name); in show_storage() 183 sprintf(buffer, "ARG%d (%d)", s->regno, s->name); in show_storage() 186 sprintf(buffer, "%d:%d (%d)", s->type, s->regno, s->name); in show_storage() 258 storage->regno = arg->nr; in set_up_argument_storage()
|