From beb6898df8f96ccea4ae147587479b507bb3e491 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 23 Nov 2010 11:23:24 +0000 Subject: [PATCH] Implement the rex64 prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120017 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/AsmParser/X86AsmParser.cpp | 3 ++- lib/Target/X86/X86InstrInfo.td | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index ca2af1fbece..b6660710bbf 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -707,7 +707,8 @@ ParseInstruction(StringRef Name, SMLoc NameLoc, bool isPrefix = Name == "lock" || Name == "rep" || Name == "repe" || Name == "repz" || - Name == "repne" || Name == "repnz"; + Name == "repne" || Name == "repnz" || + Name == "rex64"; // This does the actual operand parsing. Don't parse any more if we have a diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index 10e9e9a88e4..d7a55057c4b 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -1144,6 +1144,9 @@ def CMPXCHG16B : RI<0xC7, MRM1m, (outs), (ins i128mem:$dst), // Lock instruction prefix def LOCK_PREFIX : I<0xF0, RawFrm, (outs), (ins), "lock", []>; +// Rex64 instruction prefix +def REX64_PREFIX : I<0x48, RawFrm, (outs), (ins), "rex64", []>; + // Repeat string operation instruction prefixes // These uses the DF flag in the EFLAGS register to inc or dec ECX let Defs = [ECX], Uses = [ECX,EFLAGS] in { -- 2.34.1