2008-07-07-VectorCompare.ll 782 B

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