This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]