aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorWilliam Schmidt <wschmidt@gcc.gnu.org>2019-10-01 14:27:44 +0000
committerWilliam Schmidt <wschmidt@gcc.gnu.org>2019-10-01 14:27:44 +0000
commit2a2592a10c13c53fc1fbac0bfe9e661201dab53f (patch)
tree8ee246f7c9beeccd64f43fc54ffed031269263ce /gcc/config
parenta1bfb5b16b4b55ae875d346a7b462a18316ad959 (diff)
downloadgcc-2a2592a10c13c53fc1fbac0bfe9e661201dab53f.zip
gcc-2a2592a10c13c53fc1fbac0bfe9e661201dab53f.tar.gz
gcc-2a2592a10c13c53fc1fbac0bfe9e661201dab53f.tar.bz2
rs6000-p8swap.c (rtx_is_swappable_p): Don't swap vpmsumd.
[gcc] 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com> * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap vpmsumd. [gcc/testsuite] 2019-10-01 Bill Schmidt <wschmdit@linux.ibm.com> * gcc.target/powerpc/pr91275.c: New. From-SVN: r276410
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rs6000/rs6000-p8swap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000-p8swap.c b/gcc/config/rs6000/rs6000-p8swap.c
index c3b9831..d30e5de 100644
--- a/gcc/config/rs6000/rs6000-p8swap.c
+++ b/gcc/config/rs6000/rs6000-p8swap.c
@@ -791,6 +791,11 @@ rtx_is_swappable_p (rtx op, unsigned int *special)
case UNSPEC_REDUC_PLUS:
case UNSPEC_REDUC:
return 1;
+ case UNSPEC_VPMSUM:
+ /* vpmsumd is not swappable, but vpmsum[bhw] are. */
+ if (GET_MODE (op) == V2DImode)
+ return 0;
+ break;
}
}