diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-05-12 22:48:24 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-05-12 22:48:24 +0000 |
| commit | e132b0a92cdcd6648eab6b1116e00438f8d15e2b (patch) | |
| tree | 17ab802793d4db361a225daed12e01855bbe99ab /llvm/lib/Target | |
| parent | d55fd111d1bbd102d73cdd5b5d3d999239028654 (diff) | |
| download | bcm5719-llvm-e132b0a92cdcd6648eab6b1116e00438f8d15e2b.tar.gz bcm5719-llvm-e132b0a92cdcd6648eab6b1116e00438f8d15e2b.zip | |
fix the encoding of the obscure "moffset" forms of moves, i386
part first. rdar://7947184
llvm-svn: 103660
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.td | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 4bb8cd2425b..fc33ba98913 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -966,16 +966,17 @@ def MOV32mi : Ii32<0xC7, MRM0m, (outs), (ins i32mem:$dst, i32imm:$src), "mov{l}\t{$src, $dst|$dst, $src}", [(store (i32 imm:$src), addr:$dst)]>; -def MOV8o8a : Ii8 <0xA0, RawFrm, (outs), (ins offset8:$src), +/// moffs8, moffs16, moffs32 and moffs64 versions of moves. The immediate is a +/// 32-bit offset from the PC. +def MOV8o8a : Ii32 <0xA0, RawFrm, (outs), (ins offset8:$src), "mov{b}\t{$src, %al|%al, $src}", []>; -def MOV16o16a : Ii16 <0xA1, RawFrm, (outs), (ins offset16:$src), +def MOV16o16a : Ii32 <0xA1, RawFrm, (outs), (ins offset16:$src), "mov{w}\t{$src, %ax|%ax, $src}", []>, OpSize; def MOV32o32a : Ii32 <0xA1, RawFrm, (outs), (ins offset32:$src), "mov{l}\t{$src, %eax|%eax, $src}", []>; - -def MOV8ao8 : Ii8 <0xA2, RawFrm, (outs offset8:$dst), (ins), +def MOV8ao8 : Ii32 <0xA2, RawFrm, (outs offset8:$dst), (ins), "mov{b}\t{%al, $dst|$dst, %al}", []>; -def MOV16ao16 : Ii16 <0xA3, RawFrm, (outs offset16:$dst), (ins), +def MOV16ao16 : Ii32 <0xA3, RawFrm, (outs offset16:$dst), (ins), "mov{w}\t{%ax, $dst|$dst, %ax}", []>, OpSize; def MOV32ao32 : Ii32 <0xA3, RawFrm, (outs offset32:$dst), (ins), "mov{l}\t{%eax, $dst|$dst, %eax}", []>; |

