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

DJ Delorie dj@redhat.com
Mon Sep 12 21:45:00 GMT 2016


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.

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)]



More information about the Gcc-patches mailing list