summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2011-12-28-vselecti8.ll
diff options
context:
space:
mode:
authorNadav Rotem <nadav.rotem@intel.com>2012-01-02 08:05:46 +0000
committerNadav Rotem <nadav.rotem@intel.com>2012-01-02 08:05:46 +0000
commita46f35d3d65425af5eaaaf906fca240a33d6c362 (patch)
treecbe1de0c9521b4a7bef38d6733365f4c72ab619b /test/CodeGen/X86/2011-12-28-vselecti8.ll
parent47f79bb58e42f1a08a7f388b8b1596ded7d49bbb (diff)
downloadllvm-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.ll6
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: