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

Change-Id: I4a67b116d691dea0ef12a88b5c4aeb43b1062b09