Noticed while building rx-* with config-list.mk, where it triggered a
build failure.

Tested with config-list.mk and pushed as obvious.

Richard


gcc/
        * config/rx/rx.cc (rx_gen_move_template): Fix GET_MODE/GET_CODE typo.
---
 gcc/config/rx/rx.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/rx/rx.cc b/gcc/config/rx/rx.cc
index 038f93431f4..a7ddfead32c 100644
--- a/gcc/config/rx/rx.cc
+++ b/gcc/config/rx/rx.cc
@@ -1010,7 +1010,7 @@ rx_gen_move_template (rtx * operands, bool is_movu)
   else
     {
       /* Otherwise, use the smaller size.  */
-      if (GET_MODE (src) == SIGN_EXTEND || GET_MODE (src) == ZERO_EXTEND)
+      if (GET_CODE (src) == SIGN_EXTEND || GET_CODE (src) == ZERO_EXTEND)
        /* When expanding, the original size will be used. */
        src_mode = GET_MODE (XEXP (src, 0));
       else
-- 
2.55.0

Reply via email to