summaryrefslogtreecommitdiff
path: root/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll
blob: fd5495445b7952a85df60ad65596b5c4435342ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
; RUN: opt < %s -constprop -disable-output
; PR2529
define <4 x i1> @test1(i32 %argc, i8** %argv) {
entry:  
        %foo = icmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
        ret <4 x i1> %foo
}

define <4 x i1> @test2(i32 %argc, i8** %argv) {
entry:  
        %foo = icmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
        ret <4 x i1> %foo
}


define <4 x i1> @test3() {
       %foo = fcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float
undef>, <float 1.0, float 1.0, float 1.0, float undef>
	ret <4 x i1> %foo
}

define <4 x i1> @test4() {
	%foo = fcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float 0.0>, <float 1.0, float 1.0, float 1.0, float 0.0>

	ret <4 x i1> %foo
}