summaryrefslogtreecommitdiff
path: root/libgfortran/config.h.in
diff options
context:
space:
mode:
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-25 21:51:27 +0000
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-25 21:51:27 +0000
commitb4e409cb69f05c8746e1b27ead683fdb049736b7 (patch)
tree3cd241e469094809d6ceb3aa1a14f6841627e681 /libgfortran/config.h.in
parenta5220451827eb13c3d4e52fea524ee7d031a6d5c (diff)
downloadgcc-b4e409cb69f05c8746e1b27ead683fdb049736b7.tar.gz
2017-05-25 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/78379 * Makefile.am: Add generated/matmulavx128_*.c files. Handle them for compiling and setting the right flags. * acinclude.m4: Add tests for FMA3, FMA4 and AVX128. * configure.ac: Call them. * Makefile.in: Regenerated. * config.h.in: Regenerated. * configure: Regenerated. * m4/matmul.m4: Handle AMD chips by calling 128-bit AVX versions which use FMA3 or FMA4. * m4/matmulavx128.m4: New file. * generated/matmul_c10.c: Regenerated. * generated/matmul_c16.c: Regenerated. * generated/matmul_c4.c: Regenerated. * generated/matmul_c8.c: Regenerated. * generated/matmul_i1.c: Regenerated. * generated/matmul_i16.c: Regenerated. * generated/matmul_i2.c: Regenerated. * generated/matmul_i4.c: Regenerated. * generated/matmul_i8.c: Regenerated. * generated/matmul_r10.c: Regenerated. * generated/matmul_r16.c: Regenerated. * generated/matmul_r4.c: Regenerated. * generated/matmul_r8.c: Regenerated. * generated/matmulavx128_c10.c: New file. * generated/matmulavx128_c16.c: New file. * generated/matmulavx128_c4.c: New file. * generated/matmulavx128_c8.c: New file. * generated/matmulavx128_i1.c: New file. * generated/matmulavx128_i16.c: New file. * generated/matmulavx128_i2.c: New file. * generated/matmulavx128_i4.c: New file. * generated/matmulavx128_i8.c: New file. * generated/matmulavx128_r10.c: New file. * generated/matmulavx128_r16.c: New file. * generated/matmulavx128_r4.c: New file. * generated/matmulavx128_r8.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248472 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/config.h.in')
-rw-r--r--libgfortran/config.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgfortran/config.h.in b/libgfortran/config.h.in
index b762d0990b6..0274e5d9c4c 100644
--- a/libgfortran/config.h.in
+++ b/libgfortran/config.h.in
@@ -81,6 +81,9 @@
/* Define if AVX instructions can be compiled. */
#undef HAVE_AVX
+/* Define if -mprefer-avx128 is supported. */
+#undef HAVE_AVX128
+
/* Define if AVX2 instructions can be compiled. */
#undef HAVE_AVX2
@@ -375,6 +378,12 @@
/* Define to 1 if you have the `floorl' function. */
#undef HAVE_FLOORL
+/* Define if FMA3 instructions can be compiled. */
+#undef HAVE_FMA3
+
+/* Define if FMA4 instructions can be compiled. */
+#undef HAVE_FMA4
+
/* Define to 1 if you have the `fmod' function. */
#undef HAVE_FMOD