[gcc]
2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/79947
* config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
-mpowerpc-gfxopt.
[gcc/testsuite]
2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/79947
* gcc.target/powerpc/pr79947.c: New test.
From-SVN: r246150
+2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
+
+ PR target/79947
+ * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
+ -mpowerpc-gfxopt.
+
2017-03-14 Martin Sebor <msebor@redhat.com>
PR middle-end/80020
&& (TARGET_POPCNTB || VECTOR_UNIT_VSX_P (DFmode)))
#define TARGET_FRSQRTES (TARGET_HARD_FLOAT && TARGET_POPCNTB \
- && TARGET_FPRS && TARGET_SINGLE_FLOAT)
+ && TARGET_PPC_GFXOPT && TARGET_FPRS \
+ && TARGET_SINGLE_FLOAT)
#define TARGET_FRSQRTE (TARGET_HARD_FLOAT && TARGET_FPRS \
&& TARGET_DOUBLE_FLOAT \
+2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
+
+ PR target/79947
+ * gcc.target/powerpc/pr79947.c: New test.
+
2017-03-14 Martin Sebor <msebor@redhat.com>
PR middle-end/80020
--- /dev/null
+/* { dg-do compile { target { powerpc*-*-* } } } */
+/* { dg-options "-Ofast -mno-powerpc-gfxopt -mcmpb -mno-vsx" } */
+
+/* PR 79949: Compiler segmentation fault due to not having conditional move
+ support for the target if the -mno-powerpc-gfxopt option is used. */
+
+float a, b;
+void
+c ()
+{
+ a = __builtin_sqrtf (b);
+}