1 ; RUN: llc < %s -march=x86 -mcpu=nehalem | FileCheck %s
3 define <4 x i32> @signd(<4 x i32> %a, <4 x i32> %b) nounwind {
9 %b.lobit = ashr <4 x i32> %b, <i32 31, i32 31, i32 31, i32 31>
10 %sub = sub nsw <4 x i32> zeroinitializer, %a
11 %0 = xor <4 x i32> %b.lobit, <i32 -1, i32 -1, i32 -1, i32 -1>
12 %1 = and <4 x i32> %a, %0
13 %2 = and <4 x i32> %b.lobit, %sub
14 %cond = or <4 x i32> %1, %2
18 define <4 x i32> @blendvb(<4 x i32> %b, <4 x i32> %a, <4 x i32> %c) nounwind {
23 %b.lobit = ashr <4 x i32> %b, <i32 31, i32 31, i32 31, i32 31>
24 %sub = sub nsw <4 x i32> zeroinitializer, %a
25 %0 = xor <4 x i32> %b.lobit, <i32 -1, i32 -1, i32 -1, i32 -1>
26 %1 = and <4 x i32> %c, %0
27 %2 = and <4 x i32> %a, %b.lobit
28 %cond = or <4 x i32> %1, %2