[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp X86InstrInfo.def
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 21 10:20:01 PST 2002
Changes in directory llvm/lib/Target/X86:
InstSelectSimple.cpp updated: 1.32 -> 1.33
X86InstrInfo.def updated: 1.22 -> 1.23
---
Log message:
Rename the SetCC X86 instructions to reflect the fact that they are the
register versions
---
Diffs of the changes:
Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.32 llvm/lib/Target/X86/InstSelectSimple.cpp:1.33
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.32 Thu Nov 21 09:52:38 2002
+++ llvm/lib/Target/X86/InstSelectSimple.cpp Thu Nov 21 10:19:42 2002
@@ -257,8 +257,8 @@
// 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);
Index: llvm/lib/Target/X86/X86InstrInfo.def
diff -u llvm/lib/Target/X86/X86InstrInfo.def:1.22 llvm/lib/Target/X86/X86InstrInfo.def:1.23
--- llvm/lib/Target/X86/X86InstrInfo.def:1.22 Wed Nov 20 19:33:28 2002
+++ llvm/lib/Target/X86/X86InstrInfo.def Thu Nov 21 10:19:42 2002
@@ -122,16 +122,16 @@
// 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
More information about the llvm-commits
mailing list