mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-03 08:07:51 +00:00
[X86] Fix a bug in LOCK arithmetic operation pattern matching where the wrong immediate predicate check was being used for 64-bit instructions with 8-bit immediates.
This didn't cause a bug because the order of the patterns ensured that the 64-bit instructions with 32-bit immediates were selected first. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b82d79cb21
commit
a926dab069
@ -671,7 +671,7 @@ def NAME#64mi8 : RIi8<{ImmOpc8{7}, ImmOpc8{6}, ImmOpc8{5}, ImmOpc8{4},
|
||||
ImmMod, (outs), (ins i64mem :$dst, i64i8imm :$src2),
|
||||
!strconcat(mnemonic, "{q}\t",
|
||||
"{$src2, $dst|$dst, $src2}"),
|
||||
[(set EFLAGS, (Op addr:$dst, i64immSExt32:$src2))],
|
||||
[(set EFLAGS, (Op addr:$dst, i64immSExt8:$src2))],
|
||||
IIC_ALU_MEM>, LOCK;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user