diff options
| author | Bill Wendling <isanbard@gmail.com> | 2009-07-21 01:07:24 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2009-07-21 01:07:24 +0000 |
| commit | a8e2ad3e3cbf0077cc9ac2c035348515338b92dc (patch) | |
| tree | 703b9b0a0b83a4fd780729bead572c8084e5df5a /llvm/lib | |
| parent | a3a6dea8d566b09229f5763498f5dfff8755ea39 (diff) | |
| download | bcm5719-llvm-a8e2ad3e3cbf0077cc9ac2c035348515338b92dc.tar.gz bcm5719-llvm-a8e2ad3e3cbf0077cc9ac2c035348515338b92dc.zip | |
Add the following functions:
- SYSCALL (normal fast system call instruction) [0f 05]
- SYSENTER (system call entry instruction) [0f 34]
- SYSEXIT (system call exit instruction) [0f 35]
- SYSEXIT64 (system call exit instruction to 64-bit user code) [REX.W 0f 35]
- SYSRET (system call return instruction) [0f 07]
Patch by Sean Callanan.
llvm-svn: 76528
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86Instr64bit.td | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Instr64bit.td b/llvm/lib/Target/X86/X86Instr64bit.td index c4b25fca2fc..1dd7e07964e 100644 --- a/llvm/lib/Target/X86/X86Instr64bit.td +++ b/llvm/lib/Target/X86/X86Instr64bit.td @@ -245,6 +245,18 @@ let Defs = [RCX,RDI], Uses = [RAX,RCX,RDI] in def REP_STOSQ : RI<0xAB, RawFrm, (outs), (ins), "{rep;stosq|rep stosq}", [(X86rep_stos i64)]>, REP; +// Fast system-call instructions +def SYSCALL : I<0x05, RawFrm, + (outs), (ins), "syscall", []>, TB; +def SYSENTER : I<0x34, RawFrm, + (outs), (ins), "sysenter", []>, TB; +def SYSEXIT : I<0x35, RawFrm, + (outs), (ins), "sysexit", []>, TB; +def SYSEXIT64 : RI<0x35, RawFrm, + (outs), (ins), "sysexit", []>, TB; +def SYSRET : I<0x07, RawFrm, + (outs), (ins), "sysret", []>, TB; + //===----------------------------------------------------------------------===// // Move Instructions... // |

