Fix PR11422.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 23 Nov 2011 04:03:08 +0000 (04:03 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 23 Nov 2011 04:03:08 +0000 (04:03 +0000)
commit7f5e43f61d3b28a03537c29156b0bad7dd3476e4
tree5d4649954211d209bfeb4ab9cfe5b622b6313f35
parent60e06d6ac2b9943537e2e22c3dfc324ae71b23e3
Fix PR11422.

This was a bug in keeping track of the available domains when merging
domain values.

The wrong domain mask caused ExecutionDepsFix to try to move VANDPSYrr
to the integer domain which is only available in AVX2.

Also add an assertion to catch future attempts at emitting AVX2
instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145096 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ExecutionDepsFix.cpp
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/2011-11-22-AVX2-Domains.ll [new file with mode: 0644]