+2014-06-04 Yvan Roux <yvan.roux@linaro.org>
+
+ Backport from trunk r211211.
+ 2014-06-04 Bin Cheng <bin.cheng@arm.com>
+
+ * config/aarch64/aarch64.c (aarch64_classify_address)
+ (aarch64_legitimize_reload_address): Support full addressing modes
+ for vector modes.
+ * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
+ (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
+
2014-05-25 Yvan Roux <yvan.roux@linaro.org>
Backport from trunk r209906.
;; <http://www.gnu.org/licenses/>.
(define_expand "mov<mode>"
- [(set (match_operand:VALL 0 "aarch64_simd_nonimmediate_operand" "")
- (match_operand:VALL 1 "aarch64_simd_general_operand" ""))]
+ [(set (match_operand:VALL 0 "nonimmediate_operand" "")
+ (match_operand:VALL 1 "general_operand" ""))]
"TARGET_SIMD"
"
if (GET_CODE (operands[0]) == MEM)
)
(define_expand "movmisalign<mode>"
- [(set (match_operand:VALL 0 "aarch64_simd_nonimmediate_operand" "")
- (match_operand:VALL 1 "aarch64_simd_general_operand" ""))]
+ [(set (match_operand:VALL 0 "nonimmediate_operand" "")
+ (match_operand:VALL 1 "general_operand" ""))]
"TARGET_SIMD"
{
/* This pattern is not permitted to fail during expansion: if both arguments
)
(define_insn "*aarch64_simd_mov<mode>"
- [(set (match_operand:VD 0 "aarch64_simd_nonimmediate_operand"
+ [(set (match_operand:VD 0 "nonimmediate_operand"
"=w, m, w, ?r, ?w, ?r, w")
- (match_operand:VD 1 "aarch64_simd_general_operand"
+ (match_operand:VD 1 "general_operand"
"m, w, w, w, r, r, Dn"))]
"TARGET_SIMD
&& (register_operand (operands[0], <MODE>mode)
)
(define_insn "*aarch64_simd_mov<mode>"
- [(set (match_operand:VQ 0 "aarch64_simd_nonimmediate_operand"
+ [(set (match_operand:VQ 0 "nonimmediate_operand"
"=w, m, w, ?r, ?w, ?r, w")
- (match_operand:VQ 1 "aarch64_simd_general_operand"
+ (match_operand:VQ 1 "general_operand"
"m, w, w, w, r, r, Dn"))]
"TARGET_SIMD
&& (register_operand (operands[0], <MODE>mode)
enum rtx_code code = GET_CODE (x);
rtx op0, op1;
bool allow_reg_index_p =
- outer_code != PARALLEL && GET_MODE_SIZE(mode) != 16;
-
+ outer_code != PARALLEL && (GET_MODE_SIZE (mode) != 16
+ || aarch64_vector_mode_supported_p (mode));
/* Don't support anything other than POST_INC or REG addressing for
AdvSIMD. */
- if (aarch64_vector_mode_p (mode)
+ if (aarch64_vect_struct_mode_p (mode)
&& (code != POST_INC && code != REG))
return false;
{
rtx x = *x_p;
- /* Do not allow mem (plus (reg, const)) if vector mode. */
- if (aarch64_vector_mode_p (mode)
+ /* Do not allow mem (plus (reg, const)) if vector struct mode. */
+ if (aarch64_vect_struct_mode_p (mode)
&& GET_CODE (x) == PLUS
&& REG_P (XEXP (x, 0))
&& CONST_INT_P (XEXP (x, 1)))