aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-04-14 11:09:21 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2001-04-14 11:09:21 +0000
commit81df85c483545d4dc79fb375379ed8a98bb452bc (patch)
treebb83f8f04206a12295f1bbc8ae54cdfae8e375c1 /gcc
parentf2d43953d7355b3570e7b833a03d7fe0c0310b9a (diff)
downloadgcc-81df85c483545d4dc79fb375379ed8a98bb452bc.zip
gcc-81df85c483545d4dc79fb375379ed8a98bb452bc.tar.gz
gcc-81df85c483545d4dc79fb375379ed8a98bb452bc.tar.bz2
mn10300.md (cmpsi): Tell reload to disregard the first alternative.
* config/mn10300/mn10300.md (cmpsi): Tell reload to disregard the first alternative. From-SVN: r41355
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mn10300/mn10300.md10
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6990564..17451ef 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-14 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/mn10300/mn10300.md (cmpsi): Tell reload to disregard the
+ first alternative.
+
2001-04-14 Alan Modra <amodra@one.net.au>
* pa.c (force_mode): New function.
diff --git a/gcc/config/mn10300/mn10300.md b/gcc/config/mn10300/mn10300.md
index 4f32cd4..7050f7a 100644
--- a/gcc/config/mn10300/mn10300.md
+++ b/gcc/config/mn10300/mn10300.md
@@ -718,9 +718,17 @@
;; but will have the proper effect on cc0. Using d0 is arbitrary; any
;; data register would work.)
+;; Even though the first alternative would be preferrable if it can
+;; possibly match, reload must not be given the opportunity to attempt
+;; to use it. It assumes that such matches can only occur when one of
+;; the operands is used for input and the other for output. Since
+;; this is not the case, it abort()s. Indeed, such a reload cannot be
+;; possibly satisfied, so just mark the alternative with a `!', so
+;; that it is not considered by reload.
+
(define_insn "cmpsi"
[(set (cc0)
- (compare (match_operand:SI 0 "register_operand" "*d*a*x,dax")
+ (compare (match_operand:SI 0 "register_operand" "!*d*a*x,dax")
(match_operand:SI 1 "nonmemory_operand" "*0,daxi")))]
""
"@