[x86][inline-asm][clang] accept 'v' constraint
authorMichael Zuckerman <Michael.zuckerman@intel.com>
Tue, 1 Nov 2016 13:16:44 +0000 (13:16 +0000)
committerMichael Zuckerman <Michael.zuckerman@intel.com>
Tue, 1 Nov 2016 13:16:44 +0000 (13:16 +0000)
commit62f516f5906f967179610a73e4cc1d852b908bbd
treed5c9a1899e106fbde43cc5c8c92d6598d93c28ba
parentc96da1100dc65fb751832f097e0165b8133d4d3c
[x86][inline-asm][clang] accept 'v' constraint
Commit on behalf of: Coby Tayree

1.'v' constraint for (x86) non-avx arch imitates the already implemented 'x' constraint, i.e. allows XMM{0-15} & YMM{0-15} depending on the apparent arch & mode (32/64).
2.for the avx512 arch it allows [X,Y,Z]MM{0-31} (mode dependent)

This patch applies the needed changes to clang
LLVM patch: https://reviews.llvm.org/D25005

Differential Revision: https://reviews.llvm.org/D25005

llvm-svn: 285688
clang/lib/Basic/Targets.cpp
clang/test/CodeGen/x86-inline-asm-v-constraint.c [new file with mode: 0644]