+2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
+
+ * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
+ vpmsumd.
+
2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
PR target/77918
+2019-10-01 Bill Schmidt <wschmdit@linux.ibm.com>
+
+ * gcc.target/powerpc/pr91275.c: New.
+
2019-10-01 Alexandre Oliva <oliva@adacore.com>
* gcc.dg/torture/pr41094.c: Introduce intermediate variable.
--- /dev/null
+/* Test that we generate vpmsumd correctly without a swap error. */
+
+/* { dg-do run { target { p8vector_hw } } } */
+/* { dg-options "-O2 -std=gnu11" } */
+
+#include <altivec.h>
+
+int main() {
+
+ const unsigned long long r0l = 0x8e7dfceac070e3a0;
+ vector unsigned long long r0 = (vector unsigned long long) {r0l, 0}, v;
+ const vector unsigned long long pd
+ = (vector unsigned long) {0xc2LLU << 56, 0};
+
+ v = __builtin_crypto_vpmsumd ((vector unsigned long long) {r0[0], 0}, pd);
+
+ if (v[0] != 0x4000000000000000 || v[1] != 0x65bd7ab605a4a8ff)
+ __builtin_abort ();
+
+ return 0;
+}