diff mbox

Commit: SH: Fix typo in atomic fetch sequence

Message ID 1411661413.3644.14.camel@yam-132-YW-E178-FTW
State New
Headers show

Commit Message

Oleg Endo Sept. 25, 2014, 4:10 p.m. UTC
On Thu, 2014-09-25 at 17:23 +0200, Oleg Endo wrote:
> On Thu, 2014-09-25 at 16:04 +0100, Nick Clifton wrote:
> > Hi Alex, Hi Kaz, Hi Oleg,
> > 
> >   I am applying the patch below as an obvious fix for a typo in the
> >   instruction sequence of the atomic_fetch_nand<mode>_soft_imask
> >   pattern.  I hope that this is OK with you.
> 
> Yes, ouch.  Thanks!
> I'll backport it to 4.8 and 4.9.

It turned out there was another such ldc vs stc typo.  Fixed on trunk
with r215607.  Fixed both typos on 4.9 with r215608 and on 4.8 with
r215609.

Cheers,
Oleg
diff mbox

Patch

Index: gcc/config/sh/sync.md
===================================================================
--- gcc/config/sh/sync.md	(revision 215608)
+++ gcc/config/sh/sync.md	(revision 215609)
@@ -903,7 +903,7 @@ 
 	 "	and	%0,%3"			"\n"
 	 "	not	%3,%3"			"\n"
 	 "	mov.<bwl>	%3,@%1"		"\n"
-	 "	stc	%4,sr";
+	 "	ldc	%4,sr";
 }
   [(set_attr "length" "20")])
 
@@ -1353,7 +1353,7 @@ 
 	 "	ldc	r0,sr"		"\n"
 	 "	mov.b	@%0,r0"		"\n"
 	 "	mov.b	%1,@%0"		"\n"
-	 "	stc	%2,sr"		"\n"
+	 "	ldc	%2,sr"		"\n"
 	 "	tst	r0,r0";
 }
   [(set_attr "length" "16")])