[llvm-commits] [llvm] r168687 - /llvm/trunk/test/CodeGen/X86/sse2-blend.ll
Craig Topper
craig.topper at gmail.com
Tue Nov 27 00:17:04 PST 2012
Author: ctopper
Date: Tue Nov 27 02:17:04 2012
New Revision: 168687
URL: http://llvm.org/viewvc/llvm-project?rev=168687&view=rev
Log:
Revert accidental commit.
Modified:
llvm/trunk/test/CodeGen/X86/sse2-blend.ll
Modified: llvm/trunk/test/CodeGen/X86/sse2-blend.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse2-blend.ll?rev=168687&r1=168686&r2=168687&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse2-blend.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse2-blend.ll Tue Nov 27 02:17:04 2012
@@ -1,5 +1,47 @@
; RUN: llc < %s -march=x86 -mcpu=yonah -mattr=+sse2,-sse41 | FileCheck %s
+; CHECK: vsel_float
+; CHECK: pandn
+; CHECK: pand
+; CHECK: por
+; CHECK: ret
+define void at vsel_float(<4 x float>* %v1, <4 x float>* %v2) {
+ %A = load <4 x float>* %v1
+ %B = load <4 x float>* %v2
+ %vsel = select <4 x i1> <i1 true, i1 false, i1 false, i1 false>, <4 x float> %A, <4 x float> %B
+ store <4 x float > %vsel, <4 x float>* %v1
+ ret void
+}
+
+; CHECK: vsel_i32
+; CHECK: pandn
+; CHECK: pand
+; CHECK: por
+; CHECK: ret
+define void at vsel_i32(<4 x i32>* %v1, <4 x i32>* %v2) {
+ %A = load <4 x i32>* %v1
+ %B = load <4 x i32>* %v2
+ %vsel = select <4 x i1> <i1 true, i1 false, i1 false, i1 false>, <4 x i32> %A, <4 x i32> %B
+ store <4 x i32 > %vsel, <4 x i32>* %v1
+ ret void
+}
+
+; Without forcing instructions, fall back to the preferred PS domain.
+; CHECK: vsel_i64
+; CHECK: xorps
+; CHECK: andps
+; CHECK: andnps
+; CHECK: orps
+; CHECK: ret
+
+define void at vsel_i64(<4 x i64>* %v1, <4 x i64>* %v2) {
+ %A = load <4 x i64>* %v1
+ %B = load <4 x i64>* %v2
+ %vsel = select <4 x i1> <i1 true, i1 false, i1 false, i1 false>, <4 x i64> %A, <4 x i64> %B
+ store <4 x i64 > %vsel, <4 x i64>* %v1
+ ret void
+}
+
; Without forcing instructions, fall back to the preferred PS domain.
; CHECK: vsel_double
; CHECK: xorps
More information about the llvm-commits
mailing list