[PATCH] Diagnose incompatible MMX asm constraints

Tim Northover tnorthover at apple.com
Thu Jun 6 16:02:33 PDT 2013


Hi,

The attached patch fixes an issue where Clang would try to create a bitcast from “<8 x i32>” to “x86_mmx” which has a different size. This caused an assertion failure on malformed inline assembly.

The problem seems to come from the unexpected behaviour of the adjustInlineAsmType, and this patch alters it slightly to report incompatible cases and allow the CodeGen to issue a proper diagnostic.

Is it OK to commit or have I done something wrong?

Cheers.

Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmx-inline-error.diff
Type: application/octet-stream
Size: 4848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130606/46621bb2/attachment.obj>


More information about the cfe-commits mailing list