summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_compare.ll
blob: 7a8dfd68cfd2fd25270c2731ec30dcd19cfdbc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | grep pcmpgtd

define <4 x i32> @test(<4 x i32> %A, <4 x i32> %B) nounwind {
	%C = vicmp sgt <4 x i32> %A, %B
	ret <4 x i32> %C
}


define <4 x i32> @test2(<4 x i32> %A, <4 x i32> %B) nounwind {
	%C = icmp sgt <4 x i32> %A, %B
        %D = sext <4 x i1> %C to <4 x i32>
	ret <4 x i32> %D
}