;; On big-endian this is { zeroes, operand }
(define_insn "move_lo_quad_internal_<mode>"
- [(set (match_operand:VQ_NO2E 0 "register_operand" "=w,w,w")
- (vec_concat:VQ_NO2E
+ [(set (match_operand:VQ 0 "register_operand" "=w,w,w")
+ (vec_concat:VQ
(match_operand:<VHALF> 1 "register_operand" "w,r,r")
- (vec_duplicate:<VHALF> (const_int 0))))]
+ (match_operand:<VHALF> 2 "aarch64_simd_or_scalar_imm_zero")))]
"TARGET_SIMD && !BYTES_BIG_ENDIAN"
"@
dup\\t%d0, %1.d[0]
(set_attr "length" "4")]
)
-(define_insn "move_lo_quad_internal_<mode>"
- [(set (match_operand:VQ_2E 0 "register_operand" "=w,w,w")
- (vec_concat:VQ_2E
- (match_operand:<VHALF> 1 "register_operand" "w,r,r")
- (const_int 0)))]
- "TARGET_SIMD && !BYTES_BIG_ENDIAN"
- "@
- dup\\t%d0, %1.d[0]
- fmov\\t%d0, %1
- dup\\t%d0, %1"
- [(set_attr "type" "neon_dup<q>,f_mcr,neon_dup<q>")
- (set_attr "simd" "yes,*,yes")
- (set_attr "fp" "*,yes,*")
- (set_attr "length" "4")]
-)
-
-(define_insn "move_lo_quad_internal_be_<mode>"
- [(set (match_operand:VQ_NO2E 0 "register_operand" "=w,w,w")
- (vec_concat:VQ_NO2E
- (vec_duplicate:<VHALF> (const_int 0))
- (match_operand:<VHALF> 1 "register_operand" "w,r,r")))]
- "TARGET_SIMD && BYTES_BIG_ENDIAN"
- "@
- dup\\t%d0, %1.d[0]
- fmov\\t%d0, %1
- dup\\t%d0, %1"
- [(set_attr "type" "neon_dup<q>,f_mcr,neon_dup<q>")
- (set_attr "simd" "yes,*,yes")
- (set_attr "fp" "*,yes,*")
- (set_attr "length" "4")]
-)
-
(define_insn "move_lo_quad_internal_be_<mode>"
- [(set (match_operand:VQ_2E 0 "register_operand" "=w,w,w")
- (vec_concat:VQ_2E
- (const_int 0)
+ [(set (match_operand:VQ 0 "register_operand" "=w,w,w")
+ (vec_concat:VQ
+ (match_operand:<VHALF> 2 "aarch64_simd_or_scalar_imm_zero")
(match_operand:<VHALF> 1 "register_operand" "w,r,r")))]
"TARGET_SIMD && BYTES_BIG_ENDIAN"
"@
(define_expand "move_lo_quad_<mode>"
[(match_operand:VQ 0 "register_operand")
- (match_operand:VQ 1 "register_operand")]
+ (match_operand:<VHALF> 1 "register_operand")]
"TARGET_SIMD"
{
+ rtx zs = CONST0_RTX (<VHALF>mode);
if (BYTES_BIG_ENDIAN)
- emit_insn (gen_move_lo_quad_internal_be_<mode> (operands[0], operands[1]));
+ emit_insn (gen_move_lo_quad_internal_be_<mode> (operands[0], operands[1], zs));
else
- emit_insn (gen_move_lo_quad_internal_<mode> (operands[0], operands[1]));
+ emit_insn (gen_move_lo_quad_internal_<mode> (operands[0], operands[1], zs));
DONE;
}
)