From eed92a18829575f316313659d6294fd2ef275838 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 13 May 2011 00:11:39 +0000 Subject: Represent the unaligned loads natively. These are converted into a call to the correct unaligned load. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131268 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/xmmintrin.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Headers/xmmintrin.h') diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h index 42dd3e8d3b..f3e9409b85 100644 --- a/lib/Headers/xmmintrin.h +++ b/lib/Headers/xmmintrin.h @@ -539,7 +539,10 @@ _mm_load_ps(const float *p) static __inline__ __m128 __attribute__((__always_inline__, __nodebug__)) _mm_loadu_ps(const float *p) { - return __builtin_ia32_loadups(p); + struct __loadu_ps { + __m128 v; + } __attribute__((packed)); + return ((struct __loadu_ps*)p)->v; } static __inline__ __m128 __attribute__((__always_inline__, __nodebug__)) -- cgit v1.2.3-18-g5258