diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2012-01-02 08:05:46 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2012-01-02 08:05:46 +0000 |
commit | a46f35d3d65425af5eaaaf906fca240a33d6c362 (patch) | |
tree | cbe1de0c9521b4a7bef38d6733365f4c72ab619b /test/CodeGen/X86/2011-12-28-vselecti8.ll | |
parent | 47f79bb58e42f1a08a7f388b8b1596ded7d49bbb (diff) | |
download | llvm-a46f35d3d65425af5eaaaf906fca240a33d6c362.tar.gz llvm-a46f35d3d65425af5eaaaf906fca240a33d6c362.tar.bz2 llvm-a46f35d3d65425af5eaaaf906fca240a33d6c362.tar.xz |
Optimize the sequence blend(sign_extend(x)) to blend(shl(x)) since SSE blend instructions only look at the highest bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2011-12-28-vselecti8.ll')
-rw-r--r-- | test/CodeGen/X86/2011-12-28-vselecti8.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGen/X86/2011-12-28-vselecti8.ll b/test/CodeGen/X86/2011-12-28-vselecti8.ll index dbc122ac6e..fc1b83b222 100644 --- a/test/CodeGen/X86/2011-12-28-vselecti8.ll +++ b/test/CodeGen/X86/2011-12-28-vselecti8.ll @@ -5,8 +5,10 @@ target triple = "x86_64-apple-darwin11.2.0" ; CHECK: @foo8 ; CHECK: psll -; CHECK: psraw -; CHECK: pblendvb +; CHECK-NOT: sra +; CHECK: pandn +; CHECK: pand +; CHECK: or ; CHECK: ret define void @foo8(float* nocapture %RET) nounwind { allocas: |