[cfe-commits] r145939 - in /cfe/trunk: lib/Headers/wmmintrin.h test/Headers/wmmintrin.c
Daniel Dunbar
daniel at zuster.org
Tue Dec 6 08:17:54 PST 2011
Author: ddunbar
Date: Tue Dec 6 10:17:54 2011
New Revision: 145939
URL: http://llvm.org/viewvc/llvm-project?rev=145939&view=rev
Log:
Headers: wmmintrin.h only needs xmmintrin.h.
- Fixes <rdar://problem/10261246> clang -maes option is not sufficient to
include <wmmintrin.h>
Added:
cfe/trunk/test/Headers/wmmintrin.c
Modified:
cfe/trunk/lib/Headers/wmmintrin.h
Modified: cfe/trunk/lib/Headers/wmmintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/wmmintrin.h?rev=145939&r1=145938&r2=145939&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/wmmintrin.h (original)
+++ cfe/trunk/lib/Headers/wmmintrin.h Tue Dec 6 10:17:54 2011
@@ -28,7 +28,7 @@
# error "AES instructions not enabled"
#else
-#include <smmintrin.h>
+#include <xmmintrin.h>
static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
_mm_aesenc_si128(__m128i __V, __m128i __R)
Added: cfe/trunk/test/Headers/wmmintrin.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Headers/wmmintrin.c?rev=145939&view=auto
==============================================================================
--- cfe/trunk/test/Headers/wmmintrin.c (added)
+++ cfe/trunk/test/Headers/wmmintrin.c Tue Dec 6 10:17:54 2011
@@ -0,0 +1,4 @@
+// Check that wmmintrin.h is includable with just -maes.
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
+// RUN: -verify %s -ffreestanding -target-feature +aes
+#include <wmmintrin.h>
More information about the cfe-commits
mailing list