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)
commit46f91c8457d7145d1b398e683f2e525857aee35c
tree0e8eb8dc508035aa56ad983c5a25636f5e376372
parent67d81c8a77146ea479f64284022b018963269c58
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

llvm-svn: 242040
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/inline-asm-bad-constraint-n.ll [new file with mode: 0644]