Atomic review2

This is a second pull request that includes powerpc architecture atomic support and seven test cases.