Though using llvm-mc followed by llvm-readobj isn't really sufficient here, since we need to test a longer path. Something like llc with integrated-asm producing a .o and then using llvm-readobj. I haven't tried to write a test like that. http://reviews.llvm.org/D6209