This revision was automatically updated to reflect the committed changes. Closed by commit rL245975: [X86] Remove unnecessary MMX declarations from Intrin.h (authored by RKSimon).
Changed prior to commit: http://reviews.llvm.org/D12272?vs=32926&id=33124#toc Repository: rL LLVM http://reviews.llvm.org/D12272 Files: cfe/trunk/lib/Headers/Intrin.h cfe/trunk/test/CodeGen/mmx-builtins.c Index: cfe/trunk/test/CodeGen/mmx-builtins.c =================================================================== --- cfe/trunk/test/CodeGen/mmx-builtins.c +++ cfe/trunk/test/CodeGen/mmx-builtins.c @@ -451,3 +451,13 @@ // 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); +} Index: cfe/trunk/lib/Headers/Intrin.h =================================================================== --- cfe/trunk/lib/Headers/Intrin.h +++ cfe/trunk/lib/Headers/Intrin.h @@ -49,10 +49,7 @@ #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: cfe/trunk/test/CodeGen/mmx-builtins.c =================================================================== --- cfe/trunk/test/CodeGen/mmx-builtins.c +++ cfe/trunk/test/CodeGen/mmx-builtins.c @@ -451,3 +451,13 @@ // 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); +} Index: cfe/trunk/lib/Headers/Intrin.h =================================================================== --- cfe/trunk/lib/Headers/Intrin.h +++ cfe/trunk/lib/Headers/Intrin.h @@ -49,10 +49,7 @@ #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. */
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits