[PATCH] D13869: instruction 'align' in asm blocks works incorrectly with some cases of parameters

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 22 13:19:31 PDT 2015


rnk added a comment.

In your example, the user is writing MS-style inline asm, but the output of the compiler should be Darwin-style asm. The GNU-inline asm parts should be using log2 numbers on Darwin, not alignment-in-bytes numbers. The native Darwin assembler is going to interpret all .align directives as log2 values.

Do you see why we should make the log2 rewrite conditional on MCAsmInfo::getAlignmentIsInBytes()?


http://reviews.llvm.org/D13869





More information about the llvm-commits mailing list