[llvm-commits] [llvm] r120017 - in /llvm/trunk/lib/Target/X86: AsmParser/X86AsmParser.cpp X86InstrInfo.td

Chris Lattner clattner at apple.com
Tue Nov 23 10:10:23 PST 2010


On Nov 23, 2010, at 3:23 AM, Rafael Espindola wrote:

> Author: rafael
> Date: Tue Nov 23 05:23:24 2010
> New Revision: 120017
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=120017&view=rev
> Log:
> Implement the rex64 prefix.

Nice!  Testcase please,

-Chris

> 
> Modified:
>    llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
>    llvm/trunk/lib/Target/X86/X86InstrInfo.td
> 
> Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=120017&r1=120016&r2=120017&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
> +++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Tue Nov 23 05:23:24 2010
> @@ -707,7 +707,8 @@
>   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
> 
> Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=120017&r1=120016&r2=120017&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
> +++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Tue Nov 23 05:23:24 2010
> @@ -1144,6 +1144,9 @@
> // 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 {
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list