[llvm] r187471 - Fixed incorrect disassembly for MOV16o16a when using Intel syntax.

Craig Topper craig.topper at gmail.com
Tue Jul 30 18:50:26 PDT 2013


Author: ctopper
Date: Tue Jul 30 20:50:26 2013
New Revision: 187471

URL: http://llvm.org/viewvc/llvm-project?rev=187471&view=rev
Log:
Fixed incorrect disassembly for MOV16o16a when using Intel syntax.

Patch by Richard Mitton.


Modified:
    llvm/trunk/lib/Target/X86/X86InstrInfo.td

Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=187471&r1=187470&r2=187471&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Tue Jul 30 20:50:26 2013
@@ -1079,7 +1079,7 @@ def MOV8o8a : Ii32 <0xA0, RawFrm, (outs)
                    "mov{b}\t{$src, %al|AL, $src}", [], IIC_MOV_MEM>,
                    Requires<[In32BitMode]>;
 def MOV16o16a : Ii32 <0xA1, RawFrm, (outs), (ins offset16:$src),
-                      "mov{w}\t{$src, %ax|AL, $src}", [], IIC_MOV_MEM>, OpSize,
+                      "mov{w}\t{$src, %ax|AX, $src}", [], IIC_MOV_MEM>, OpSize,
                      Requires<[In32BitMode]>;
 def MOV32o32a : Ii32 <0xA1, RawFrm, (outs), (ins offset32:$src),
                       "mov{l}\t{$src, %eax|EAX, $src}", [], IIC_MOV_MEM>,
@@ -1088,7 +1088,7 @@ def MOV8ao8 : Ii32 <0xA2, RawFrm, (outs
                    "mov{b}\t{%al, $dst|$dst, AL}", [], IIC_MOV_MEM>,
                   Requires<[In32BitMode]>;
 def MOV16ao16 : Ii32 <0xA3, RawFrm, (outs offset16:$dst), (ins),
-                      "mov{w}\t{%ax, $dst|$dst, AL}", [], IIC_MOV_MEM>, OpSize,
+                      "mov{w}\t{%ax, $dst|$dst, AX}", [], IIC_MOV_MEM>, OpSize,
                      Requires<[In32BitMode]>;
 def MOV32ao32 : Ii32 <0xA3, RawFrm, (outs offset32:$dst), (ins),
                       "mov{l}\t{%eax, $dst|$dst, EAX}", [], IIC_MOV_MEM>,





More information about the llvm-commits mailing list