+2005-03-11 Richard Henderson <rth@redhat.com>
+
+ PR target/20415
+ * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
+ * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
+ to match.
+
2005-03-11 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.h (mips_fix_vr4130_string): Declare.
case V4HImode:
if (!mmx_ok)
return false;
- val = gen_lowpart (SImode, val);
- x = gen_rtx_TRUNCATE (HImode, val);
- x = gen_rtx_VEC_DUPLICATE (mode, x);
- emit_insn (gen_rtx_SET (VOIDmode, target, x));
- return true;
+ if (TARGET_SSE || TARGET_3DNOW_A)
+ {
+ val = gen_lowpart (SImode, val);
+ x = gen_rtx_TRUNCATE (HImode, val);
+ x = gen_rtx_VEC_DUPLICATE (mode, x);
+ emit_insn (gen_rtx_SET (VOIDmode, target, x));
+ return true;
+ }
+ else
+ {
+ smode = HImode;
+ wsmode = SImode;
+ wvmode = V2SImode;
+ goto widen;
+ }
case V8QImode:
if (!mmx_ok)
(vec_duplicate:V4HI
(truncate:HI
(match_operand:SI 1 "register_operand" "0"))))]
- "TARGET_MMX"
+ "TARGET_SSE || TARGET_3DNOW_A"
"pshufw\t{$0, %0, %0|%0, %0, 0}"
[(set_attr "type" "mmxcvt")
(set_attr "mode" "DI")])