Fix PR14314
authorMichael Liao <michael.liao@intel.com>
Mon, 12 Nov 2012 06:49:17 +0000 (06:49 +0000)
committerMichael Liao <michael.liao@intel.com>
Mon, 12 Nov 2012 06:49:17 +0000 (06:49 +0000)
commitdd3383fd09b93a1b2d0cebb57f22e5aaf3eaa740
treed8bb3d8bc8434f678f931f77e49b510143f26cde
parent8ee3963409097ba9f7717c325ae6ebd821bc965b
Fix PR14314

- Fix operand order for atomic sub, where the minuend is the value
  loaded from memory and the subtrahend is the parameter specified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167718 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/2010-01-08-Atomic64Bug.ll
test/CodeGen/X86/pr14314.ll [new file with mode: 0644]