aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2005-11-28 17:01:21 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-11-28 17:01:21 +0000
commite1dff52ac9bf679e32208f7f7ae54b28def0180d (patch)
tree2f554a93f82948a2ee6563db1d06f57e309eb74a
parent78815c559050532b0dd27440c9bbb7fe4ca84717 (diff)
downloadgcc-e1dff52ac9bf679e32208f7f7ae54b28def0180d.zip
gcc-e1dff52ac9bf679e32208f7f7ae54b28def0180d.tar.gz
gcc-e1dff52ac9bf679e32208f7f7ae54b28def0180d.tar.bz2
m68k.c (notice_update_cc): Use SET_DEST and SET_SRC instead of XEXP where appropriate.
* config/m68k/m68k.c (notice_update_cc): Use SET_DEST and SET_SRC instead of XEXP where appropriate. From-SVN: r107605
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/m68k/m68k.c17
2 files changed, 15 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1dd5299..2cd58cf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-28 Kazu Hirata <kazu@codesourcery.com>
+
+ * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
+ SET_SRC instead of XEXP where appropriate.
+
2005-11-28 Joseph S. Myers <joseph@codesourcery.com>
* config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index b4b276f..2462bb1 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -2367,23 +2367,26 @@ notice_update_cc (rtx exp, rtx insn)
|| GET_CODE (SET_SRC (exp)) == MEM
|| GET_CODE (SET_SRC (exp)) == CONST_DOUBLE))
CC_STATUS_INIT;
- else if (XEXP (exp, 0) != pc_rtx)
+ else if (SET_DEST (exp) != pc_rtx)
{
cc_status.flags = 0;
- cc_status.value1 = XEXP (exp, 0);
- cc_status.value2 = XEXP (exp, 1);
+ cc_status.value1 = SET_DEST (exp);
+ cc_status.value2 = SET_SRC (exp);
}
}
else if (GET_CODE (exp) == PARALLEL
&& GET_CODE (XVECEXP (exp, 0, 0)) == SET)
{
- if (ADDRESS_REG_P (XEXP (XVECEXP (exp, 0, 0), 0)))
+ rtx dest = SET_DEST (XVECEXP (exp, 0, 0));
+ rtx src = SET_SRC (XVECEXP (exp, 0, 0));
+
+ if (ADDRESS_REG_P (dest))
CC_STATUS_INIT;
- else if (XEXP (XVECEXP (exp, 0, 0), 0) != pc_rtx)
+ else if (dest != pc_rtx)
{
cc_status.flags = 0;
- cc_status.value1 = XEXP (XVECEXP (exp, 0, 0), 0);
- cc_status.value2 = XEXP (XVECEXP (exp, 0, 0), 1);
+ cc_status.value1 = dest;
+ cc_status.value2 = src;
}
}
else