aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2006-01-13 18:28:57 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2006-01-13 18:28:57 +0000
commit4d9cab74fa2975564fae86f0062ceeaeb3b5b954 (patch)
treeaaa69d0ff5acfdfcfdcef553359ff04dd2572ff0
parent05b1e169b99ff16d8efc0ba5148782b7cb7ffde7 (diff)
downloadgcc-4d9cab74fa2975564fae86f0062ceeaeb3b5b954.zip
gcc-4d9cab74fa2975564fae86f0062ceeaeb3b5b954.tar.gz
gcc-4d9cab74fa2975564fae86f0062ceeaeb3b5b954.tar.bz2
sse.md (*vec_extractv2di_1_sse2): Reorder alternatives to match style of other entries.
* config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder alternatives to match style of other entries. (*vec_extractv2di_1_sse): Likewise. Fix mode attr. From-SVN: r109671
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/sse.md14
2 files changed, 13 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6d2d109..c39dba5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-13 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
+ alternatives to match style of other entries.
+ (*vec_extractv2di_1_sse): Likewise. Fix mode attr.
+
2006-01-13 Daniel Berlin <dberlin@dberlin.org>
PR tree-optimization/25771
diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index bb5ed69..bd943f7 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -3465,29 +3465,29 @@
})
(define_insn "*vec_extractv2di_1_sse2"
- [(set (match_operand:DI 0 "nonimmediate_operand" "=x,m,x")
+ [(set (match_operand:DI 0 "nonimmediate_operand" "=m,x,x")
(vec_select:DI
- (match_operand:V2DI 1 "nonimmediate_operand" "0,x,o")
+ (match_operand:V2DI 1 "nonimmediate_operand" "x,0,o")
(parallel [(const_int 1)])))]
"TARGET_SSE2 && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
"@
- psrldq\t{$4, %0|%0, 4}
movhps\t{%1, %0|%0, %1}
+ psrldq\t{$4, %0|%0, 4}
movq\t{%H1, %0|%0, %H1}"
- [(set_attr "type" "sseishft,ssemov,ssemov")
- (set_attr "mode" "TI,V4SF,TI")])
+ [(set_attr "type" "ssemov,sseishft,ssemov")
+ (set_attr "mode" "V2SF,TI,TI")])
;; Not sure this is ever used, but it doesn't hurt to have it. -aoliva
(define_insn "*vec_extractv2di_1_sse"
- [(set (match_operand:DI 0 "nonimmediate_operand" "=x,m,x")
+ [(set (match_operand:DI 0 "nonimmediate_operand" "=m,x,x")
(vec_select:DI
(match_operand:V2DI 1 "nonimmediate_operand" "x,x,o")
(parallel [(const_int 1)])))]
"!TARGET_SSE2 && TARGET_SSE
&& !(MEM_P (operands[0]) && MEM_P (operands[1]))"
"@
- movhlps\t{%1, %0|%0, %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")])