summaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-23 11:06:20 +0000
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-23 11:06:20 +0000
commit8770d0adead2d38444230bf7084ef3d339c8acc8 (patch)
tree5cb6747252928775c04cd6f2f553e6439f9f4ee5 /gcc/genrecog.c
parent9d5fd7c608fef6e7a9efbfc940545d49452c4e01 (diff)
downloadgcc-8770d0adead2d38444230bf7084ef3d339c8acc8.tar.gz
Fix broken handling of LABEL_REF in genrecog + genpreds.
gcc/ChangeLog * config/s390/predicates.md ("larl_operand"): Remove now superfluous const_int and const_double. * genrecog.c (safe_predicate_mode): Return false for VOIDmode LABEL_REFs even if the predicate does not handle const_int, const_double or const_wide_int. * genpreds.c (add_mode_tests): Treat LABEL_REF like CONST_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231927 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index 599121fb693..81ea35be8b4 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -3382,7 +3382,8 @@ safe_predicate_mode (const struct pred_data *pred, machine_mode mode)
if (GET_MODE_CLASS (mode) == MODE_INT
&& (pred->codes[CONST_INT]
|| pred->codes[CONST_DOUBLE]
- || pred->codes[CONST_WIDE_INT]))
+ || pred->codes[CONST_WIDE_INT]
+ || pred->codes[LABEL_REF]))
return false;
return !pred->special && mode != VOIDmode;