diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-14 11:09:21 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-14 11:09:21 +0000 |
commit | 3f9bbcab341978c5d863e955f8e5af6bf42de83f (patch) | |
tree | bb83f8f04206a12295f1bbc8ae54cdfae8e375c1 /gcc/config/mn10300 | |
parent | fbf74f0637b35e920956515e68ca73bcee581711 (diff) | |
download | gcc-3f9bbcab341978c5d863e955f8e5af6bf42de83f.tar.gz |
* config/mn10300/mn10300.md (cmpsi): Tell reload to disregard the
first alternative.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41355 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mn10300')
-rw-r--r-- | gcc/config/mn10300/mn10300.md | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/config/mn10300/mn10300.md b/gcc/config/mn10300/mn10300.md index 4f32cd489d0..7050f7adc9f 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")))] "" "@ |