From: Daniel Dunbar Date: Tue, 6 Dec 2011 16:17:54 +0000 (+0000) Subject: Headers: wmmintrin.h only needs xmmintrin.h. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd023bc4d4cc4013ae7fee49fa850b3181293797;p=clang Headers: wmmintrin.h only needs xmmintrin.h. - Fixes clang -maes option is not sufficient to include git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145939 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/wmmintrin.h b/lib/Headers/wmmintrin.h index 6b2e4687d4..8f588507ee 100644 --- a/lib/Headers/wmmintrin.h +++ b/lib/Headers/wmmintrin.h @@ -28,7 +28,7 @@ # error "AES instructions not enabled" #else -#include +#include static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) _mm_aesenc_si128(__m128i __V, __m128i __R) diff --git a/test/Headers/wmmintrin.c b/test/Headers/wmmintrin.c new file mode 100644 index 0000000000..6aa8be4988 --- /dev/null +++ b/test/Headers/wmmintrin.c @@ -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