diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2017-10-17 20:28:33 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2017-10-17 20:28:33 +0000 |
commit | 34311c5ee64df8dd6dbdaa6141adfe16534c1349 (patch) | |
tree | bb13380c745c6270665a5f2bb7824f29008257b1 | |
parent | 8e7014b45585b89418564db079f9ad469a581ea2 (diff) | |
download | gcc-34311c5ee64df8dd6dbdaa6141adfe16534c1349.zip gcc-34311c5ee64df8dd6dbdaa6141adfe16534c1349.tar.gz gcc-34311c5ee64df8dd6dbdaa6141adfe16534c1349.tar.bz2 |
visium.c (visium_select_cc_mode): Return CCmode for any RTX present on the RHS of a SET.
* config/visium/visium.c (visium_select_cc_mode): Return CCmode
for any RTX present on the RHS of a SET.
* compare-elim.c (try_eliminate_compare): Restore comment.
From-SVN: r253830
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/compare-elim.c | 1 | ||||
-rw-r--r-- | gcc/config/visium/visium.c | 17 |
3 files changed, 18 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f7de684..20b7b3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-10-17 Eric Botcazou <ebotcazou@adacore.com> + + * config/visium/visium.c (visium_select_cc_mode): Return CCmode for + any RTX present on the RHS of a SET. + * compare-elim.c (try_eliminate_compare): Restore comment. + 2017-10-17 Jakub Jelinek <jakub@redhat.com> * langhooks.h (struct lang_hooks): Document that tree_size langhook diff --git a/gcc/compare-elim.c b/gcc/compare-elim.c index 794a452..086fbc7 100644 --- a/gcc/compare-elim.c +++ b/gcc/compare-elim.c @@ -729,6 +729,7 @@ try_eliminate_compare (struct comparison *cmp) if (try_merge_compare (cmp)) return true; + /* We must have found an interesting "clobber" preceding the compare. */ if (cmp->prev_clobber == NULL) return false; diff --git a/gcc/config/visium/visium.c b/gcc/config/visium/visium.c index 381d432..3311dd2 100644 --- a/gcc/config/visium/visium.c +++ b/gcc/config/visium/visium.c @@ -2938,12 +2938,6 @@ visium_select_cc_mode (enum rtx_code code, rtx op0, rtx op1) /* This is a btst, the result is in C instead of Z. */ return CCCmode; - case CONST_INT: - /* This is a degenerate case, typically an uninitialized variable. */ - gcc_assert (op0 == constm1_rtx); - - /* ... fall through ... */ - case REG: case AND: case IOR: @@ -2960,6 +2954,17 @@ visium_select_cc_mode (enum rtx_code code, rtx op0, rtx op1) when applied to a comparison with zero. */ return CCmode; + /* ??? Cater to the junk RTXes sent by try_merge_compare. */ + case ASM_OPERANDS: + case CALL: + case CONST_INT: + case LO_SUM: + case HIGH: + case MEM: + case UNSPEC: + case ZERO_EXTEND: + return CCmode; + default: gcc_unreachable (); } |