[PATCH] D20067: Error if inline assembly ends in unexpected mode

Nirav Dave via llvm-commits llvm-commits at lists.llvm.org
Wed May 11 08:23:31 PDT 2016


niravd added a comment.

> https://llvm.org/bugs/show_bug.cgi?id=18231


Ahha. So gcc will insert .code 16 after inline assembly calls when called form thumb mode, but nothing for inline asm in arm mode (hence my confusion). Presumably this is because the textual thumb assembly language is a subset of the arm assembly language correct code is always generated. It should probably be left as is.

Regardless this does not happen in gcc's X86 compilation for any mode, so throwing an error here seems reasonable.


http://reviews.llvm.org/D20067





More information about the llvm-commits mailing list