diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-05-13 00:11:39 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-05-13 00:11:39 +0000 |
commit | eed92a18829575f316313659d6294fd2ef275838 (patch) | |
tree | 289f8ec75a95497e6c75bc84414ca4fcb2ec3737 /lib/Headers/xmmintrin.h | |
parent | 2be7e90b81509204b99b7bbf9753ad17b894a12a (diff) |
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
Diffstat (limited to 'lib/Headers/xmmintrin.h')
-rw-r--r-- | lib/Headers/xmmintrin.h | 5 |
1 files changed, 4 insertions, 1 deletions
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__)) |