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/cse.c | |
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/cse.c')
-rw-r--r-- | gcc/cse.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |