sse.md (vec_extractv2df_1_sse): New.
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 21 Feb 2006 19:24:48 +0000 (19:24 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 21 Feb 2006 19:24:48 +0000 (19:24 +0000)
* config/i386/sse.md (vec_extractv2df_1_sse): New.
(vec_extractv2df_0_sse): New.

From-SVN: r111342

gcc/ChangeLog
gcc/config/i386/sse.md

index 8f6d7aa2f5a71135d6aa095a6993ddee3eca268d..1ef4b70253fbf050acba969bb28ff1cebe0db45d 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
+
+       * config/i386/sse.md (vec_extractv2df_1_sse): New.
+       (vec_extractv2df_0_sse): New.
+
 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
 
        * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
index 88c7adf081d619f7b53f8da6ab30f47d9cda2c41..50eced2ec329b4bf76e71b5c7ab8ac0fb8ad3a72 100644 (file)
   operands[0] = adjust_address (operands[0], DFmode, 8);
 })
 
+;; Not sure these two are ever used, but it doesn't hurt to have
+;; them. -aoliva
+(define_insn "*vec_extractv2df_1_sse"
+  [(set (match_operand:DF 0 "nonimmediate_operand" "=m,x,x")
+       (vec_select:DF
+         (match_operand:V2DF 1 "nonimmediate_operand" "x,x,o")
+         (parallel [(const_int 1)])))]
+  "!TARGET_SSE2 && TARGET_SSE
+   && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
+  "@
+   movhps\t{%1, %0|%0, %1}
+   movhlps\t{%1, %0|%0, %1}
+   movlps\t{%H1, %0|%0, %H1}"
+  [(set_attr "type" "ssemov")
+   (set_attr "mode" "V2SF,V4SF,V2SF")])
+
+(define_insn "*vec_extractv2df_0_sse"
+  [(set (match_operand:DF 0 "nonimmediate_operand" "=m,x,x")
+       (vec_select:DF
+         (match_operand:V2DF 1 "nonimmediate_operand" "x,x,m")
+         (parallel [(const_int 0)])))]
+  "!TARGET_SSE2 && TARGET_SSE
+   && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
+  "@
+   movlps\t{%1, %0|%0, %1}
+   movaps\t{%1, %0|%0, %1}
+   movlps\t{%1, %0|%0, %1}"
+  [(set_attr "type" "ssemov")
+   (set_attr "mode" "V2SF,V4SF,V2SF")])
+
 (define_insn "sse2_movsd"
   [(set (match_operand:V2DF 0 "nonimmediate_operand"   "=x,x,m,x,x,o")
        (vec_merge:V2DF