[x86][inline-asm][clang] accept 'v' constraint
authorMichael Zuckerman <Michael.zuckerman@intel.com>
Mon, 10 Oct 2016 05:45:54 +0000 (05:45 +0000)
committerMichael Zuckerman <Michael.zuckerman@intel.com>
Mon, 10 Oct 2016 05:45:54 +0000 (05:45 +0000)
commitfe2b9b4fbf860e3dc7da7705f548bc8d7b6ab9c1
treeeddf18b8b623589e2968dbc947a6bc953a931757
parentac473034fc771e5f1b4ef0ac405df70ed27412a1
[x86][inline-asm][clang] accept 'v' constraint

Commit in the name 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: D25004

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