]> granicus.if.org Git - clang/commitdiff
[X86] Use __m128_u for _mm_loadu_ps after r353555
authorReid Kleckner <rnk@google.com>
Tue, 12 Feb 2019 21:04:21 +0000 (21:04 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 12 Feb 2019 21:04:21 +0000 (21:04 +0000)
Add secondary triple to existing SSE test for it.  I audited other uses
of __attribute__((__packed__)) in the intrinsic headers, and this seemed
to be the only missing one.

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

lib/Headers/xmmintrin.h
test/CodeGen/sse-builtins.c

index f57264727c7cc4f68a6f2a0588ba2cf540f7aff8..ff21a570e9c21ce84c310a18b341dc7a5ea0e011 100644 (file)
@@ -1754,7 +1754,7 @@ static __inline__ __m128 __DEFAULT_FN_ATTRS
 _mm_loadu_ps(const float *__p)
 {
   struct __loadu_ps {
-    __m128 __v;
+    __m128_u __v;
   } __attribute__((__packed__, __may_alias__));
   return ((struct __loadu_ps*)__p)->__v;
 }
index e9801487be0dfd0158b312244383cb312029645d..9151c9373691798f56a99ff555692e8f4a1f381e 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse -emit-llvm -o - -Wall -Werror | FileCheck %s
+// RUN: %clang_cc1 -fms-extensions -fms-compatibility -ffreestanding %s -triple=x86_64-windows-msvc -target-feature +sse -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 
 #include <immintrin.h>