• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -constprop -disable-output
2; PR2529
3define <4 x i1> @test1(i32 %argc, i8** %argv) {
4entry:
5        %foo = icmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
6        ret <4 x i1> %foo
7}
8
9define <4 x i1> @test2(i32 %argc, i8** %argv) {
10entry:
11        %foo = icmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
12undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
13        ret <4 x i1> %foo
14}
15
16
17define <4 x i1> @test3() {
18       %foo = fcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float
19undef>, <float 1.0, float 1.0, float 1.0, float undef>
20	ret <4 x i1> %foo
21}
22
23define <4 x i1> @test4() {
24	%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>
25
26	ret <4 x i1> %foo
27}
28
29