[AVX-512] Add a test case to show that we don't select masked vpermi2ps when the...
authorCraig Topper <craig.topper@gmail.com>
Tue, 6 Sep 2016 05:45:27 +0000 (05:45 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 6 Sep 2016 05:45:27 +0000 (05:45 +0000)
commitcf9f1b8dfa39bc1be5258157170c7b92bcdf069d
tree410990a2efad54eb2e2f29158e0fbbe7f29ae5a8
parent43fbd840ddb2f2678e34bb6ed1dac1d408d4c3d2
[AVX-512] Add a test case to show that we don't select masked vpermi2ps when the index operand comes from a bitcast.

It doesn't work because we're looking for a bitcast from the v4i32 index operand to v4f32 for the passthru part of the DAG. But since the index is bitcasted from v2i64 and bitcasts fold, we actually have a bitcast from v2i64 to v4f32 in the passthru part of the DAG.

Taken from optimized output from clang's test case.

llvm-svn: 280695
llvm/test/CodeGen/X86/avx512vl-intrinsics.ll