Patchwork [committed] Update extract and insert patterns on PA

login
register
mail settings
Submitter John David Anglin
Date Jan. 9, 2013, 1:26 p.m.
Message ID <20130109132629.GA19025@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/210711/
State New
Headers show

Comments

John David Anglin - Jan. 9, 2013, 1:26 p.m.
Forgot this hunk in last change.

Dave

Patch

Index: config/pa/pa.c
===================================================================
--- config/pa/pa.c	(revision 195003)
+++ config/pa/pa.c	(working copy)
@@ -2190,8 +2190,12 @@ 
 		  emit_insn (gen_rtx_SET (VOIDmode, temp,
 					  gen_rtx_HIGH (mode, operand1)));
 		  emit_move_insn (temp, gen_rtx_LO_SUM (mode, temp, operand1));
-		  emit_insn (gen_insv (operand0, GEN_INT (32),
-				       const0_rtx, temp));
+		  if (mode == DImode)
+		    emit_insn (gen_insvdi (operand0, GEN_INT (32),
+					   const0_rtx, temp));
+		  else
+		    emit_insn (gen_insvsi (operand0, GEN_INT (32),
+					   const0_rtx, temp));
 		}
 	      else
 		{
@@ -2212,8 +2216,12 @@ 
 			  pos -= 1;
 			}
 
-		      emit_insn (gen_insv (operand0, GEN_INT (len),
-					   GEN_INT (pos), GEN_INT (v5)));
+		      if (mode == DImode)
+			emit_insn (gen_insvdi (operand0, GEN_INT (len),
+					       GEN_INT (pos), GEN_INT (v5)));
+		      else
+			emit_insn (gen_insvsi (operand0, GEN_INT (len),
+					       GEN_INT (pos), GEN_INT (v5)));
 
 		      len = pos > 0 && pos < 5 ? pos : 5;
 		      pos -= len;