Check that the input size is correct for the given constraint.
authorBill Wendling <isanbard@gmail.com>
Mon, 12 Nov 2012 06:42:51 +0000 (06:42 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 12 Nov 2012 06:42:51 +0000 (06:42 +0000)
commit887b485dbe3dec6fb0387cf80c0e79f02bc7201d
tree22715c6291ab527da45b3e75c149743551bccf20
parentb41000ed70a0699215399f8b17bf2d9526e74c56
Check that the input size is correct for the given constraint.

The 'a', 'c', and 'd' constraints on i386 mean a 32-bit register. We cannot
place a 64-bit value into the 32-bit register. Error out instead of causing the
compiler to spew general badness.
<rdar://problem/12415959>

llvm-svn: 167717
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/TargetInfo.h
clang/lib/Basic/Targets.cpp
clang/lib/Sema/SemaStmtAsm.cpp
clang/test/CodeGen/x86_32-inline-asm.c [new file with mode: 0644]