X86: gate all vmovsh instructions on FP16 support.
authorTim Northover <tnorthover@apple.com>
Mon, 7 Feb 2022 11:19:59 +0000 (11:19 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 9 Feb 2022 12:29:16 +0000 (12:29 +0000)
commit3fc40b6e6628cd3206d5aaf2bfb864add7d74fe1
tree42a1130ae2c2db9d1b009efaa79b5a754b59869e
parentdb28a45617be87952c6ad7b2092da270d72048e7
X86: gate all vmovsh instructions on FP16 support.

Previously the `let Predicates = ...` line only applied to the rr version, and
so VMOVSH was being emitted whenever HasAVX512 (the default) applied. This is
not right.
llvm/lib/Target/X86/X86InstrAVX512.td