diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-09-16 07:24:15 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2013-09-16 07:24:15 +0000 |
commit | 40dbb05c6bb90d7baa33af404cbc254e05c74abf (patch) | |
tree | b9603d22fa80a7c7c311433d607492ff35d20d32 /gcc | |
parent | 1a11a94fcd9cfe0759f6e37cac0177982697e45a (diff) | |
download | gcc-40dbb05c6bb90d7baa33af404cbc254e05c74abf.zip gcc-40dbb05c6bb90d7baa33af404cbc254e05c74abf.tar.gz gcc-40dbb05c6bb90d7baa33af404cbc254e05c74abf.tar.bz2 |
cse.c (try_const_anchors): Punt on CC modes.
gcc/
* cse.c (try_const_anchors): Punt on CC modes.
From-SVN: r202613
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cse.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 097dbcd..600b72e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-09-16 Richard Sandiford <rdsandiford@googlemail.com> + + * cse.c (try_const_anchors): Punt on CC modes. + 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de> * config/vax/constraints.md (T): Add missing CONSTANT_P check. @@ -1354,6 +1354,11 @@ try_const_anchors (rtx src_const, enum machine_mode mode) rtx lower_exp = NULL_RTX, upper_exp = NULL_RTX; unsigned lower_old, upper_old; + /* CONST_INT is used for CC modes, but we should leave those alone. */ + if (GET_MODE_CLASS (mode) == MODE_CC) + return NULL_RTX; + + gcc_assert (SCALAR_INT_MODE_P (mode)); if (!compute_const_anchors (src_const, &lower_base, &lower_offs, &upper_base, &upper_offs)) return NULL_RTX; |