]> granicus.if.org Git - clang/commit
[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)
commit348a1f4ce3915fdcba1502e1f9bac0b6a81b77c4
tree07c64c0f4d28a071c4afb90b86a87e0247c08b18
parentb8dba12f61f0247816056e99629806ab3cb585bb
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283716 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/CodeGen/x86-inline-asm-v-constraint.c [new file with mode: 0644]