[X86] Allow Yz inline assembly constraint to choose ymm0 or zmm0 when avx/avx512...
authorCraig Topper <craig.topper@gmail.com>
Wed, 6 May 2020 02:47:39 +0000 (19:47 -0700)
committerCraig Topper <craig.topper@gmail.com>
Wed, 6 May 2020 04:12:30 +0000 (21:12 -0700)
commit0fac1c19128106b6d65d349a5ed22fedacab520c
tree8ff2e087f0517e2e194fa271e067d1f2aa602843
parent0c4aab27b3da05dd1b0c0c39472525325fda5e23
[X86] Allow Yz inline assembly constraint to choose ymm0 or zmm0 when avx/avx512 are enabled and type is 256 or 512 bits

gcc supports selecting ymm0/zmm0 for the Yz constraint when used with 256 or 512 bit vector types.

Fixes PR45806

Differential Revision: https://reviews.llvm.org/D79448
clang/lib/Basic/Targets/X86.cpp
clang/test/CodeGen/x86-inline-asm-v-constraint.c
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/inline-asm-avx-v-constraint.ll
llvm/test/CodeGen/X86/inline-asm-avx512f-v-constraint.ll