From: rsandifo Date: Tue, 12 Jul 2011 14:30:32 +0000 (+0000) Subject: gcc/ X-Git-Tag: upstream/4.9.2~19386 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c1dfb841713037f2147700b57ae22fafcb8e17b;p=platform%2Fupstream%2Flinaro-gcc.git gcc/ * config/arm/predicates.md (neon_struct_operand): Make a normal predicate. (neon_struct_or_register_operand): New predicate. * config/arm/neon.md (movmisalign): Replace predicates with neon_struct_or_register_operand. (*movmisalign_neon_store, *movmisalign_neon_load): Use neon_struct_operand instead of memory_operand. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176204 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d121c5c..792508d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2011-07-12 Richard Sandiford + + * config/arm/predicates.md (neon_struct_operand): Make a normal + predicate. + (neon_struct_or_register_operand): New predicate. + * config/arm/neon.md (movmisalign): Replace predicates + with neon_struct_or_register_operand. + (*movmisalign_neon_store, *movmisalign_neon_load): Use + neon_struct_operand instead of memory_operand. + 2011-07-12 Martin Jambor * cgraph.h (cgraph_get_node_or_alias): Removed declaration. diff --git a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md index becb524..1f9ea67 100644 --- a/gcc/config/arm/neon.md +++ b/gcc/config/arm/neon.md @@ -372,8 +372,8 @@ }) (define_expand "movmisalign" - [(set (match_operand:VDQX 0 "nonimmediate_operand" "") - (unspec:VDQX [(match_operand:VDQX 1 "general_operand" "")] + [(set (match_operand:VDQX 0 "neon_struct_or_register_operand") + (unspec:VDQX [(match_operand:VDQX 1 "neon_struct_or_register_operand")] UNSPEC_MISALIGNED_ACCESS))] "TARGET_NEON && !BYTES_BIG_ENDIAN" { @@ -386,7 +386,7 @@ }) (define_insn "*movmisalign_neon_store" - [(set (match_operand:VDX 0 "memory_operand" "=Um") + [(set (match_operand:VDX 0 "neon_struct_operand" "=Um") (unspec:VDX [(match_operand:VDX 1 "s_register_operand" " w")] UNSPEC_MISALIGNED_ACCESS))] "TARGET_NEON && !BYTES_BIG_ENDIAN" @@ -394,15 +394,15 @@ [(set_attr "neon_type" "neon_vst1_1_2_regs_vst2_2_regs")]) (define_insn "*movmisalign_neon_load" - [(set (match_operand:VDX 0 "s_register_operand" "=w") - (unspec:VDX [(match_operand:VDX 1 "memory_operand" " Um")] + [(set (match_operand:VDX 0 "s_register_operand" "=w") + (unspec:VDX [(match_operand:VDX 1 "neon_struct_operand" " Um")] UNSPEC_MISALIGNED_ACCESS))] "TARGET_NEON && !BYTES_BIG_ENDIAN" "vld1.\t{%P0}, %A1" [(set_attr "neon_type" "neon_vld1_1_2_regs")]) (define_insn "*movmisalign_neon_store" - [(set (match_operand:VQX 0 "memory_operand" "=Um") + [(set (match_operand:VQX 0 "neon_struct_operand" "=Um") (unspec:VQX [(match_operand:VQX 1 "s_register_operand" " w")] UNSPEC_MISALIGNED_ACCESS))] "TARGET_NEON && !BYTES_BIG_ENDIAN" @@ -410,8 +410,8 @@ [(set_attr "neon_type" "neon_vst1_1_2_regs_vst2_2_regs")]) (define_insn "*movmisalign_neon_load" - [(set (match_operand:VQX 0 "s_register_operand" "=w") - (unspec:VQX [(match_operand:VQX 1 "memory_operand" " Um")] + [(set (match_operand:VQX 0 "s_register_operand" "=w") + (unspec:VQX [(match_operand:VQX 1 "neon_struct_operand" " Um")] UNSPEC_MISALIGNED_ACCESS))] "TARGET_NEON && !BYTES_BIG_ENDIAN" "vld1.\t{%q0}, %A1" diff --git a/gcc/config/arm/predicates.md b/gcc/config/arm/predicates.md index 215d58d..678a31c 100644 --- a/gcc/config/arm/predicates.md +++ b/gcc/config/arm/predicates.md @@ -732,9 +732,13 @@ return true; }) -(define_special_predicate "neon_struct_operand" +(define_predicate "neon_struct_operand" (and (match_code "mem") (match_test "TARGET_32BIT && neon_vector_mem_operand (op, 2)"))) +(define_predicate "neon_struct_or_register_operand" + (ior (match_operand 0 "neon_struct_operand") + (match_operand 0 "s_register_operand"))) + (define_special_predicate "add_operator" (match_code "plus"))