[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.td

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 20 14:13:30 PST 2005



Changes in directory llvm/lib/Target/X86:

X86InstrInfo.td updated: 1.140 -> 1.141
---
Log message:

encode rdtsc correctly


---
Diffs of the changes:  (+7 -4)

 X86InstrInfo.td |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.140 llvm/lib/Target/X86/X86InstrInfo.td:1.141
--- llvm/lib/Target/X86/X86InstrInfo.td:1.140	Sun Nov 20 15:41:10 2005
+++ llvm/lib/Target/X86/X86InstrInfo.td	Sun Nov 20 16:13:18 2005
@@ -167,10 +167,6 @@
 def PHI : I<0, Pseudo, (ops variable_ops), "PHINODE">;        // PHI node.
 def NOOP : I<0x90, RawFrm, (ops), "nop">; // nop
 
-//FIXME: encode this correctly
-let Defs = [EAX, EDX] in
-  def RDTSC : I<0, Pseudo, (ops ), "rdtsc">; //in binary, this inst is 0x0f 0x31
-
 def ADJCALLSTACKDOWN : I<0, Pseudo, (ops i32imm:$amt), "#ADJCALLSTACKDOWN">;
 def ADJCALLSTACKUP   : I<0, Pseudo, (ops i32imm:$amt1, i32imm:$amt2),
                          "#ADJCALLSTACKUP">;
@@ -1610,6 +1606,13 @@
 }
 
 //===----------------------------------------------------------------------===//
+// Miscellaneous Instructions
+//===----------------------------------------------------------------------===//
+
+def RDTSC : I<0x31, RawFrm, (ops), "rdtsc">, TB, Imp<[],[EAX,EDX]>;
+
+
+//===----------------------------------------------------------------------===//
 // Stack-based Floating point support
 //===----------------------------------------------------------------------===//
 






More information about the llvm-commits mailing list