[Bug,target/77570] New: [msp430-elf] Wrong assembly in delay_cycles_32x insn declaration
diff mbox

Message ID xnvay0vmbf.fsf@greed.delorie.com
State New
Headers show

Commit Message

DJ Delorie Sept. 12, 2016, 9:29 p.m. UTC
Patch applied as per bug report...

2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>

	PR target/77570
	* config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.

Patch
diff mbox

Index: config/msp430/msp430.md
===================================================================
--- config/msp430/msp430.md	(revision 240100)
+++ config/msp430/msp430.md	(revision 240101)
@@ -1456,21 +1456,21 @@ 
 
 (define_insn "delay_cycles_32x"
   [(unspec_volatile [(match_operand 0 "immediate_operand" "i")
 		     (match_operand 1 "immediate_operand" "i")
 		     ] UNS_DELAY_32X)]
   ""
-  "PUSHM.A	#2,r13
+  "PUSHM.A	#2,r14
 	MOV.W	%A0, r13
 	MOV.W	%B0, r14
 1:	SUB.W	#1, r13
 	SUBC.W	#0, r14
 	JNE	1b
 	TST.W	r13
 	JNE	1b
-	POPM.A	#2,r13"
+	POPM.A	#2,r14"
   )
 
 (define_insn "delay_cycles_16"
   [(unspec_volatile [(match_operand 0 "immediate_operand" "i")
 		     (match_operand 1 "immediate_operand" "i")
 		     ] UNS_DELAY_16)]