summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/inline-asm-A-constraint.ll
Commit message (Collapse)AuthorAgeFilesLines
* Allow usage of X86-prefixes as separate instrs.Andrew V. Tischenko2018-01-171-1/+2
| | | | | | Differential Revision: https://reviews.llvm.org/D42102 llvm-svn: 322623
* Fix for Bug 34475 - LOCK/REP/REPNE prefixes emitted as instruction on their own.Andrew V. Tischenko2017-11-031-2/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D39546 llvm-svn: 317330
* Use correct registers for "A" inline asm constraintDimitry Andric2017-04-151-0/+35
Summary: In PR32594, inline assembly using the 'A' constraint on x86_64 causes llvm to crash with a "Cannot select" stack trace. This is because `X86TargetLowering::getRegForInlineAsmConstraint` hardcodes that 'A' means the EAX and EDX registers. However, on x86_64 it means the RAX and RDX registers, and on 16-bit x86 (ia16?) it means the old AX and DX registers. Add new register classes in `X86RegisterInfo.td` to support these cases, and amend the logic in `getRegForInlineAsmConstraint` to cope with different subtargets. Also add a test case, derived from PR32594. Reviewers: craig.topper, qcolombet, RKSimon, ab Reviewed By: ab Subscribers: ab, emaste, royger, llvm-commits Differential Revision: https://reviews.llvm.org/D31902 llvm-svn: 300404
OpenPOWER on IntegriCloud