add support for legalizing an icmp where the result is illegal (4xi1) but
[oota-llvm.git] / test / CodeGen / X86 / vec_compare.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep pcmpgtd
2
3 define <4 x i32> @test(<4 x i32> %A, <4 x i32> %B) nounwind {
4         %C = vicmp sgt <4 x i32> %A, %B
5         ret <4 x i32> %C
6 }
7
8
9 define <4 x i32> @test2(<4 x i32> %A, <4 x i32> %B) nounwind {
10         %C = icmp sgt <4 x i32> %A, %B
11         %D = sext <4 x i1> %C to <4 x i32>
12         ret <4 x i32> %D
13 }
14