1 //===-- ARM_GCC_Registers.h -------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef utility_ARM_GCC_Registers_h_ 11 #define utility_ARM_GCC_Registers_h_ 12 13 enum 14 { 15 gcc_r0 = 0, 16 gcc_r1, 17 gcc_r2, 18 gcc_r3, 19 gcc_r4, 20 gcc_r5, 21 gcc_r6, 22 gcc_r7, 23 gcc_r8, 24 gcc_r9, 25 gcc_r10, 26 gcc_r11, 27 gcc_r12, 28 gcc_sp, 29 gcc_lr, 30 gcc_pc, 31 gcc_cpsr 32 }; 33 34 enum 35 { 36 // Name Nr Rel Offset Size Type Raw value 37 gdb_arm_r0 = 0, // 0 0 4 int32_t 38 gdb_arm_r1 = 1, // 1 4 4 int32_t 39 gdb_arm_r2 = 2, // 2 8 4 int32_t 40 gdb_arm_r3 = 3, // 3 12 4 int32_t 41 gdb_arm_r4 = 4, // 4 16 4 int32_t 42 gdb_arm_r5 = 5, // 5 20 4 int32_t 43 gdb_arm_r6 = 6, // 6 24 4 int32_t 44 gdb_arm_r7 = 7, // 7 28 4 int32_t 45 gdb_arm_r8 = 8, // 8 32 4 int32_t 46 gdb_arm_r9 = 9, // 9 36 4 int32_t 47 gdb_arm_r10 = 10, // 10 40 4 int32_t 48 gdb_arm_r11 = 11, // 11 44 4 int32_t 49 gdb_arm_r12 = 12, // 12 48 4 int32_t 50 gdb_arm_sp = 13, // 13 52 4 int32_t 51 gdb_arm_lr = 14, // 14 56 4 int32_t 52 gdb_arm_pc = 15, // 15 60 4 int32_t 53 gdb_arm_f0 = 16, // 16 64 12 _arm_ext_littlebyte_bigword 54 gdb_arm_f1 = 17, // 17 76 12 _arm_ext_littlebyte_bigword 55 gdb_arm_f2 = 18, // 18 88 12 _arm_ext_littlebyte_bigword 56 gdb_arm_f3 = 19, // 19 100 12 _arm_ext_littlebyte_bigword 57 gdb_arm_f4 = 20, // 20 112 12 _arm_ext_littlebyte_bigword 58 gdb_arm_f5 = 21, // 21 124 12 _arm_ext_littlebyte_bigword 59 gdb_arm_f6 = 22, // 22 136 12 _arm_ext_littlebyte_bigword 60 gdb_arm_f7 = 23, // 23 148 12 _arm_ext_littlebyte_bigword 61 gdb_arm_f8 = 24, // 24 160 12 _arm_ext_littlebyte_bigword 62 gdb_arm_cpsr = 25, // 25 172 4 int32_t 63 gdb_arm_s0 = 26, // 26 176 4 _ieee_single_little 64 gdb_arm_s1 = 27, // 27 180 4 _ieee_single_little 65 gdb_arm_s2 = 28, // 28 184 4 _ieee_single_little 66 gdb_arm_s3 = 29, // 29 188 4 _ieee_single_little 67 gdb_arm_s4 = 30, // 30 192 4 _ieee_single_little 68 gdb_arm_s5 = 31, // 31 196 4 _ieee_single_little 69 gdb_arm_s6 = 32, // 32 200 4 _ieee_single_little 70 gdb_arm_s7 = 33, // 33 204 4 _ieee_single_little 71 gdb_arm_s8 = 34, // 34 208 4 _ieee_single_little 72 gdb_arm_s9 = 35, // 35 212 4 _ieee_single_little 73 gdb_arm_s10 = 36, // 36 216 4 _ieee_single_little 74 gdb_arm_s11 = 37, // 37 220 4 _ieee_single_little 75 gdb_arm_s12 = 38, // 38 224 4 _ieee_single_little 76 gdb_arm_s13 = 39, // 39 228 4 _ieee_single_little 77 gdb_arm_s14 = 40, // 40 232 4 _ieee_single_little 78 gdb_arm_s15 = 41, // 41 236 4 _ieee_single_little 79 gdb_arm_s16 = 42, // 42 240 4 _ieee_single_little 80 gdb_arm_s17 = 43, // 43 244 4 _ieee_single_little 81 gdb_arm_s18 = 44, // 44 248 4 _ieee_single_little 82 gdb_arm_s19 = 45, // 45 252 4 _ieee_single_little 83 gdb_arm_s20 = 46, // 46 256 4 _ieee_single_little 84 gdb_arm_s21 = 47, // 47 260 4 _ieee_single_little 85 gdb_arm_s22 = 48, // 48 264 4 _ieee_single_little 86 gdb_arm_s23 = 49, // 49 268 4 _ieee_single_little 87 gdb_arm_s24 = 50, // 50 272 4 _ieee_single_little 88 gdb_arm_s25 = 51, // 51 276 4 _ieee_single_little 89 gdb_arm_s26 = 52, // 52 280 4 _ieee_single_little 90 gdb_arm_s27 = 53, // 53 284 4 _ieee_single_little 91 gdb_arm_s28 = 54, // 54 288 4 _ieee_single_little 92 gdb_arm_s29 = 55, // 55 292 4 _ieee_single_little 93 gdb_arm_s30 = 56, // 56 296 4 _ieee_single_little 94 gdb_arm_s31 = 57, // 57 300 4 _ieee_single_little 95 gdb_arm_fpscr = 58, // 58 304 4 int32_t 96 gdb_arm_d16 = 59, // 59 308 8 _ieee_double_little 97 gdb_arm_d17 = 60, // 60 316 8 _ieee_double_little 98 gdb_arm_d18 = 61, // 61 324 8 _ieee_double_little 99 gdb_arm_d19 = 62, // 62 332 8 _ieee_double_little 100 gdb_arm_d20 = 63, // 63 340 8 _ieee_double_little 101 gdb_arm_d21 = 64, // 64 348 8 _ieee_double_little 102 gdb_arm_d22 = 65, // 65 356 8 _ieee_double_little 103 gdb_arm_d23 = 66, // 66 364 8 _ieee_double_little 104 gdb_arm_d24 = 67, // 67 372 8 _ieee_double_little 105 gdb_arm_d25 = 68, // 68 380 8 _ieee_double_little 106 gdb_arm_d26 = 69, // 69 388 8 _ieee_double_little 107 gdb_arm_d27 = 70, // 70 396 8 _ieee_double_little 108 gdb_arm_d28 = 71, // 71 404 8 _ieee_double_little 109 gdb_arm_d29 = 72, // 72 412 8 _ieee_double_little 110 gdb_arm_d30 = 73, // 73 420 8 _ieee_double_little 111 gdb_arm_d31 = 74, // 74 428 8 _ieee_double_little 112 gdb_arm_d0 = 75, // 0 436 8 _ieee_double_little 113 gdb_arm_d1 = 76, // 1 444 8 _ieee_double_little 114 gdb_arm_d2 = 77, // 2 452 8 _ieee_double_little 115 gdb_arm_d3 = 78, // 3 460 8 _ieee_double_little 116 gdb_arm_d4 = 79, // 4 468 8 _ieee_double_little 117 gdb_arm_d5 = 80, // 5 476 8 _ieee_double_little 118 gdb_arm_d6 = 81, // 6 484 8 _ieee_double_little 119 gdb_arm_d7 = 82, // 7 492 8 _ieee_double_little 120 gdb_arm_d8 = 83, // 8 500 8 _ieee_double_little 121 gdb_arm_d9 = 84, // 9 508 8 _ieee_double_little 122 gdb_arm_d10 = 85, // 10 516 8 _ieee_double_little 123 gdb_arm_d11 = 86, // 11 524 8 _ieee_double_little 124 gdb_arm_d12 = 87, // 12 532 8 _ieee_double_little 125 gdb_arm_d13 = 88, // 13 540 8 _ieee_double_little 126 gdb_arm_d14 = 89, // 14 548 8 _ieee_double_little 127 gdb_arm_d15 = 90, // 15 556 8 _ieee_double_little 128 gdb_arm_q0 = 91, // 16 564 16 _vec128 129 gdb_arm_q1 = 92, // 17 580 16 _vec128 130 gdb_arm_q2 = 93, // 18 596 16 _vec128 131 gdb_arm_q3 = 94, // 19 612 16 _vec128 132 gdb_arm_q4 = 95, // 20 628 16 _vec128 133 gdb_arm_q5 = 96, // 21 644 16 _vec128 134 gdb_arm_q6 = 97, // 22 660 16 _vec128 135 gdb_arm_q7 = 98, // 23 676 16 _vec128 136 gdb_arm_q8 = 99, // 24 692 16 _vec128 137 gdb_arm_q9 = 100, // 25 708 16 _vec128 138 gdb_arm_q10 = 101, // 26 724 16 _vec128 139 gdb_arm_q11 = 102, // 27 740 16 _vec128 140 gdb_arm_q12 = 103, // 28 756 16 _vec128 141 gdb_arm_q13 = 104, // 29 772 16 _vec128 142 gdb_arm_q14 = 105, // 30 788 16 _vec128 143 gdb_arm_q15 = 106 // 31 804 16 _vec128 144 }; 145 #endif // utility_ARM_GCC_Registers_h_ 146 147