Skip to content

Commit

Permalink
x86: support 0x82 opcode for Arithmetic instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Apr 20, 2014
1 parent a542efe commit 33e1636
Show file tree
Hide file tree
Showing 10 changed files with 38,580 additions and 38,398 deletions.
11 changes: 10 additions & 1 deletion arch/X86/X86GenAsmWriter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
23104789U, // ADD8mi
23104789U, // ADD8mr
6343957U, // ADD8ri
6343957U, // ADD8ri8
118037U, // ADD8rm
6343957U, // ADD8rr
8441109U, // ADD8rr_REV
Expand Down Expand Up @@ -214,6 +215,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
23104802U, // AND8mi
23104802U, // AND8mr
6343970U, // AND8ri
6343970U, // AND8ri8
118050U, // AND8rm
6343970U, // AND8rr
8441122U, // AND8rr_REV
Expand Down Expand Up @@ -1880,6 +1882,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
23104955U, // OR8mi
23104955U, // OR8mr
6344123U, // OR8ri
6344123U, // OR8ri8
118203U, // OR8rm
6344123U, // OR8rr
8441275U, // OR8rr_REV
Expand Down Expand Up @@ -2779,6 +2782,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
23104763U, // SUB8mi
23104763U, // SUB8mr
6343931U, // SUB8ri
6343931U, // SUB8ri8
118011U, // SUB8rm
6343931U, // SUB8rr
8441083U, // SUB8rr_REV
Expand Down Expand Up @@ -5402,6 +5406,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
23104960U, // XOR8mi
23104960U, // XOR8mr
6344128U, // XOR8ri
6344128U, // XOR8ri8
118208U, // XOR8rm
6344128U, // XOR8rr
8441280U, // XOR8rr_REV
Expand Down Expand Up @@ -5534,6 +5539,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // ADD8mi
0U, // ADD8mr
0U, // ADD8ri
0U, // ADD8ri8
0U, // ADD8rm
0U, // ADD8rr
0U, // ADD8rr_REV
Expand Down Expand Up @@ -5625,6 +5631,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // AND8mi
0U, // AND8mr
0U, // AND8ri
0U, // AND8ri8
0U, // AND8rm
0U, // AND8rr
0U, // AND8rr_REV
Expand Down Expand Up @@ -7291,6 +7298,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // OR8mi
0U, // OR8mr
0U, // OR8ri
0U, // OR8ri8
0U, // OR8rm
0U, // OR8rr
0U, // OR8rr_REV
Expand Down Expand Up @@ -8190,6 +8198,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // SUB8mi
0U, // SUB8mr
0U, // SUB8ri
0U, // SUB8ri8
0U, // SUB8rm
0U, // SUB8rr
0U, // SUB8rr_REV
Expand Down Expand Up @@ -10813,6 +10822,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // XOR8mi
0U, // XOR8mr
0U, // XOR8ri
0U, // XOR8ri8
0U, // XOR8rm
0U, // XOR8rr
0U, // XOR8rr_REV
Expand Down Expand Up @@ -13482,7 +13492,6 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
return;
break;
}

}


