Commit 00a892b8 by Nick Clifton Committed by Nick Clifton

rs6000.c (rs6000_emit_move): Handle V1DImode moves.

* config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
* config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
* config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.

From-SVN: r57274
parent 60a0224c
2002-09-18 Nick Clifton <nickc@redhat.com>
* config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
* config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
* config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
2002-09-17 Zack Weinberg <zack@codesourcery.com>
* ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
......
......@@ -2645,6 +2645,7 @@ rs6000_emit_move (dest, source, mode)
case V4HImode:
case V2SFmode:
case V2SImode:
case V1DImode:
if (CONSTANT_P (operands[1])
&& !easy_vector_constant (operands[1]))
operands[1] = force_const_mem (mode, operands[1]);
......
......@@ -876,6 +876,7 @@ extern int rs6000_default_long_calls;
#define SPE_VECTOR_MODE(MODE) \
((MODE) == V4HImode \
|| (MODE) == V2SFmode \
|| (MODE) == V1DImode \
|| (MODE) == V2SImode)
/* Define this macro to be nonzero if the port is prepared to handle
......
......@@ -2253,6 +2253,22 @@
evor %0,%1,%1"
[(set_attr "type" "vecload")])
(define_expand "movv1di"
[(set (match_operand:V1DI 0 "nonimmediate_operand" "")
(match_operand:V1DI 1 "any_operand" ""))]
"TARGET_SPE"
"{ rs6000_emit_move (operands[0], operands[1], V1DImode); DONE; }")
(define_insn "*movv1di_internal"
[(set (match_operand:V1DI 0 "nonimmediate_operand" "=m,r,r")
(match_operand:V1DI 1 "input_operand" "r,m,r"))]
"TARGET_SPE"
"@
evstdd%X0 %1,%y0
evldd%X1 %0,%y1
evor %0,%1,%1"
[(set_attr "type" "vecload")])
(define_expand "movv4hi"
[(set (match_operand:V4HI 0 "nonimmediate_operand" "")
(match_operand:V4HI 1 "any_operand" ""))]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment