diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-04 06:38:56 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-04 06:38:56 +0000 |
commit | 4867a033a5aa737fe0c6f420949e8adf952e56a8 (patch) | |
tree | 5cdb83b9d2d84c7ed93535b98565144e433e4ec7 /gcc/cse.c | |
parent | 6a59b91ab7ddd7625388a61169ff626f6bc35664 (diff) | |
download | gcc-4867a033a5aa737fe0c6f420949e8adf952e56a8.tar.gz |
gcc:
* simplify-rtx.c (simplify_subreg): Reduce problem of finding
vector mode subregs of constants to finding integer mode
subregs of constants.
* cse.c (cse_insn): Use simplify_gen_subreg.
* convert.c (convert_to_integer): Don't strip a NOP_EXPR
From a vector mode expression of different size than the
target mode.
gcc/testsuite:
* gcc.c-torture/compile/simd-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55234 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cse.c b/gcc/cse.c index 01a79d5c978..14ffd801bbe 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -6202,9 +6202,8 @@ cse_insn (insn, libcall_insn) && ! exp_equiv_p (elt->exp, elt->exp, 1, 0)) continue; - new_src = gen_lowpart_if_possible (new_mode, elt->exp); - if (new_src == 0) - new_src = gen_rtx_SUBREG (new_mode, elt->exp, 0); + new_src + = simplify_gen_subreg (new_mode, elt->exp, elt->mode, 0); src_hash = HASH (new_src, new_mode); src_elt = lookup (new_src, src_hash, new_mode); |