From: Anton Korobeynikov Date: Tue, 22 Jul 2008 16:22:48 +0000 (+0000) Subject: Fix encoding of atomic compare and swap for i64 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f88a6faf930511ce1272c4b1fca1e0ffbd97c4d2;p=oota-llvm.git Fix encoding of atomic compare and swap for i64 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53911 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index 7a4e796cadb..4f3a3af0f97 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -2594,7 +2594,7 @@ def LCMPXCHG32 : I<0xB1, MRMDestMem, (outs), (ins i32mem:$ptr, GR32:$swap), [(X86cas addr:$ptr, GR32:$swap, 4)]>, TB, LOCK; } let Defs = [EAX, EBX, ECX, EDX, EFLAGS], Uses = [EAX, EBX, ECX, EDX] in { -def LCMPXCHG8B : I<0xC7, MRMDestMem, (outs), (ins i32mem:$ptr), +def LCMPXCHG8B : I<0xC7, MRM1m, (outs), (ins i32mem:$ptr), "lock cmpxchg8b\t$ptr", [(X86cas8 addr:$ptr)]>, TB, LOCK; }