Make sure x86 ATOMIC_CAS doesn't overwrite its own operands.
commit9f363d6e6149a803369bd5c9d519bf8b670c6304
authorMark Probst <mark.probst@gmail.com>
Wed, 11 Mar 2009 14:15:49 +0000 (11 14:15 -0000)
committerMark Probst <mark.probst@gmail.com>
Wed, 11 Mar 2009 14:15:49 +0000 (11 14:15 -0000)
tree88e8a8288209f755b1e379bf07765d61fca4ed40
parent9259c423b0a20a96ebcaf8f55ab1ced9ceb8e80d
Make sure x86 ATOMIC_CAS doesn't overwrite its own operands.

2009-03-11  Mark Probst  <mark.probst@gmail.com>

* mini-x86.c (mono_arch_output_basic_block): Use different
registers in case the ones we want to overwrite are used by the
other operand.  Fixes regression in #480807.

svn path=/trunk/mono/; revision=129058
mono/mini/ChangeLog
mono/mini/mini-x86.c