Fix handling of the 'n' asm constraint with invalid operands.
authorJames Y Knight <jyknight@google.com>
Mon, 13 Jul 2015 16:36:22 +0000 (16:36 +0000)
committerJames Y Knight <jyknight@google.com>
Mon, 13 Jul 2015 16:36:22 +0000 (16:36 +0000)
commitaf8cf90e2f580838d96498f470b02d9449a32dfe
treeb4c0813f5ad5d46fb8ab20104961b28b7f834451
parentf5be357d37b40602ad91fd6d77c855df8bb029fd
Fix handling of the 'n' asm constraint with invalid operands.

It had accidently accepted a symbol+offset value (and emitted
incorrect code for it, keeping only the offset part) instead of
properly reporting the constraint as invalid.

Differential Revision: http://reviews.llvm.org/D11039

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242040 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/inline-asm-bad-constraint-n.ll [new file with mode: 0644]