[rs6000] Use VIEW_CONVERT_EXPR to reinterpret vectors (PR 92515)
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 15 Nov 2019 12:57:47 +0000 (12:57 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 15 Nov 2019 12:57:47 +0000 (12:57 +0000)
commitb6d53324092ee2b15c4a34fb55f2556863223d86
tree0c5bd50c190b22c58a84d5f00ed938942db8beb8
parent9ecf84e6a5616e30a03b4813b696607b2aa12d47
[rs6000] Use VIEW_CONVERT_EXPR to reinterpret vectors (PR 92515)

The new tree-cfg.c checking in r278245 tripped on folds of
ALTIVEC_BUILTIN_VPERM_*, which were using gimple_convert
rather than VIEW_CONVERT_EXPR to reinterpret the contents
of a vector as a different type.

2019-11-15  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
PR target/92515
* config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
VIEW_CONVERT_EXPR to reinterpret vectors as different types.

From-SVN: r278292
gcc/ChangeLog
gcc/config/rs6000/rs6000-call.c