aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2020-06-02 13:14:55 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2020-06-02 13:16:59 +0200
commit0bd4508f86889995f6864bf50773bd6859951007 (patch)
tree9eabad1e825531434fda4dc3c78217b5b114e08f /gcc/optabs.c
parent5fe28857febfdbce0e0d4a2b26260629bb6bf3f3 (diff)
downloadgcc-0bd4508f86889995f6864bf50773bd6859951007.zip
gcc-0bd4508f86889995f6864bf50773bd6859951007.tar.gz
gcc-0bd4508f86889995f6864bf50773bd6859951007.tar.bz2
Fix bits/bytes confusion in latest change to expand_unop
gcc/ChangeLog: PR middle-end/95395 * optabs.c (expand_unop): Fix bits/bytes confusion in latest change. * tree-pretty-print.c (dump_generic_node) <ARRAY_TYPE>: Print quals.
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 7a4ec1e..6d0b76c 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -2892,7 +2892,7 @@ expand_unop (machine_mode mode, optab unoptab, rtx op0, rtx target,
/* We do not provide a 128-bit bswap in libgcc so force the use of
a double bswap for 64-bit targets. */
if (GET_MODE_SIZE (int_mode) == 2 * UNITS_PER_WORD
- && (UNITS_PER_WORD == 64
+ && (UNITS_PER_WORD == 8
|| optab_handler (unoptab, word_mode) != CODE_FOR_nothing))
{
temp = expand_doubleword_bswap (mode, op0, target);