This is pretty cool. Thanks for implementing it.
I am not familiar with this code so I don't want to approve the patch, but the functionality that the test case shows is pretty cool.
Also, will this provide any diagnostics/suggestions for inline assembly? If so, it would be good to add that test case as well.