diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-24 18:31:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-24 18:31:00 +0000 |
commit | 197aa9634e94300e3ee7bf4f7b6b55ab3428381f (patch) | |
tree | 614a7ef6186f1416e40a3e7e7b9a69740ca19fa6 | |
parent | f6487ec894f7431c68d22ef68251e30827e074a0 (diff) | |
download | bcm5719-llvm-197aa9634e94300e3ee7bf4f7b6b55ab3428381f.tar.gz bcm5719-llvm-197aa9634e94300e3ee7bf4f7b6b55ab3428381f.zip |
Fix a misencoding of CBW and CWD. This fixes PR1030.
llvm-svn: 33486
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 605e1781774..8518e67337a 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -2394,12 +2394,12 @@ def MOVZX32rm16: I<0xB7, MRMSrcMem, (ops GR32:$dst, i16mem:$src), [(set GR32:$dst, (zextloadi32i16 addr:$src))]>, TB; def CBW : I<0x98, RawFrm, (ops), - "{cbtw|cbw}", []>, Imp<[AL],[AX]>; // AX = signext(AL) + "{cbtw|cbw}", []>, Imp<[AL],[AX]>, OpSize; // AX = signext(AL) def CWDE : I<0x98, RawFrm, (ops), "{cwtl|cwde}", []>, Imp<[AX],[EAX]>; // EAX = signext(AX) def CWD : I<0x99, RawFrm, (ops), - "{cwtd|cwd}", []>, Imp<[AX],[AX,DX]>; // DX:AX = signext(AX) + "{cwtd|cwd}", []>, Imp<[AX],[AX,DX]>, OpSize; // DX:AX = signext(AX) def CDQ : I<0x99, RawFrm, (ops), "{cltd|cdq}", []>, Imp<[EAX],[EAX,EDX]>; // EDX:EAX = signext(EAX) |