aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@gcc.gnu.org>2004-01-26 17:45:42 +0000
committerFariborz Jahanian <fjahanian@gcc.gnu.org>2004-01-26 17:45:42 +0000
commitd3a16cbdafbe179f6fb2a297cb84430343255641 (patch)
tree797b91d9d0dfdc6aee31900e369ab12ff5584eac /gcc/expr.c
parent6e290f11559f1bebdb91b7ff556ef160ee241d1e (diff)
downloadgcc-d3a16cbdafbe179f6fb2a297cb84430343255641.zip
gcc-d3a16cbdafbe179f6fb2a297cb84430343255641.tar.gz
gcc-d3a16cbdafbe179f6fb2a297cb84430343255641.tar.bz2
re PR middle-end/13779 ([3.4 only] powerpc64: incorrect initialization of 'long long' with constant)
PR middle-end/13779 split constant correctly into register components of PARALLEL insn. OKed by Roger Sayle. From-SVN: r76649
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 3c4593d..861f90c 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -1919,6 +1919,9 @@ emit_group_load (rtx dst, rtx orig_src, tree type ATTRIBUTE_UNUSED, int ssize)
emit_move_insn (mem, src);
tmps[i] = adjust_address (mem, mode, (int) bytepos);
}
+ else if (CONSTANT_P (src) && GET_MODE (dst) != BLKmode
+ && XVECLEN (dst, 0) > 1)
+ tmps[i] = simplify_gen_subreg (mode, src, GET_MODE(dst), bytepos);
else if (CONSTANT_P (src)
|| (GET_CODE (src) == REG && GET_MODE (src) == mode))
tmps[i] = src;