diff mbox

[moxie] Fix CC_REG definition

Message ID 8761cfjurh.fsf@moxielogic.com
State New
Headers show

Commit Message

Anthony Green Jan. 10, 2015, 1:21 a.m. UTC
The moxie port had CC_REG referring to a real hard register ($r9) by
mistake instead of the virtual CC register.  This never resulted in
incorrect code, but we would often see $r9 marked as used in a function
when it actually wasn't.  I'm checking this in.

2015-01-09  Anthony Green  <green@moxielogic.com>

	* config/moxie/moxie.md (CC_REG): Correct register definition.
diff mbox

Patch

Index: gcc/config/moxie/moxie.md
===================================================================
--- gcc/config/moxie/moxie.md	(revision 219418)
+++ gcc/config/moxie/moxie.md	(working copy)
@@ -367,7 +367,7 @@ 
 ;; -------------------------------------------------------------------------
 
 (define_constants
-  [(CC_REG 11)])
+  [(CC_REG 19)])
 
 (define_expand "cbranchsi4"
   [(set (reg:CC CC_REG)