diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-21 16:19:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-21 16:19:42 +0000 |
commit | 4b4e9dd93794a871e7a27ab8db2b0720e970efc5 (patch) | |
tree | 8b4224fc6d5bd0c4fc702ab43eb1bd472ea57f81 /lib | |
parent | 05093a51b4b3bfaff33ee17b92ccab1711dc10ab (diff) | |
download | external_llvm-4b4e9dd93794a871e7a27ab8db2b0720e970efc5.zip external_llvm-4b4e9dd93794a871e7a27ab8db2b0720e970efc5.tar.gz external_llvm-4b4e9dd93794a871e7a27ab8db2b0720e970efc5.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 4 | ||||
-rw-r--r-- | lib/Target/X86/X86ISelSimple.cpp | 4 | ||||
-rw-r--r-- | lib/Target/X86/X86InstrInfo.def | 20 |
3 files changed, 14 insertions, 14 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index d174699..c3da2fe 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 d174699..c3da2fe 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 8159bed..8fd5dee 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 |