]> granicus.if.org Git - clang/commitdiff
[X86] Remove unnecessary MMX declarations from Intrin.h
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 25 Aug 2015 21:27:46 +0000 (21:27 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 25 Aug 2015 21:27:46 +0000 (21:27 +0000)
As discussed in PR23648 - the intrinsics _m_from_int, _m_to_int and _m_prefetch are defined in mmintrin.h and prfchwintrin.h so we don't need to in Intrin.h

Added tests for _m_from_int and _m_to_int

D11338 already added a test for _m_prefetch

Differential Revision: http://reviews.llvm.org/D12272

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245975 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/Intrin.h
test/CodeGen/mmx-builtins.c

index 67c8a63265ff3ed7842862dd2f74f19f26e5146b..fc852dcf14ba6dd1db993220699233d140b94729 100644 (file)
@@ -49,10 +49,7 @@ extern "C" {
 #if defined(__MMX__)
 /* And the random ones that aren't in those files. */
 __m64 _m_from_float(float);
-__m64 _m_from_int(int _l);
-void _m_prefetch(void *);
 float _m_to_float(__m64);
-int _m_to_int(__m64 _M);
 #endif
 
 /* Other assorted instruction intrinsics. */
index 346676c6b01ad69d5273b36385abc68005008be2..e9f8d8696f9d57b426f3d0ff060b38c24ed3f25d 100644 (file)
@@ -451,3 +451,13 @@ __m64 test89(__m64 a, __m64 b) {
   // CHECK: pcmpgtd
   return _mm_cmpgt_pi32(a, b);
 }
+
+__m64 test90(int a) {
+  // CHECK: movd
+  return _m_from_int(a);
+}
+
+int test91(__m64 a) {
+  // CHECK: movd
+  return _m_to_int(a);
+}