OSDN Git Service

[x86] add an SSE2 + fast-unaligned accesses run for memset nonzero tests
authorSanjay Patel <spatel@rotateright.com>
Fri, 1 Apr 2016 18:29:25 +0000 (18:29 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 1 Apr 2016 18:29:25 +0000 (18:29 +0000)
commit31624e427512dad98814980d67895c54c4c7d277
treef1534295006325574f735f40e844175d1fbe9806
parent22b6378a9f87e7bc4a7ee5f32bd8fbe04b1f52d8
[x86] add an SSE2 + fast-unaligned accesses run for memset nonzero tests

Was there really no other way to splat a byte in SSE2?
    punpcklbw {{.*#+}} xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
    pshuflw {{.*#+}} xmm0 = xmm0[0,0,0,0,4,5,6,7]
    pshufd {{.*#+}} xmm0 = xmm0[0,0,1,1]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265172 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/memset-nonzero.ll