Patchwork s390: Use VOIDmode with gen_rtx_SET

login
register
mail settings
Submitter Richard Henderson
Date Aug. 10, 2012, 2:21 a.m.
Message ID <50247038.3090306@redhat.com>
Download mbox | patch
Permalink /patch/176327/
State New
Headers show

Comments

Richard Henderson - Aug. 10, 2012, 2:21 a.m.
Committed as obvious.


r~
* config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.

Patch

diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index 0ae77a2..d67c0eb 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -4684,9 +4684,8 @@  s390_expand_insv (rtx dest, rtx op1, rtx op2, rtx src)
 	  src = gen_lowpart (mode, src);
 	}
 
-      op = gen_rtx_SET (mode,
-			gen_rtx_ZERO_EXTRACT (mode, dest, op1, op2),
-			src);
+      op = gen_rtx_ZERO_EXTRACT (mode, dest, op1, op2),
+      op = gen_rtx_SET (VOIDmode, op, src);
       clobber = gen_rtx_CLOBBER (VOIDmode, gen_rtx_REG (CCmode, CC_REGNUM));
       emit_insn (gen_rtx_PARALLEL (VOIDmode, gen_rtvec (2, op, clobber)));