From: Bruno Cardoso Lopes Date: Thu, 5 Aug 2010 23:47:43 +0000 (+0000) Subject: We don't want to support built-ins which aren't needed by the intrinsics. Remove... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8c6db4cacaa733cf335deb03a9ccd0c9c488b3e;p=clang We don't want to support built-ins which aren't needed by the intrinsics. Remove them git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110399 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/BuiltinsX86.def b/include/clang/Basic/BuiltinsX86.def index 6e629bb58e..00d79df69c 100644 --- a/include/clang/Basic/BuiltinsX86.def +++ b/include/clang/Basic/BuiltinsX86.def @@ -327,16 +327,8 @@ BUILTIN(__builtin_ia32_aesimc128, "V2LLiV2LLi", "") BUILTIN(__builtin_ia32_aeskeygenassist128, "V2LLiV2LLic", "") // AVX -BUILTIN(__builtin_ia32_addpd256, "V4dV4dV4d", "") -BUILTIN(__builtin_ia32_addps256, "V8fV8fV8f", "") BUILTIN(__builtin_ia32_addsubpd256, "V4dV4dV4d", "") BUILTIN(__builtin_ia32_addsubps256, "V8fV8fV8f", "") -BUILTIN(__builtin_ia32_andpd256, "V4dV4dV4d", "") -BUILTIN(__builtin_ia32_andps256, "V8fV8fV8f", "") -BUILTIN(__builtin_ia32_andnpd256, "V4dV4dV4d", "") -BUILTIN(__builtin_ia32_andnps256, "V8fV8fV8f", "") -BUILTIN(__builtin_ia32_divpd256, "V4dV4dV4d", "") -BUILTIN(__builtin_ia32_divps256, "V8fV8fV8f", "") BUILTIN(__builtin_ia32_haddpd256, "V4dV4dV4d", "") BUILTIN(__builtin_ia32_hsubps256, "V8fV8fV8f", "") BUILTIN(__builtin_ia32_hsubpd256, "V4dV4dV4d", "") @@ -345,14 +337,6 @@ BUILTIN(__builtin_ia32_maxpd256, "V4dV4dV4d", "") BUILTIN(__builtin_ia32_maxps256, "V8fV8fV8f", "") BUILTIN(__builtin_ia32_minpd256, "V4dV4dV4d", "") BUILTIN(__builtin_ia32_minps256, "V8fV8fV8f", "") -BUILTIN(__builtin_ia32_mulpd256, "V4dV4dV4d", "") -BUILTIN(__builtin_ia32_mulps256, "V8fV8fV8f", "") -BUILTIN(__builtin_ia32_orpd256, "V4dV4dV4d", "") -BUILTIN(__builtin_ia32_orps256, "V8fV8fV8f", "") -BUILTIN(__builtin_ia32_subpd256, "V4dV4dV4d", "") -BUILTIN(__builtin_ia32_subps256, "V8fV8fV8f", "") -BUILTIN(__builtin_ia32_xorpd256, "V4dV4dV4d", "") -BUILTIN(__builtin_ia32_xorps256, "V8fV8fV8f", "") BUILTIN(__builtin_ia32_vpermilvarpd, "V2dV2dV2LLi", "") BUILTIN(__builtin_ia32_vpermilvarps, "V4fV4fV4i", "") BUILTIN(__builtin_ia32_vpermilvarpd256, "V4dV4dV4LLi", "") diff --git a/test/CodeGen/builtins-x86.c b/test/CodeGen/builtins-x86.c index 96d34b4cae..287de997fa 100644 --- a/test/CodeGen/builtins-x86.c +++ b/test/CodeGen/builtins-x86.c @@ -390,16 +390,8 @@ void f0() { tmp_V4f = __builtin_ia32_insertps128(tmp_V4f, tmp_V4f, tmp_i); #endif - tmp_V4d = __builtin_ia32_addpd256(tmp_V4d, tmp_V4d); - tmp_V8f = __builtin_ia32_addps256(tmp_V8f, tmp_V8f); tmp_V4d = __builtin_ia32_addsubpd256(tmp_V4d, tmp_V4d); tmp_V8f = __builtin_ia32_addsubps256(tmp_V8f, tmp_V8f); - tmp_V4d = __builtin_ia32_andpd256(tmp_V4d, tmp_V4d); - tmp_V8f = __builtin_ia32_andps256(tmp_V8f, tmp_V8f); - tmp_V4d = __builtin_ia32_andnpd256(tmp_V4d, tmp_V4d); - tmp_V8f = __builtin_ia32_andnps256(tmp_V8f, tmp_V8f); - tmp_V4d = __builtin_ia32_divpd256(tmp_V4d, tmp_V4d); - tmp_V8f = __builtin_ia32_divps256(tmp_V8f, tmp_V8f); tmp_V4d = __builtin_ia32_haddpd256(tmp_V4d, tmp_V4d); tmp_V8f = __builtin_ia32_hsubps256(tmp_V8f, tmp_V8f); tmp_V4d = __builtin_ia32_hsubpd256(tmp_V4d, tmp_V4d); @@ -408,14 +400,6 @@ void f0() { tmp_V8f = __builtin_ia32_maxps256(tmp_V8f, tmp_V8f); tmp_V4d = __builtin_ia32_minpd256(tmp_V4d, tmp_V4d); tmp_V8f = __builtin_ia32_minps256(tmp_V8f, tmp_V8f); - tmp_V4d = __builtin_ia32_mulpd256(tmp_V4d, tmp_V4d); - tmp_V8f = __builtin_ia32_mulps256(tmp_V8f, tmp_V8f); - tmp_V4d = __builtin_ia32_orpd256(tmp_V4d, tmp_V4d); - tmp_V8f = __builtin_ia32_orps256(tmp_V8f, tmp_V8f); - tmp_V4d = __builtin_ia32_subpd256(tmp_V4d, tmp_V4d); - tmp_V8f = __builtin_ia32_subps256(tmp_V8f, tmp_V8f); - tmp_V4d = __builtin_ia32_xorpd256(tmp_V4d, tmp_V4d); - tmp_V8f = __builtin_ia32_xorps256(tmp_V8f, tmp_V8f); tmp_V2d = __builtin_ia32_vpermilvarpd(tmp_V2d, tmp_V2LLi); tmp_V4f = __builtin_ia32_vpermilvarps(tmp_V4f, tmp_V4i); tmp_V4d = __builtin_ia32_vpermilvarpd256(tmp_V4d, tmp_V4LLi);