[X86] Add test case demonstrating a case where a vector sqrt being passed (scalar_to_...
authorCraig Topper <craig.topper@gmail.com>
Tue, 6 Dec 2016 08:08:09 +0000 (08:08 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 6 Dec 2016 08:08:09 +0000 (08:08 +0000)
commit26ce4267ef3023ac3d97f93c1f205f91d018ff40
tree424db90a2a152718bdc899cb127dfeeda2165015
parentaa2c38378cfd2c1b018e61291bac74e2bbbd7c4e
[X86] Add test case demonstrating a case where a vector sqrt being passed (scalar_to_vector loadf64) uses a scalar sqrt instruction.

This occurs due to a pattern that uses sse_load_f32/f64 with vector sqrt/rcp/rsqrt operations and turns them into scalar instructions. Perhaps for the case were the upper bits come from undef this is ok.  I believe a (vzmovl load64) would do the same thing but those seems to become vzload instead and selectScalarSSELoad doesn't handle that today. In that case we should be performing the vector operation on the zeros in the upper bits which is not equivalent to using a scalar instruction.

I will remove this pattern in a follow up patch. There appears to be no other test content for it.

llvm-svn: 288783
llvm/test/CodeGen/X86/avx-arith.ll