(set_attr "memory" "store")
(set_attr "mode" "<sseinsnmode>")])
-(define_insn "sse2_movq128"
- [(set (match_operand:V2DI 0 "register_operand" "=v")
+(define_expand "sse2_movq128"
+ [(set (match_operand:V2DI 0 "register_operand")
(vec_concat:V2DI
(vec_select:DI
- (match_operand:V2DI 1 "nonimmediate_operand" "vm")
+ (match_operand:V2DI 1 "nonimmediate_operand")
(parallel [(const_int 0)]))
(const_int 0)))]
+ "TARGET_SSE2")
+
+(define_insn "*sse2_movq128_<mode>"
+ [(set (match_operand:VI8F_128 0 "register_operand" "=v")
+ (vec_concat:VI8F_128
+ (vec_select:<ssescalarmode>
+ (match_operand:VI8F_128 1 "nonimmediate_operand" "vm")
+ (parallel [(const_int 0)]))
+ (match_operand:<ssescalarmode> 2 Â"const0_operand" "C")))]
"TARGET_SSE2"
"%vmovq\t{%1, %0|%0, %q1}"
[(set_attr "type" "ssemov")
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -msse2" } */
+typedef double v2df __attribute__ ((vector_size (16)));
+typedef long long v2di __attribute__((vector_size(16)));
+
+v2df foo_v2df (v2df x)
+{
+ return __builtin_shuffle (x, (v2df) { 0, 0 }, (v2di) { 0, 2 });
+}
+
+/* { dg-final { scan-assembler "movq" } } */
+/* { dg-final { scan-assembler-not "pxor" } } */
+