From: Chris Lattner Date: Sun, 20 Nov 2005 22:13:18 +0000 (+0000) Subject: encode rdtsc correctly X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=441b223c9b623c63be0e2c059ff23436643adc7b;p=oota-llvm.git encode rdtsc correctly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24435 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index 0eaf337fd4f..89457d7f45d 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -167,10 +167,6 @@ class Ii32 o, Format f, dag ops, string asm, list pattern> 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">; @@ -1609,6 +1605,13 @@ def CMPSDrm : I<0xC2, MRMSrcMem, "cmp${cc}sd {$src, $dst|$dst, $src}">, XD; } +//===----------------------------------------------------------------------===// +// Miscellaneous Instructions +//===----------------------------------------------------------------------===// + +def RDTSC : I<0x31, RawFrm, (ops), "rdtsc">, TB, Imp<[],[EAX,EDX]>; + + //===----------------------------------------------------------------------===// // Stack-based Floating point support //===----------------------------------------------------------------------===//