diff options
author | Reid Kleckner <rnk@google.com> | 2019-02-12 21:04:21 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-02-12 21:04:21 +0000 |
commit | a0129f30b362434ac1af52d2dabc7b2708c25e9d (patch) | |
tree | 2130d064654c05ea01adf7da42e2355148cb2306 | |
parent | 4f87ff1d737e419fdc7c627a1af2ab546fe894cd (diff) | |
download | clang-a0129f30b362434ac1af52d2dabc7b2708c25e9d.tar.gz |
[X86] Use __m128_u for _mm_loadu_ps after r353555
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
-rw-r--r-- | lib/Headers/xmmintrin.h | 2 | ||||
-rw-r--r-- | test/CodeGen/sse-builtins.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h index f57264727c..ff21a570e9 100644 --- a/lib/Headers/xmmintrin.h +++ b/lib/Headers/xmmintrin.h @@ -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; } diff --git a/test/CodeGen/sse-builtins.c b/test/CodeGen/sse-builtins.c index e9801487be..9151c93736 100644 --- a/test/CodeGen/sse-builtins.c +++ b/test/CodeGen/sse-builtins.c @@ -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> |