2011-10-17 05:20:54 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux -march=x86 | FileCheck %s
|
2010-01-24 08:24:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
define void @t(<2 x i64>* %dst, <2 x i64> %src1, <2 x i64> %src2) nounwind readonly {
|
2011-10-17 04:31:33 +08:00
|
|
|
; CHECK: pandn
|
2010-01-24 08:24:43 +08:00
|
|
|
%cmp1 = icmp ne <2 x i64> %src1, zeroinitializer
|
|
|
|
%cmp2 = icmp ne <2 x i64> %src2, zeroinitializer
|
|
|
|
%t1 = and <2 x i1> %cmp1, %cmp2
|
|
|
|
%t2 = sext <2 x i1> %t1 to <2 x i64>
|
|
|
|
store <2 x i64> %t2, <2 x i64>* %dst
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @t2(<3 x i64>* %dst, <3 x i64> %src1, <3 x i64> %src2) nounwind readonly {
|
2011-10-17 04:31:33 +08:00
|
|
|
; CHECK-NOT: pandn
|
2010-01-24 08:24:43 +08:00
|
|
|
%cmp1 = icmp ne <3 x i64> %src1, zeroinitializer
|
|
|
|
%cmp2 = icmp ne <3 x i64> %src2, zeroinitializer
|
|
|
|
%t1 = and <3 x i1> %cmp1, %cmp2
|
|
|
|
%t2 = sext <3 x i1> %t1 to <3 x i64>
|
|
|
|
store <3 x i64> %t2, <3 x i64>* %dst
|
|
|
|
ret void
|
|
|
|
}
|