+2008-05-13 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/36222
+ * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
+ and op1 expansion before vector concat to have less live pseudos.
+
2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
* tree.h (init_phinodes, fini_phinodes, release_phi_node,
phinodes_print_statistics, init_ssanames, fini_ssanames,
- make_ssa_name, duplicate_ssa_name,
- duplicate_ssa_name_ptr_info, release_ssa_name,
- release_defs, replace_ssa_name_symbol,
+ make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
+ release_ssa_name, release_defs, replace_ssa_name_symbol,
ssanames_print_statistics): Move ...
* tree-flow.h: ... here.
- * tree-ssanames.c (init_ssanames): Add arguments FN and
- SIZE. Use FN instead of cfun.
+ * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
+ Use FN instead of cfun.
(make_ssa_name_fn): Rename from make_ssa_name.
- (pass_release_ssa_names): Add TODO_dump_func to finish
- flags.
+ (pass_release_ssa_names): Add TODO_dump_func to finish flags.
* tree-flow-inline.h (make_ssa_name): Move from
- tree-ssanames.c. Convert to static inline. Call
- make_ssa_name_fn.
+ tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
* omp-low.c (expand_omp_parallel):
* tree-flow-inline.h (redirect_edge_var_map_result):
- * tree-ssa.c (init_tree_ssa): Add argument FN. Use it
- instead of cfun.
+ * tree-ssa.c (init_tree_ssa): Add argument FN. Use it instead of cfun.
Update all users.
2008-05-13 Tom Tromey <tromey@redhat.com>
/* For V4SF and V4SI, we implement a concat of two V2 vectors.
Recurse to load the two halves. */
- op0 = gen_reg_rtx (half_mode);
- v = gen_rtvec (2, XVECEXP (vals, 0, 0), XVECEXP (vals, 0, 1));
- ix86_expand_vector_init (false, op0, gen_rtx_PARALLEL (half_mode, v));
-
op1 = gen_reg_rtx (half_mode);
v = gen_rtvec (2, XVECEXP (vals, 0, 2), XVECEXP (vals, 0, 3));
ix86_expand_vector_init (false, op1, gen_rtx_PARALLEL (half_mode, v));
+ op0 = gen_reg_rtx (half_mode);
+ v = gen_rtvec (2, XVECEXP (vals, 0, 0), XVECEXP (vals, 0, 1));
+ ix86_expand_vector_init (false, op0, gen_rtx_PARALLEL (half_mode, v));
+
use_vec_concat = true;
}
break;
if (use_vec_concat)
{
- if (!register_operand (op0, half_mode))
- op0 = force_reg (half_mode, op0);
if (!register_operand (op1, half_mode))
op1 = force_reg (half_mode, op1);
+ if (!register_operand (op0, half_mode))
+ op0 = force_reg (half_mode, op0);
emit_insn (gen_rtx_SET (VOIDmode, target,
gen_rtx_VEC_CONCAT (mode, op0, op1)));
+2008-05-13 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/36222
+ * gcc.target/i386/pr36222-1.c: New test.
+
2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/sse-init-v4hi-1.c: New.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -msse2" } */
+
+typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));
+typedef int __v4si __attribute__ ((__vector_size__ (16)));
+
+__m128i _mm_set_epi32 (int __q3, int __q2, int __q1, int __q0)
+{
+ return (__m128i)(__v4si){ __q0, __q1, __q2, __q3 };
+}
+
+/* { dg-final { scan-assembler-not "movdqa" } } */