Expand Down
11 changes: 10 additions & 1 deletion arch/X86/X86GenAsmWriter1.inc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
1150679U, // ADD8mi
1150679U, // ADD8mr
35704535U, // ADD8ri
35704535U, // ADD8ri8
6344407U, // ADD8rm
35704535U, // ADD8rr
68177623U, // ADD8rr_REV
Expand Down Expand Up @@ -214,6 +215,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
1150883U, // AND8mi
1150883U, // AND8mr
35704739U, // AND8ri
35704739U, // AND8ri8
6344611U, // AND8rm
35704739U, // AND8rr
68177827U, // AND8rr_REV
Expand Down Expand Up @@ -1880,6 +1882,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
1153962U, // OR8mi
1153962U, // OR8mr
35707818U, // OR8ri
35707818U, // OR8ri8
6347690U, // OR8rm
35707818U, // OR8rr
68180906U, // OR8rr_REV
Expand Down Expand Up @@ -2779,6 +2782,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
1150439U, // SUB8mi
1150439U, // SUB8mr
35704295U, // SUB8ri
35704295U, // SUB8ri8
6344167U, // SUB8rm
35704295U, // SUB8rr
68177383U, // SUB8rr_REV
Expand Down Expand Up @@ -5402,6 +5406,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
1153990U, // XOR8mi
1153990U, // XOR8mr
35707846U, // XOR8ri
35707846U, // XOR8ri8
6347718U, // XOR8rm
35707846U, // XOR8rr
68180934U, // XOR8rr_REV
Expand Down Expand Up @@ -5534,6 +5539,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // ADD8mi
0U, // ADD8mr
0U, // ADD8ri
0U, // ADD8ri8
0U, // ADD8rm
0U, // ADD8rr
0U, // ADD8rr_REV
Expand Down Expand Up @@ -5625,6 +5631,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // AND8mi
0U, // AND8mr
0U, // AND8ri
0U, // AND8ri8
0U, // AND8rm
0U, // AND8rr
0U, // AND8rr_REV
Expand Down Expand Up @@ -7291,6 +7298,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // OR8mi
0U, // OR8mr
0U, // OR8ri
0U, // OR8ri8
0U, // OR8rm
0U, // OR8rr
0U, // OR8rr_REV
Expand Down Expand Up @@ -8190,6 +8198,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // SUB8mi
0U, // SUB8mr
0U, // SUB8ri
0U, // SUB8ri8
0U, // SUB8rm
0U, // SUB8rr
0U, // SUB8rr_REV
Expand Down Expand Up @@ -10813,6 +10822,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
0U, // XOR8mi
0U, // XOR8mr
0U, // XOR8ri
0U, // XOR8ri8
0U, // XOR8rm
0U, // XOR8rr
0U, // XOR8rr_REV
Expand Down Expand Up @@ -12985,7 +12995,6 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
printOperand(MI, 8, O);
return;
}

}


Expand Down
5 changes: 5 additions & 0 deletions arch/X86/X86GenAsmWriter1_reduce.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
311483U, // ADD8mi
311483U, // ADD8mr
549051U, // ADD8ri
549051U, // ADD8ri8
1597627U, // ADD8rm
549051U, // ADD8rr
4464827U, // ADD8rr_REV
Expand Down Expand Up @@ -161,6 +162,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
311532U, // AND8mi
311532U, // AND8mr
549100U, // AND8ri
549100U, // AND8ri8
1597676U, // AND8rm
549100U, // AND8rr
4464876U, // AND8rr_REV
Expand Down Expand Up @@ -1012,6 +1014,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
312162U, // OR8mi
312162U, // OR8mr
549730U, // OR8ri
549730U, // OR8ri8
1598306U, // OR8rm
549730U, // OR8rr
4465506U, // OR8rr_REV
Expand Down Expand Up @@ -1506,6 +1509,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
311415U, // SUB8mi
311415U, // SUB8mr
548983U, // SUB8ri
548983U, // SUB8ri8
1597559U, // SUB8rm
548983U, // SUB8rr
4464759U, // SUB8rr_REV
Expand Down Expand Up @@ -1669,6 +1673,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
312174U, // XOR8mi
312174U, // XOR8mr
549742U, // XOR8ri
549742U, // XOR8ri8
1598318U, // XOR8rm
549742U, // XOR8rr
4465518U, // XOR8rr_REV
Expand Down
5 changes: 5 additions & 0 deletions arch/X86/X86GenAsmWriter_reduce.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
5259329U, // ADD8mi
5259329U, // ADD8mr
1597505U, // ADD8ri
1597505U, // ADD8ri8
57409U, // ADD8rm
1597505U, // ADD8rr
2121793U, // ADD8rr_REV
Expand Down Expand Up @@ -161,6 +162,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
5259335U, // AND8mi
5259335U, // AND8mr
1597511U, // AND8ri
1597511U, // AND8ri8
57415U, // AND8rm
1597511U, // AND8rr
2121799U, // AND8rr_REV
Expand Down Expand Up @@ -1012,6 +1014,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
5259422U, // OR8mi
5259422U, // OR8mr
1597598U, // OR8ri
1597598U, // OR8ri8
57502U, // OR8rm
1597598U, // OR8rr
2121886U, // OR8rr_REV
Expand Down Expand Up @@ -1506,6 +1509,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
5259304U, // SUB8mi
5259304U, // SUB8mr
1597480U, // SUB8ri
1597480U, // SUB8ri8
57384U, // SUB8rm
1597480U, // SUB8rr
2121768U, // SUB8rr_REV
Expand Down Expand Up @@ -1669,6 +1673,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
5259427U, // XOR8mi
5259427U, // XOR8mr
1597603U, // XOR8ri
1597603U, // XOR8ri8
57507U, // XOR8rm
1597603U, // XOR8rr
2121891U, // XOR8rr_REV
Expand Down
Loading

0 comments on commit 33e1636

Please sign in to comment.