From: Chris Lattner Date: Thu, 21 Nov 2002 16:19:42 +0000 (+0000) Subject: Rename the SetCC X86 instructions to reflect the fact that they are the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b4e9dd93794a871e7a27ab8db2b0720e970efc5;p=oota-llvm.git 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 --- diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index d174699a10e..c3da2fe914e 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -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); diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index d174699a10e..c3da2fe914e 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -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); diff --git a/lib/Target/X86/X86InstrInfo.def b/lib/Target/X86/X86InstrInfo.def index 8159bed2e3e..8fd5deeedea 100644 --- a/lib/Target/X86/X86InstrInfo.def +++ b/lib/Target/X86/X86InstrInfo.def @@ -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