diff options
Diffstat (limited to 'lib/Headers/nmmintrin.h')
-rw-r--r-- | lib/Headers/nmmintrin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Headers/nmmintrin.h b/lib/Headers/nmmintrin.h index 57fec15963d11..f12622d7be68f 100644 --- a/lib/Headers/nmmintrin.h +++ b/lib/Headers/nmmintrin.h @@ -24,7 +24,12 @@ #ifndef _NMMINTRIN_H #define _NMMINTRIN_H +#ifndef __SSE4_2__ +#error "SSE4.2 instruction set not enabled" +#else + /* To match expectations of gcc we put the sse4.2 definitions into smmintrin.h, just include it now then. */ #include <smmintrin.h> +#endif /* __SSE4_2__ */ #endif /* _NMMINTRIN_H */ |