Add 'cmp' SSE builtins and get rid of a bunch of other builtins.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72032 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/builtins-x86.c b/test/CodeGen/builtins-x86.c
index 17c2840..d710b07 100644
--- a/test/CodeGen/builtins-x86.c
+++ b/test/CodeGen/builtins-x86.c
@@ -109,30 +109,22 @@
   tmp_V4f = __builtin_ia32_subss(tmp_V4f, tmp_V4f);
   tmp_V4f = __builtin_ia32_mulss(tmp_V4f, tmp_V4f);
   tmp_V4f = __builtin_ia32_divss(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpeqps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpltps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpleps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpgtps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpgeps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpunordps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpneqps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpnltps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpnleps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpngtps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpngeps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpordps(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpeqss(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpltss(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpless(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpunordss(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpneqss(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpnltss(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpnless(tmp_V4f, tmp_V4f);
-#ifdef USE_ALL
-  tmp_V4i = __builtin_ia32_cmpngtss(tmp_V4f, tmp_V4f);
-  tmp_V4i = __builtin_ia32_cmpngess(tmp_V4f, tmp_V4f);
-#endif
-  tmp_V4i = __builtin_ia32_cmpordss(tmp_V4f, tmp_V4f);
+  tmp_V4f = __builtin_ia32_cmpps(tmp_V4f, tmp_V4f, 0);
+  tmp_V4f = __builtin_ia32_cmpps(tmp_V4f, tmp_V4f, 1);
+  tmp_V4f = __builtin_ia32_cmpps(tmp_V4f, tmp_V4f, 2);
+  tmp_V4f = __builtin_ia32_cmpps(tmp_V4f, tmp_V4f, 3);
+  tmp_V4f = __builtin_ia32_cmpps(tmp_V4f, tmp_V4f, 4);
+  tmp_V4f = __builtin_ia32_cmpps(tmp_V4f, tmp_V4f, 5);
+  tmp_V4f = __builtin_ia32_cmpps(tmp_V4f, tmp_V4f, 6);
+  tmp_V4f = __builtin_ia32_cmpps(tmp_V4f, tmp_V4f, 7);
+  tmp_V4f = __builtin_ia32_cmpss(tmp_V4f, tmp_V4f, 0);
+  tmp_V4f = __builtin_ia32_cmpss(tmp_V4f, tmp_V4f, 1);
+  tmp_V4f = __builtin_ia32_cmpss(tmp_V4f, tmp_V4f, 2);
+  tmp_V4f = __builtin_ia32_cmpss(tmp_V4f, tmp_V4f, 3);
+  tmp_V4f = __builtin_ia32_cmpss(tmp_V4f, tmp_V4f, 4);
+  tmp_V4f = __builtin_ia32_cmpss(tmp_V4f, tmp_V4f, 5);
+  tmp_V4f = __builtin_ia32_cmpss(tmp_V4f, tmp_V4f, 6);
+  tmp_V4f = __builtin_ia32_cmpss(tmp_V4f, tmp_V4f, 7);
   tmp_V4f = __builtin_ia32_minps(tmp_V4f, tmp_V4f);
   tmp_V4f = __builtin_ia32_maxps(tmp_V4f, tmp_V4f);
   tmp_V4f = __builtin_ia32_minss(tmp_V4f, tmp_V4f);
@@ -196,26 +188,22 @@
   tmp_V2d = __builtin_ia32_subsd(tmp_V2d, tmp_V2d);
   tmp_V2d = __builtin_ia32_mulsd(tmp_V2d, tmp_V2d);
   tmp_V2d = __builtin_ia32_divsd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpeqpd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpltpd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmplepd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpgtpd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpgepd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpunordpd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpneqpd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpnltpd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpnlepd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpngtpd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpngepd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpordpd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpeqsd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpltsd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmplesd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpunordsd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpneqsd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpnltsd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpnlesd(tmp_V2d, tmp_V2d);
-  tmp_V4i = __builtin_ia32_cmpordsd(tmp_V2d, tmp_V2d);
+  tmp_V2d = __builtin_ia32_cmppd(tmp_V2d, tmp_V2d, 0);
+  tmp_V2d = __builtin_ia32_cmppd(tmp_V2d, tmp_V2d, 1);
+  tmp_V2d = __builtin_ia32_cmppd(tmp_V2d, tmp_V2d, 2);
+  tmp_V2d = __builtin_ia32_cmppd(tmp_V2d, tmp_V2d, 3);
+  tmp_V2d = __builtin_ia32_cmppd(tmp_V2d, tmp_V2d, 4);
+  tmp_V2d = __builtin_ia32_cmppd(tmp_V2d, tmp_V2d, 5);
+  tmp_V2d = __builtin_ia32_cmppd(tmp_V2d, tmp_V2d, 6);
+  tmp_V2d = __builtin_ia32_cmppd(tmp_V2d, tmp_V2d, 7);
+  tmp_V2d = __builtin_ia32_cmpsd(tmp_V2d, tmp_V2d, 0);
+  tmp_V2d = __builtin_ia32_cmpsd(tmp_V2d, tmp_V2d, 1);
+  tmp_V2d = __builtin_ia32_cmpsd(tmp_V2d, tmp_V2d, 2);
+  tmp_V2d = __builtin_ia32_cmpsd(tmp_V2d, tmp_V2d, 3);
+  tmp_V2d = __builtin_ia32_cmpsd(tmp_V2d, tmp_V2d, 4);
+  tmp_V2d = __builtin_ia32_cmpsd(tmp_V2d, tmp_V2d, 5);
+  tmp_V2d = __builtin_ia32_cmpsd(tmp_V2d, tmp_V2d, 6);
+  tmp_V2d = __builtin_ia32_cmpsd(tmp_V2d, tmp_V2d, 7);
   tmp_V2d = __builtin_ia32_minpd(tmp_V2d, tmp_V2d);
   tmp_V2d = __builtin_ia32_maxpd(tmp_V2d, tmp_V2d);
   tmp_V2d = __builtin_ia32_minsd(tmp_V2d, tmp_V2d);