with REG_P tests before REGNO access.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128743
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-09-25 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * config/mmix/mmix.md ("*cmpcc_folded"): In condition, gate
+ with REG_P tests before REGNO access.
+
2007-09-24 DJ Delorie <dj@redhat.com>
PR target/31482
2007-09-24 DJ Delorie <dj@redhat.com>
PR target/31482
(const_int 0)))]
;; FIXME: Can we test equivalence any other way?
;; FIXME: Can we fold any other way?
(const_int 0)))]
;; FIXME: Can we test equivalence any other way?
;; FIXME: Can we fold any other way?
- "REGNO (operands[1]) == REGNO (operands[0])"
+ "REG_P (operands[0]) && REG_P (operands[1])
+ && REGNO (operands[1]) == REGNO (operands[0])"
"%% folded: cmp %0,%1,0")
(define_insn "*cmpcc"
"%% folded: cmp %0,%1,0")
(define_insn "*cmpcc"