[Bug target/64304] AArch64 miscompilation with -mgeneral-regs-only

2015-05-05 Thread fyang at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64304

--- Comment #7 from fyang at gcc dot gnu.org ---
Author: fyang
Date: Tue May  5 15:50:18 2015
New Revision: 222812

URL: https://gcc.gnu.org/viewcvs?rev=222812&root=gcc&view=rev
Log:
Backported from mainline
2015-01-19  Jiong Wang  
Andrew Pinski  

PR target/64304
* config/aarch64/aarch64.md (define_insn "*ashl3_insn"): Deleted.
(ashl3): Don't expand if operands[2] is not constant.

Added:
branches/gcc-4_9-branch/gcc/testsuite/gcc.target/aarch64/pr64304.c
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/aarch64/aarch64.md
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


[Bug target/64304] AArch64 miscompilation with -mgeneral-regs-only

2015-05-05 Thread fyang at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64304

--- Comment #8 from fyang at gcc dot gnu.org ---
Author: fyang
Date: Tue May  5 15:59:12 2015
New Revision: 222814

URL: https://gcc.gnu.org/viewcvs?rev=222814&root=gcc&view=rev
Log:
Backported from mainline
2015-01-19  Jiong Wang  
Andrew Pinski  

PR target/64304
* config/aarch64/aarch64.md (define_insn "*ashl3_insn"): Deleted.
(ashl3): Don't expand if operands[2] is not constant.

Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.target/aarch64/pr64304.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/config/aarch64/aarch64.md
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


[Bug target/63173] performance problem with simd intrinsics vld2_dup_* on aarch64-none-elf

2014-10-24 Thread fyang at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63173

--- Comment #8 from fyang at gcc dot gnu.org ---
Author: fyang
Date: Fri Oct 24 10:53:08 2014
New Revision: 216630

URL: https://gcc.gnu.org/viewcvs?rev=216630&root=gcc&view=rev
Log:
PR target/63173
* config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
(__LD3R_FUNC): Ditto.
(__LD4R_FUNC): Ditto.
(vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8, 
 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64, 
 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64 
 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
(vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8 
 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32 
 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16 
 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16 
 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
(vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8 
 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32 
 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32 
 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16 
 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16 
 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
* config/aarch64/aarch64.md (define_c_enum "unspec"): Add
UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
* config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
builtins.
* config/aarch64/aarch64-simd.md (aarch64_simd_ld2r): New
pattern.
(aarch64_simd_ld3r): Likewise.
(aarch64_simd_ld4r): Likewise.
(aarch64_ld2r): New expand.
(aarch64_ld3r): Likewise.
(aarch64_ld4r): Likewise.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/aarch64/aarch64-simd-builtins.def
trunk/gcc/config/aarch64/aarch64-simd.md
trunk/gcc/config/aarch64/aarch64.md
trunk/gcc/config/aarch64/arm_neon.h


[Bug target/59593] [arm big-endian] using "ldrh" access a immediate which stored in a memory by word

2014-11-19 Thread fyang at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59593

--- Comment #3 from fyang at gcc dot gnu.org ---
Author: fyang
Date: Wed Nov 19 13:46:16 2014
New Revision: 217772

URL: https://gcc.gnu.org/viewcvs?rev=217772&root=gcc&view=rev
Log:
PR target/59593
* config/arm/arm.md (define_attr "arch"): Add v6t2.
(define_attr "arch_enabled"): Add test for the above.
(*movhi_insn_arch4): Add new alternative.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arm/arm.md


[Bug target/59593] [arm big-endian] using "ldrh" access a immediate which stored in a memory by word

2014-12-03 Thread fyang at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59593

--- Comment #6 from fyang at gcc dot gnu.org ---
Author: fyang
Date: Wed Dec  3 13:39:56 2014
New Revision: 218314

URL: https://gcc.gnu.org/viewcvs?rev=218314&root=gcc&view=rev
Log:
   Backport from mainline
   2014-11-20  Ramana Radhakrishnan  

   PR target/59593
   * config/arm/arm.md (*movhi_insn): Use right formatting
   for immediate.

   2014-11-19  Felix Yang  
   Shanyao Chen  

   PR target/59593
   * config/arm/arm.md (define_attr "arch"): Add v6t2.
   (define_attr "arch_enabled"): Add test for the above.
   (*movhi_insn_arch4): Add new alternative.

Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/arm/arm.md


[Bug target/59593] [arm big-endian] using "ldrh" access a immediate which stored in a memory by word

2014-12-04 Thread fyang at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59593

--- Comment #7 from fyang at gcc dot gnu.org ---
Author: fyang
Date: Thu Dec  4 15:15:57 2014
New Revision: 218376

URL: https://gcc.gnu.org/viewcvs?rev=218376&root=gcc&view=rev
Log:
   Backport from mainline
   2014-11-20  Ramana Radhakrishnan  

   PR target/59593
   * config/arm/arm.md (*movhi_insn): Use right formatting
   for immediate.

   2014-11-19  Felix Yang  
   Shanyao Chen  

   PR target/59593
   * config/arm/arm.md (define_attr "arch"): Add v6t2.
   (define_attr "arch_enabled"): Add test for the above.
   (*movhi_insn_arch4): Add new alternative.

Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/config/arm/arm.md


[Bug target/64240] [5.0 Regression][AArch64] SMS-3.c causes runtime exception(segfault).

2014-12-16 Thread fyang at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64240

--- Comment #6 from fyang at gcc dot gnu.org ---
Author: fyang
Date: Tue Dec 16 14:58:03 2014
New Revision: 218780

URL: https://gcc.gnu.org/viewcvs?rev=218780&root=gcc&view=rev
Log:
+   PR rtl-optimization/64240
+   * ddg.c (mark_mem_use): Check *iter instead of *x.

Added:
trunk/gcc/testsuite/gcc.dg/sms-12.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ddg.c
trunk/gcc/testsuite/ChangeLog