mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Rename the SetCC X86 instructions to reflect the fact that they are the
register versions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -257,8 +257,8 @@ void ISel::visitSetCCInst(SetCondInst &I, unsigned OpNum) {
|
||||
// setge -> setge setae
|
||||
|
||||
static const unsigned OpcodeTab[2][6] = {
|
||||
{ X86::SETE, X86::SETNE, X86::SETB, X86::SETA, X86::SETBE, X86::SETAE },
|
||||
{ X86::SETE, X86::SETNE, X86::SETL, X86::SETG, X86::SETLE, X86::SETGE },
|
||||
{X86::SETEr, X86::SETNEr, X86::SETBr, X86::SETAr, X86::SETBEr, X86::SETAEr},
|
||||
{X86::SETEr, X86::SETNEr, X86::SETLr, X86::SETGr, X86::SETLEr, X86::SETGEr},
|
||||
};
|
||||
|
||||
BuildMI(BB, OpcodeTab[CompTy->isSigned()][OpNum], 0, X86::AL);
|
||||
|
@@ -257,8 +257,8 @@ void ISel::visitSetCCInst(SetCondInst &I, unsigned OpNum) {
|
||||
// setge -> setge setae
|
||||
|
||||
static const unsigned OpcodeTab[2][6] = {
|
||||
{ X86::SETE, X86::SETNE, X86::SETB, X86::SETA, X86::SETBE, X86::SETAE },
|
||||
{ X86::SETE, X86::SETNE, X86::SETL, X86::SETG, X86::SETLE, X86::SETGE },
|
||||
{X86::SETEr, X86::SETNEr, X86::SETBr, X86::SETAr, X86::SETBEr, X86::SETAEr},
|
||||
{X86::SETEr, X86::SETNEr, X86::SETLr, X86::SETGr, X86::SETLEr, X86::SETGEr},
|
||||
};
|
||||
|
||||
BuildMI(BB, OpcodeTab[CompTy->isSigned()][OpNum], 0, X86::AL);
|
||||
|
@@ -122,16 +122,16 @@ I(FNSTSWr8 , "fnstsw", 0xDF, 0, X86II::Void)
|
||||
|
||||
// Condition code ops, incl. set if equal/not equal/...
|
||||
I(SAHF , "sahf", 0x9E, 0, 0) // flags = AH 9E
|
||||
I(SETA , "seta", 0x97, 0, X86II::TB) // R8 = > unsign 0F 97
|
||||
I(SETAE , "setae", 0x93, 0, X86II::TB) // R8 = >=unsign 0F 93
|
||||
I(SETB , "setb", 0x92, 0, X86II::TB) // R8 = < unsign 0F 92
|
||||
I(SETBE , "setbe", 0x96, 0, X86II::TB) // R8 = <=unsign 0F 96
|
||||
I(SETE , "sete", 0x94, 0, X86II::TB) // R8 = == 0F 94
|
||||
I(SETG , "setg", 0x9F, 0, X86II::TB) // R8 = > signed 0F 9F
|
||||
I(SETGE , "setge", 0x9D, 0, X86II::TB) // R8 = >=signed 0F 9D
|
||||
I(SETL , "setl", 0x9C, 0, X86II::TB) // R8 = < signed 0F 9C
|
||||
I(SETLE , "setle", 0x9E, 0, X86II::TB) // R8 = <=signed 0F 9E
|
||||
I(SETNE , "setne", 0x95, 0, X86II::TB) // R8 = != 0F 95
|
||||
I(SETAr , "seta", 0x97, 0, X86II::TB) // R8 = > unsign 0F 97
|
||||
I(SETAEr , "setae", 0x93, 0, X86II::TB) // R8 = >=unsign 0F 93
|
||||
I(SETBr , "setb", 0x92, 0, X86II::TB) // R8 = < unsign 0F 92
|
||||
I(SETBEr , "setbe", 0x96, 0, X86II::TB) // R8 = <=unsign 0F 96
|
||||
I(SETEr , "sete", 0x94, 0, X86II::TB) // R8 = == 0F 94
|
||||
I(SETGr , "setg", 0x9F, 0, X86II::TB) // R8 = > signed 0F 9F
|
||||
I(SETGEr , "setge", 0x9D, 0, X86II::TB) // R8 = >=signed 0F 9D
|
||||
I(SETLr , "setl", 0x9C, 0, X86II::TB) // R8 = < signed 0F 9C
|
||||
I(SETLEr , "setle", 0x9E, 0, X86II::TB) // R8 = <=signed 0F 9E
|
||||
I(SETNEr , "setne", 0x95, 0, X86II::TB) // R8 = != 0F 95
|
||||
|
||||
// Integer comparisons
|
||||
I(CMPrr8 , "cmpb", 0x38, 0, X86II::MRMDestReg) // compare R8,R8 38/r
|
||||
|
Reference in New Issue
Block a user