summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/x86intrin.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/rs6000/x86intrin.h')
-rw-r--r--gcc/config/rs6000/x86intrin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/rs6000/x86intrin.h b/gcc/config/rs6000/x86intrin.h
index 4aa33fdbbf5..1526a7de2ef 100644
--- a/gcc/config/rs6000/x86intrin.h
+++ b/gcc/config/rs6000/x86intrin.h
@@ -35,9 +35,12 @@
#ifndef _X86INTRIN_H_INCLUDED
#define _X86INTRIN_H_INCLUDED
+#ifdef __ALTIVEC__
+#include <mmintrin.h>
+#endif /* __ALTIVEC__ */
+
#include <bmiintrin.h>
#include <bmi2intrin.h>
-
#endif /* _X86INTRIN_H_INCLUDED */