blob: fd5495445b7952a85df60ad65596b5c4435342ba [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -constprop -disable-output
Chris Lattnerd137a082008-07-08 05:46:34 +00002; PR2529
Nick Lewyckya21d3da2009-07-08 03:04:38 +00003define <4 x i1> @test1(i32 %argc, i8** %argv) {
Chris Lattnerd137a082008-07-08 05:46:34 +00004entry:
Nick Lewyckya21d3da2009-07-08 03:04:38 +00005 %foo = icmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
6 ret <4 x i1> %foo
Chris Lattnerd137a082008-07-08 05:46:34 +00007}
8
Nick Lewyckya21d3da2009-07-08 03:04:38 +00009define <4 x i1> @test2(i32 %argc, i8** %argv) {
Chris Lattnerd137a082008-07-08 05:46:34 +000010entry:
Nick Lewyckya21d3da2009-07-08 03:04:38 +000011 %foo = icmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
Chris Lattnerd137a082008-07-08 05:46:34 +000012undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
Nick Lewyckya21d3da2009-07-08 03:04:38 +000013 ret <4 x i1> %foo
Chris Lattnerd137a082008-07-08 05:46:34 +000014}
Chris Lattnerb69689e2008-07-10 00:08:17 +000015
16
Nick Lewyckya21d3da2009-07-08 03:04:38 +000017define <4 x i1> @test3() {
18 %foo = fcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float
Chris Lattnerb69689e2008-07-10 00:08:17 +000019undef>, <float 1.0, float 1.0, float 1.0, float undef>
Nick Lewyckya21d3da2009-07-08 03:04:38 +000020 ret <4 x i1> %foo
Chris Lattnerb69689e2008-07-10 00:08:17 +000021}
22
Nick Lewyckya21d3da2009-07-08 03:04:38 +000023define <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>
Chris Lattner67136cf2008-07-10 00:29:28 +000025
Nick Lewyckya21d3da2009-07-08 03:04:38 +000026 ret <4 x i1> %foo
Chris Lattner67136cf2008-07-10 00:29:28 +000027}
28