X86 Registers in LLVM 2.1




Register Classes
Class ID Number of Registers Size of Registers Register Alignment Registers
1 1 4 4 23
2 16 4 4 96 - 97 - 104 - 105 - 106 - 107 - 108 - 109
3 16 8 8 96 - 97 - 104 - 105 - 106 - 107 - 108 - 109
4 16 2 2 3 - 11 - 16 - 84 - 13 - 8 - 6
5 4 2 2 3 - 11 - 16 - 8
6 16 4 4 17 - 20 - 22 - 25 - 21 - 19 - 18
7 4 4 4 17 - 20 - 22 - 19
8 16 8 8 75 - 78 - 80 - 82 - 79 - 67 - 71 - 43 - 47 - 77 - 59 - 63 - 51 - 55 - 76
9 20 1 1 2 - 10 - 15 - 1 - 9 - 12 - 5 - 4
10 7 4 4 27 - 28 - 29 - 30 - 31 - 32 - 33
11 7 8 4 27 - 28 - 29 - 30 - 31 - 32 - 33
12 7 10 4 27 - 28 - 29 - 30 - 31 - 32 - 33
13 8 8 4
14 16 16 16 96 - 97 - 104 - 105 - 106 - 107 - 108 - 109
15 8 8 8 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42




The register numbering is as follows:

           1: AH           2: AL           3: AX           4: BH           5: BL
           6: BP          7: BPL           8: BX           9: CH          10: CL
          11: CX          12: DH          13: DI         14: DIL          15: DL
          16: DX         17: EAX         18: EBP         19: EBX         20: ECX
         21: EDI         22: EDX      23: EFLAGS         24: EIP         25: ESI
         26: ESP         27: FP0         28: FP1         29: FP2         30: FP3
         31: FP4         32: FP5         33: FP6          34: IP         35: MM0
         36: MM1         37: MM2         38: MM3         39: MM4         40: MM5
         41: MM6         42: MM7         43: R10        44: R10B        45: R10D
        46: R10W         47: R11        48: R11B        49: R11D        50: R11W
         51: R12        52: R12B        53: R12D        54: R12W         55: R13
        56: R13B        57: R13D        58: R13W         59: R14        60: R14B
        61: R14D        62: R14W         63: R15        64: R15B        65: R15D
        66: R15W          67: R8         68: R8B         69: R8D         70: R8W
          71: R9         72: R9B         73: R9D         74: R9W         75: RAX
         76: RBP         77: RBX         78: RCX         79: RDI         80: RDX
         81: RIP         82: RSI         83: RSP          84: SI         85: SIL
          86: SP         87: SPL       88: ST(0)       89: ST(1)       90: ST(2)
       91: ST(3)       92: ST(4)       93: ST(5)       94: ST(6)       95: ST(7)
        96: XMM0        97: XMM1       98: XMM10       99: XMM11      100: XMM12
      101: XMM13      102: XMM14      103: XMM15       104: XMM2       105: XMM3
       106: XMM4       107: XMM5       108: XMM6       109: XMM7       110: XMM8