x86: Add assembler tests and clean up style.
am: 1b3561a157

Change-Id: Ibf4815c274fdb072152b0c0ac8daddd0fc42404f