fix incorrect encoding of SBB8mi that Kevin noticed.

llvm-svn: 95448
This commit is contained in:
Chris Lattner 2010-02-05 22:56:11 +00:00
parent d320e03eed
commit 9d624778a3
2 changed files with 6 additions and 3 deletions

View File

@ -3028,8 +3028,8 @@ let isTwoAddress = 0 in {
def SBB32mr : I<0x19, MRMDestMem, (outs), (ins i32mem:$dst, GR32:$src2),
"sbb{l}\t{$src2, $dst|$dst, $src2}",
[(store (sube (load addr:$dst), GR32:$src2), addr:$dst)]>;
def SBB8mi : Ii32<0x80, MRM3m, (outs), (ins i8mem:$dst, i8imm:$src2),
"sbb{b}\t{$src2, $dst|$dst, $src2}",
def SBB8mi : Ii8<0x80, MRM3m, (outs), (ins i8mem:$dst, i8imm:$src2),
"sbb{b}\t{$src2, $dst|$dst, $src2}",
[(store (sube (loadi8 addr:$dst), imm:$src2), addr:$dst)]>;
def SBB16mi : Ii16<0x81, MRM3m, (outs), (ins i16mem:$dst, i16imm:$src2),
"sbb{w}\t{$src2, $dst|$dst, $src2}",

View File

@ -1,5 +1,8 @@
// RUN: llvm-mc -triple i386-unknown-unknown %s -show-encoding | FileCheck %s
fisttpl 3735928559(%ebx,%ecx,8)
# CHECK: encoding: [0xdb,0x8c,0xcb,0xef,0xbe,0xad,0xde]
sbbb $0xfe,0xdeadbeef(%ebx,%ecx,8)
# CHECK: encoding: [0x80,0x9c,0xcb,0xef,0xbe,0xad,0xde,0xfe]