OSDN Git Service

PR testsuite/44701
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Jul 2010 14:03:49 +0000 (14:03 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Jul 2010 14:03:49 +0000 (14:03 +0000)
* recog.c (constrain_operands): Allow side-effects in memory
operands if either < or > constraint is used, rather than if
both < and > is used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162142 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/recog.c

index bee9490..bd339d7 100644 (file)
@@ -1,3 +1,10 @@
+2010-07-13  Jakub Jelinek  <jakub@redhat.com>
+
+       PR testsuite/44701
+       * recog.c (constrain_operands): Allow side-effects in memory
+       operands if either < or > constraint is used, rather than if
+       both < and > is used.
+
 2010-07-13  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/44911
index 6848506..368783f 100644 (file)
@@ -2742,7 +2742,7 @@ constrain_operands (int strict)
                        case PRE_MODIFY:
                        case POST_MODIFY:
                          if (strchr (recog_data.constraints[opno], '<') == NULL
-                             || strchr (recog_data.constraints[opno], '>')
+                             && strchr (recog_data.constraints[opno], '>')
                                 == NULL)
                            return 0;
                          break;