[llvm-commits] [PATCH] Fix operand ordering for atomicrmw min/max on ARM

James Molloy james.molloy at arm.com
Fri Sep 21 03:25:23 PDT 2012


Currently, the code sequences emitted for atomicrmw {umin,umax,min,max}
on ARM are incorrect, because the operands for one of the constituent
instructions are emitted in the wrong order. This causes min to behave
like max and vice versa.

The attached trivial patch fixes this, and adds some better testing to
check for regression.

OK to commit?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: atomicrmw_minmax.diff
Type: text/x-patch
Size: 1769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120921/9e4be82d/attachment.bin>

More information about the llvm-commits mailing list