[X86] Add test case that shows a scalar sqrtsd intrinsic of a 128-bit vector load...
authorCraig Topper <craig.topper@gmail.com>
Tue, 6 Dec 2016 08:08:01 +0000 (08:08 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 6 Dec 2016 08:08:01 +0000 (08:08 +0000)
commit125939ff65b8f5832342dbccb590cf111f9fff27
tree8765679696681a25ecf52271af73c2d726e15634
parent5fc7bc91f9ad23b1ec1471186ff0603369ca6563
[X86] Add test case that shows a scalar sqrtsd intrinsic of a 128-bit vector load using the load form of the sqrtsd instruction which violates the intrinsic semantics.

The sqrtsd instruction only loads 64-bits and writes bits 63:0 with the sqrt result. Bits 127:64 are preserved in the destination register. The semantics of the intrinsic indicate bits 127:64 should come from the intrinsic argument which in this case is a 128-bit load. So the generated code should have a 128-bit load and use a register form of sqrtsd.

llvm-svn: 288780
llvm/test/CodeGen/X86/sse2-intrinsics-x86.ll