diff options
| author | Sean Callanan <scallanan@apple.com> | 2010-02-13 02:06:11 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2010-02-13 02:06:11 +0000 |
| commit | 4d804d794f641cf8d9dcda12471da09c365f8a8c (patch) | |
| tree | 6e24ccdfde4900304340c3942d034f636be9cfd1 | |
| parent | b659c76c77df265b137c998bdd5bbc86071fd4b8 (diff) | |
| download | bcm5719-llvm-4d804d794f641cf8d9dcda12471da09c365f8a8c.tar.gz bcm5719-llvm-4d804d794f641cf8d9dcda12471da09c365f8a8c.zip | |
Added the rdtscp instruction to the x86 instruction
tables.
llvm-svn: 96073
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrFormats.td | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.td | 3 | ||||
| -rw-r--r-- | llvm/utils/TableGen/X86RecognizableInstr.cpp | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86InstrFormats.td b/llvm/lib/Target/X86/X86InstrFormats.td index 8b934e0f86f..bb81cbf8ac1 100644 --- a/llvm/lib/Target/X86/X86InstrFormats.td +++ b/llvm/lib/Target/X86/X86InstrFormats.td @@ -38,7 +38,7 @@ def MRM_C9 : Format<38>; def MRM_E8 : Format<39>; def MRM_F0 : Format<40>; def MRM_F8 : Format<41>; - +def MRM_F9 : Format<42>; // ImmType - This specifies the immediate type used by an instruction. This is // part of the ad-hoc solution used to emit machine instruction encodings by our diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 62dfdc299ca..25cd297e261 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -904,6 +904,9 @@ let Defs = [RAX, RDX] in def RDTSC : I<0x31, RawFrm, (outs), (ins), "rdtsc", [(X86rdtsc)]>, TB; +let Defs = [RAX, RCX, RDX] in +def RDTSCP : I<0x01, MRM_F9, (outs), (ins), "rdtscp", []>, TB; + let isBarrier = 1, hasCtrlDep = 1 in { def TRAP : I<0x0B, RawFrm, (outs), (ins), "ud2", [(trap)]>, TB; } diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp index 0a85eb8380e..3843e56d985 100644 --- a/llvm/utils/TableGen/X86RecognizableInstr.cpp +++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp @@ -33,7 +33,8 @@ using namespace llvm; MAP(C9, 38) \ MAP(E8, 39) \ MAP(F0, 40) \ - MAP(F8, 41) + MAP(F8, 41) \ + MAP(F9, 42) // A clone of X86 since we can't depend on something that is generated. namespace X86Local { |

