Re: [PATCH][AArch64] LR register not used in leaf functions

2014-11-15 Thread Andrew Pinski
On Sat, Nov 15, 2014 at 6:08 AM, Jiong Wang wrote: > 2014-11-15 0:15 GMT+00:00 Andrew Pinski : >> On Tue, Sep 30, 2014 at 8:00 AM, Jiong Wang wrote: >>> On 27/09/14 22:20, Kugan wrote: >>>> >>>> >>>> On 23/09/14 01:58, Jiong Wang wrote: &g

Re: [PATCH][AArch64] LR register not used in leaf functions

2014-11-15 Thread Andrew Pinski
On Sat, Nov 15, 2014 at 7:21 AM, Andrew Pinski wrote: > On Sat, Nov 15, 2014 at 6:08 AM, Jiong Wang > wrote: >> 2014-11-15 0:15 GMT+00:00 Andrew Pinski : >>> On Tue, Sep 30, 2014 at 8:00 AM, Jiong Wang wrote: >>>> On 27/09/14 22:20, Kugan wrote: >>>&g

[Comitted] Add a few testcases

2014-11-16 Thread Andrew Pinski
Add a few testcases which I had floating around in a private tree. Most of these testcases failed in our private tree at one point due to local changes. Since it is always good to have more testcases, I decided to commit them. I tested all of them on x86_64 with no failures. Thanks, Andrew Chan

Re: Updated LRA rematerialization patch has been committed

2014-11-16 Thread Andrew Pinski
mpiles glibc on aarch64. I filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63906 to record this issue. My analysis so far has found that it is rematerizing the new value of sp where the old value of sp is needed after an alloca. Thanks, Andrew Pinski > > So I've committed the rem

Re: [PATCH 2/3] [AARCH64] Add scheduler for ThunderX

2014-11-17 Thread Andrew Pinski
On Mon, Nov 17, 2014 at 12:04 PM, Sebastian Pop wrote: > Andrew Pinski wrote: >> diff --git a/gcc/config/aarch64/thunderx.md b/gcc/config/aarch64/thunderx.md >> new file mode 100644 >> index 000..30e4395 >> --- /dev/null >> +++ b/gcc/config/aarc

Re: [PATCH] Relax one gcc_assert in lra-eliminate for fixed register

2014-11-17 Thread Andrew Pinski
On Mon, Nov 17, 2014 at 12:36 PM, Jeff Law wrote: > On 11/17/14 02:26, Jiong Wang wrote: >> >> as Pinski reported at >> >>https://gcc.gnu.org/ml/gcc-patches/2014-11/msg01967.html >> >> the previosu LR free patch on AArch64 cause one gcc_assert in >> lra-elimination.c >> >> one of the problem i

Re: patch to fix PR63906

2014-11-17 Thread Andrew Pinski
On Mon, Nov 17, 2014 at 4:15 PM, Vladimir Makarov wrote: > The following patch fixes > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63906 > > LRA rematerialization checks SP offsets at origin and rematerialization > places when trying to rematerialize an insn. But the offsets are not valid > if

Re: [PATCH 2/2, AArch64] Pipeline model for APM XGene-1.

2014-11-19 Thread Andrew Pinski
ion for the xgene1 micro-architecture > + > +(define_automaton "xgene1") > + > +(define_cpu_unit "decode_out_0" "xgene1") > +(define_cpu_unit "decode_out_1" "xgene1") > +(define_cpu_unit "decode_out_2" "xgene1&qu

[PATCH/IPA] Fix ipa-polymorphic-call when size of Pmode is not the size of pointers in user code

2014-11-19 Thread Andrew Pinski
tested for aarch64-elf with no regressions. Thanks, Andrew Pinski ChangeLog: ipa/63981 * ipa-polymorphic-call.c (possible_placement_new): Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode). (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise. (extr_type_from_vtbl_ptr_store

Re: [PATCH/IPA] Fix ipa-polymorphic-call when size of Pmode is not the size of pointers in user code

2014-11-19 Thread Andrew Pinski
On Wed, Nov 19, 2014 at 5:11 PM, H.J. Lu wrote: > On Wed, Nov 19, 2014 at 4:54 PM, Andrew Pinski wrote: >> Hi, >> For ILP32 on AARCH64, we have ptr_mode != Pmode (we have ptr_mode >> being SImode while Pmode is DImode and POINTER_SIZE is 32). This >> breaks ipa-

Re: [PATCH/IPA] Fix ipa-polymorphic-call when size of Pmode is not the size of pointers in user code

2014-11-19 Thread Andrew Pinski
On Wed, Nov 19, 2014 at 5:35 PM, H.J. Lu wrote: > On Wed, Nov 19, 2014 at 5:23 PM, Andrew Pinski wrote: >> On Wed, Nov 19, 2014 at 5:11 PM, H.J. Lu wrote: >>> On Wed, Nov 19, 2014 at 4:54 PM, Andrew Pinski wrote: >>>> Hi, >>>> For ILP32 on AARCH64, w

Re: [PATCH/IPA] Fix ipa-polymorphic-call when size of Pmode is not the size of pointers in user code

2014-11-19 Thread Andrew Pinski
On Wed, Nov 19, 2014 at 5:37 PM, H.J. Lu wrote: > On Wed, Nov 19, 2014 at 5:36 PM, Andrew Pinski wrote: >> On Wed, Nov 19, 2014 at 5:35 PM, H.J. Lu wrote: >>> On Wed, Nov 19, 2014 at 5:23 PM, Andrew Pinski wrote: >>>> On Wed, Nov 19, 2014 at 5:11 PM, H.J. Lu wro

Re: [PATCH/IPA] Fix ipa-polymorphic-call when size of Pmode is not the size of pointers in user code

2014-11-19 Thread Andrew Pinski
On Wed, Nov 19, 2014 at 5:53 PM, H.J. Lu wrote: > On Wed, Nov 19, 2014 at 5:39 PM, Andrew Pinski wrote: >> On Wed, Nov 19, 2014 at 5:37 PM, H.J. Lu wrote: >>> On Wed, Nov 19, 2014 at 5:36 PM, Andrew Pinski wrote: >>>> On Wed, Nov 19, 2014 at 5:35 PM, H.J. Lu wro

Re: [PATCHv4][MIPS] Implement O32 ABI extensions (GCC)

2014-11-21 Thread Andrew Pinski
ler \$f30 ... FAIL: gcc.target/mips/movdf-1.c -O1 scan-assembler-times ldc1 1 ... FAIL: gcc.target/mips/movdf-2.c -O1 scan-assembler mthc1 FAIL: gcc.target/mips/movdf-2.c -O1 scan-assembler mtc1 ... FAIL: gcc.target/mips/movdf-3.c -O1 scan-assembler-times mtc1 2 ... Thanks, Andrew Pinski > > Matthew

[Committed/AARCH64] Fix gcc.target/aarch64/test_frame_*.c testcases after ccmp patches

2014-11-22 Thread Andrew Pinski
obvious after a test of aarch64-elf. Thanks, Andrew Pinski ChangeLog: * gcc.target/aarch64/test_frame_1.c: Expect only two loads of x30 (in the epilogue). * gcc.target/aarch64/test_frame_6.c: Likewise. * gcc.target/aarch64/test_frame_2.c: Expect only one pair load of x30 and x19 (in the epilogue

[PATCH/AARCH64] v2 Add aligning of functions/loops/jumps

2014-11-22 Thread Andrew Pinski
Hi, This is just a rebase of https://gcc.gnu.org/ml/gcc-patches/2014-11/msg01615.html as requested by https://gcc.gnu.org/ml/gcc-patches/2014-11/msg01736.html. Nothing has changed in it. OK? Built and tested on aarch64-elf with no regressions. Thanks, Andrew Pinski ChangeLog: * config

[PATCH] Improve shrink wrap for lo_sum

2014-11-22 Thread Andrew Pinski
Hi, As discussed at https://gcc.gnu.org/ml/gcc-patches/2014-10/msg00997.html, this is the one line patch which improves shrink wrapping for lo_sum. OK? Bootstrapped and tested on x86_64 and built and tested for aarch64-elf with no regressions. It fixes shrink_wrap_symbol_ref_1.c which was fail

[PATCH/TopLevel] Fix compiling libgo with a combined sources

2014-11-22 Thread Andrew Pinski
aarch64 cross compile on an older system where objcopy did not understand aarch64. OK? Bootstrapped and tested on x86_64 with no regressions. Also tested with a combined build for a cross compiler to aarch64-linux-gnu. Thanks, Andrew Pinski * Makefile.def (flags_to_pass): Pass

[Comitted/c++ testsuite] Fix initlist-lifetime*.C on some simulators

2014-11-22 Thread Andrew Pinski
Hi, On some simulators (Octeon simple-exec) argc can be greater than 2. This causes initlist-lifetime1.C and initlist-lifetime2.C to fail. To fix this, I use a volatile variable. Committed as obvious after testing on x86_64. Thanks, Andrew Pinski * g++.dg/cpp0x/initlist-lifetime1.C

[Committed] Add some more testcases

2014-11-23 Thread Andrew Pinski
Hi, While looking at what patches I had in the internal tree here at Cavium, I noticed two more testcases which I did upstream already. One testcase for PR 53135 (reduced from dhcp-server) and another one for an ICE which showed up while improving PHI-OPT (reduced from gnupg-2.0.18). Committed a

Re: [PATCH, AARCH64] Fix ICE in CCMP (PR64015)

2014-11-23 Thread Andrew Pinski
0..eeed665 > --- /dev/null > +++ b/gcc/testsuite/gcc.target/aarch64/pr64015.c > @@ -0,0 +1,7 @@ > +/* { dg-do compile } */ > +/* { dg-options " -O2 " } */ > +int > +test (unsigned short a, unsigned char b) > +{ > + return a > 0xfff2 && b > 252; > +} Since this testcase is generic (except for the -O2), it really should go into gcc.c-torture/compile instead of remove the two dg-* directives so it can be tested on more than AARCH64 and on more optimization levels. Thanks, Andrew Pinski > > >

[PATCH/AARCH64] make bswap vector consistent with scalar name

2014-11-24 Thread Andrew Pinski
scalar version, I am proposing this patch to make them consistent. OK? Build and tested on aarch64-elf with no regressions. Thanks, Andrew Pinski ChangeLog: * config/aarch64/aarch64-simd-builtins.def (bswap): Use CF2 rather than CF10 so 2 is appended on the code. * config

Re: [PATCH, libobjc]: Remove ‘...’ is static but used in inline function ‘...’ which is not static

2014-11-25 Thread Andrew Pinski
This patch is incorrect as get_imp is exported from libobjc.so. See libobjc.def. I would rather use -std=gnu90 to compile these source files as you are changing the exported symbols. This also fixes bug 63863. Thanks, Andrew Pinski > > > 2014-11-25 Uros Bizj

[Committed] Add a new testcase

2014-11-26 Thread Andrew Pinski
aarch64_float_const_representable_p in aarch64.c. Thanks, Andrew Pinski ChangeLog: * gcc.c-torture/execute/20141125-1.c: New testcase. Index: testsuite/gcc.c-torture/execute/20141125-1.c === --- testsuite/gcc.c-torture/execute/20141125-1.c(revision 0

Re: [PATCH] Add a new option "-fmerge-bitfields" (patch / doc inside)

2014-11-26 Thread Andrew Pinski
lds (); > + return res; > } > > /* Perform "late" intraprocedural SRA. */ > diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c > index 44656ea..cdb3850 100644 > --- a/gcc/tree-ssa-sccvn.c > +++ b/gcc/tree-ssa-sccvn.c > @@ -4410,29 +4410,6 @@ get_next_value_

[PATCH] Fix middle-end/64061, ICE in gen_rtx_SUBREG

2014-11-26 Thread Andrew Pinski
bootstrapped and tested this on both aarch64-linux-gnu and x86_64-linux-gnu with no regression on either. Thanks, Andrew Pinski ChangeLog: * lra.c (lra_substitute_pseudo): Use gen_lowpart_if_possible instead of gen_rtx_SUBREG/gen_lowpart_SUBREG. testsuite/ChangeLog

Re: [PATCH] Fix middle-end/64061, ICE in gen_rtx_SUBREG

2014-11-26 Thread Andrew Pinski
On Wed, Nov 26, 2014 at 2:00 PM, Andrew Pinski wrote: > Hi, > The problem here is lra_substitute_pseudo calls gen_rtx_SUBREG with > a VOIDmode (const_int) argument but really it should not be calling > gen_rtx_SUBREG directly instead it should be using > gen_lowpart_if_possib

Re: [PATCH 0/6] various combine patches, v2

2014-11-29 Thread Andrew Pinski
On Sat, Nov 29, 2014 at 5:15 PM, Segher Boessenkool wrote: > On Thu, Nov 27, 2014 at 05:44:30PM -0800, Segher Boessenkool wrote: >> The first three of these are from the previous series, with hopefully >> all comments addressed. >> >> The fourth simplifies the code that breaks up an arith insn wit

Re: [PATCH] Fix middle-end/64061, ICE in gen_rtx_SUBREG

2014-12-01 Thread Andrew Pinski
On Mon, Dec 1, 2014 at 10:26 AM, Jeff Law wrote: > On 11/26/14 15:00, Andrew Pinski wrote: >> >> Hi, >>The problem here is lra_substitute_pseudo calls gen_rtx_SUBREG with >> a VOIDmode (const_int) argument but really it should not be calling >> gen_rtx_SUB

Re: [PATCH/AARCH64] Fix gcc.c-torture/compile/pr37433.c for AARCH64:ILP32.

2015-02-24 Thread Andrew Pinski
On Tue, Feb 24, 2015 at 9:18 PM, Jeff Law wrote: > On 02/17/15 08:31, Marcus Shawcroft wrote: >> >> On 9 February 2015 at 05:41, Andrew Pinski wrote: >>> >>> The problem here is that we get a symbol_ref which is SImode but for >>> the sibcall patterns

Re: [PATCH][AArch64] Make aarch64_min_divisions_for_recip_mul configurable

2015-03-03 Thread Andrew Pinski
On Tue, Mar 3, 2015 at 10:06 AM, Wilco Dijkstra wrote: > This patch makes aarch64_min_divisions_for_recip_mul configurable for float > and double. This allows > CPUs with really fast or multiple dividers to return 3 (or even 4) if that > happens to be faster > overall. No code generation change

Re: [PATCH] ASan on unaligned accesses

2015-03-04 Thread Andrew Pinski
On Wed, Mar 4, 2015 at 12:00 AM, Marat Zakirov wrote: > Hi all! > > Here is the patch which forces ASan to work on memory access without proper > alignment. it's useful because some programs like linux kernel often cheat > with alignment which may cause false negatives. This patch needs additional

Re: [PATCH][RFA] [PR rtl-optimization/64317] Enhance postreload-gcse.c to eliminate more redundant loads

2015-03-17 Thread Andrew Pinski
On Tue, Mar 17, 2015 at 11:27 AM, Jeff Law wrote: > On 03/17/2015 04:35 AM, Richard Biener wrote: > >>> I'll test both. In the common case, the cost is going to be the basic >>> bookkeeping so that we can compute the transparent property. The >>> actual >>> computation of transparency and everyt

Re: [PATCH][RFC] Fix PR63155

2015-03-18 Thread Andrew Pinski
); printf("second: %d.\n", b); } int f(int a, ...) { int b; va_list ap; va_start(ap, a); g(a, ap); va_end (ap); return 0; } int main(void) { return f(2, FIRST, SECOND); } --- CUT --- With the new glibc I get: first: 4194304. second: 1. But with the old one I get : first:

Re: New type-based pool allocator code miscompiled due to aliasing issue?

2015-06-15 Thread Andrew Pinski
On Mon, Jun 15, 2015 at 2:09 AM, Martin Liška wrote: > On 06/11/2015 08:19 PM, Richard Biener wrote: >> On June 11, 2015 7:50:36 PM GMT+02:00, Jakub Jelinek >> wrote: >>> On Fri, Jun 12, 2015 at 12:58:12AM +0800, pins...@gmail.com wrote: This is just a bug in the older compiler. There was a

Re: [patch 2/6] scalar-storage-order merge: C front-end

2015-06-16 Thread Andrew Pinski
On Tue, Jun 16, 2015 at 2:06 AM, Ramana Radhakrishnan wrote: > > > On 16/06/15 09:54, Eric Botcazou wrote: >> >> This is the C front-end + C family part. >> >> * doc/extend.texi (type attributes): Document >> scalar_storage_order. >> * doc/invoke.texi (Warnings): Document -Wno-scal

[PATCH/AARCH64] Update ThunderX schedule model

2015-06-23 Thread Andrew Pinski
Hi, This patch updates the schedule model to be more accurate and model SIMD and fp instructions that I had missed out when I had the last patch. OK? Bootstrapped and tested on aarch64-linux-gnu with no regeessions. Thanks, Andrew Pinski ChangeLog: * config/aarch64/thunderx.md

Re: Add .def file for public target instructions

2015-06-25 Thread Andrew Pinski
On Thu, Jun 25, 2015 at 3:57 PM, H.J. Lu wrote: > On Thu, Jun 25, 2015 at 1:09 PM, H.J. Lu wrote: >> On Tue, Jun 23, 2015 at 11:41 AM, Richard Sandiford >> wrote: >>> [A fair bit later than promised, sorry...] >>> >>> Mikhail posted a patch to make genflags generate the default HAVE_foo >>> and

Re: [PATCH] [aarch64] Implemented reciprocal square root (rsqrt) estimation in -ffast-math

2015-06-26 Thread Andrew Pinski
On Thu, Jun 25, 2015 at 1:24 AM, Ramana Radhakrishnan wrote: > Benedikt, > > On 25/06/15 08:01, pins...@gmail.com wrote: >> >> >> >> >> >>> On Jun 18, 2015, at 5:04 AM, Benedikt Huber >>> wrote: >>> >>> arch64 offers the instructions frsqrte and frsqrts, for rsqrt estimation >>> and >>> a Newton-

Re: [PATCH] 2015-06-15 Benedikt Huber

2015-06-26 Thread Andrew Pinski
/dev/null > +++ b/gcc/testsuite/gcc.target/aarch64/rsqrt.c > @@ -0,0 +1,113 @@ > +/* { dg-do run } */ > +/* { dg-options "-O3 -fno-inline --save-temps -ffast-math" } */ Maybe

Re: [RFA] Factor conversion out of COND_EXPR using match.pd pattern

2015-06-29 Thread Andrew Pinski
On Mon, Jun 29, 2015 at 3:12 PM, Marc Glisse wrote: > On Mon, 29 Jun 2015, Jeff Law wrote: > >>> That said - for this kind of patterns testcases that exercise the >>> patterns >>> on GIMPLE would be very appreciated. >> >> It may be the case that these patterns don't make a lot of sense on gimple

Re: [PATCH, Aarch64] Add FMA steering pass for Cortex-A57

2015-01-16 Thread Andrew Pinski
2d 100644 > --- a/gcc/config/aarch64/aarch64.c > +++ b/gcc/config/aarch64/aarch64.c > @@ -6716,6 +6716,11 @@ aarch64_parse_tune (void) > } > > > +/* Defined in config/aarch64/fma_steering.c. */ > + > +void > +aarch64_register_fma_steering (v

Re: Use static chain and libffi for Go closures

2015-01-17 Thread Andrew Pinski
: unknown type name >>>> 'ffi_go_closure' >>>> makeFuncFFI(const struct __go_func_type *ftyp, ffi_go_closure *impl) >>>> ^ >>>> make[4]: *** [reflect/makefunc_ffi_c.lo] Error 1 >>> >>> What target? >> >> Why does it matter? > > Because I don't see that error here, obviously. It fails for me with mips64-linux-gnu. Thanks, Andrew Pinski > > > r~ >

Re: Use static chain and libffi for Go closures

2015-01-17 Thread Andrew Pinski
On Sat, Jan 17, 2015 at 2:02 PM, Andreas Schwab wrote: > Andrew Pinski writes: > >> On Sat, Jan 17, 2015 at 1:26 PM, Richard Henderson wrote: >>> On 01/17/2015 11:07 AM, Andreas Schwab wrote: >>>> Richard Henderson writes: >>>> >&

Re: [PATCH, AARCH64] Fix ICE in CCMP (PR64015)

2015-01-18 Thread Andrew Pinski
On Sun, Jan 18, 2015 at 11:58 AM, Christophe Lyon wrote: > On 16 January 2015 at 11:54, Marcus Shawcroft > wrote: >> On 15 January 2015 at 18:18, Richard Henderson wrote: >>> On 12/15/2014 12:41 AM, Zhenqiang Chen wrote: +(define_expand "cmp" + [(set (match_operand 0 "cc_register" "")

Re: [Patch, AArch64, testsuite] PR63971: Revert test_frame_* patch.

2015-01-19 Thread Andrew Pinski
On Thu, Jan 15, 2015 at 8:18 AM, Mike Stump wrote: > On Jan 14, 2015, at 3:50 AM, Tejas Belagod wrote: >> As agreed here (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63971), please >> can I reverse Andrew's patch >> out(https://gcc.gnu.org/ml/gcc-patches/2014-11/msg02916.html)? > > Ok. > > Unl

Re: [committed] Cherry-pick 2 libsanitizer aarch64 changes (PR sanitizer/64435)

2015-01-21 Thread Andrew Pinski
ncorrect. It is 39, 42 and 48 bits. Thanks, Andrew Pinski > > 2015-01-21 Jakub Jelinek > > PR sanitizer/64435 > * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick > upstream r226637. > * sanitizer_common/sanitizer_p

Re: [patch, libobjc] export __objc_get_forward_imp, get_imp again

2015-01-21 Thread Andrew Pinski
; > don't make me very confident in such a change. > The extern prototypes really work with both -std=gnu89 and -std=gnu11 and > thus will at least keep status quo. Let's do that then. This also fixes bug 63863. Thanks, Andrew Pinski > > Jakub

Re: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained.

2015-01-26 Thread Andrew Pinski
On Mon, Jan 26, 2015 at 1:55 AM, Hale Wang wrote: > Hi, > > The GCC combine pass combines the insns even though they contain volatile > registers. This doesn't make sence. > > The test case listed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46164 > shows the expected asm command "mov r1, r1" i

Re: [PATCH, c] PR c/48956: diagnostics for conversions involving complex types

2015-01-29 Thread Andrew Pinski
On Thu, Jan 29, 2015 at 6:58 PM, Mike Stump wrote: > On Jan 29, 2015, at 4:15 PM, Joseph Myers wrote: >> The patch is OK for GCC 6 > > We will be releasing 5.x compilers for the next decade?! Does he really have > to wait 10 years? > > Why not, just OK for stage 1? You missed the memo on the v

[PATCH/AARCH64] Fix 64893: ICE with vget_lane_u32 with C++ front-end at -O0

2015-02-02 Thread Andrew Pinski
use an ICE on any source code so I changed the assert to be a sorry if either of the two arguments are not integer constants. OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions and I was able to bootstrap without a modified libcpp. Thanks, Andrew Pinski ChangeLog:

Re: [PATCH, FT32] initial support

2015-02-02 Thread Andrew Pinski
re. An example: + " +{ + /* If this is a store, force the value into a register. */ + if (MEM_P (operands[0])) +operands[1] = force_reg (SFmode, operands[1]); + if (CONST_DOUBLE_P(operands[1])) +operands[1] = force_const_mem(SFmode, operands[1]); +}") You do some of the ins

Re: [PATCH,WWWDOCS] MIPS changes for GCC 5.0

2015-02-04 Thread Andrew Pinski
On Wed, Feb 4, 2015 at 8:46 AM, Matthew Fortune wrote: > Hi Catherine, > > I've made a first pass at writing up the MIPS changes for GCC 5.0. > Could you take a read and see what needs some more work? One comment below. > > Thanks, > Matthew > > Index: htdocs/gcc-5/changes.html > ==

Re: [libobjc] Fix failures on AIX (PR libobjc/63765)

2015-02-04 Thread Andrew Pinski
e removal of _XOPEN_SOURCE is the right patch. I’ve > not seen any substantive disagreement. I’d post and test that patch. A > build person, a libobjc person, a reasonably an affected target person or a > global person can approve in my book. I’m not any of them… If Pinski is > happy with my approving it, he can weigh in. I’d be happy to approve it. I am happy with which ever approach is decided as the safest and most portable. Thanks, Andrew Pinski

Re: [PATCH] More fixes for update_web_docs_svn for jit docs (PR jit/64257)

2015-02-04 Thread Andrew Pinski
On Wed, Feb 4, 2015 at 10:32 AM, David Malcolm wrote: > To build the jit docs, we need to use sphinx 1.0 or later; the > 0.6.6 in EPEL 6 doesn't support all the directives we need. > > The alternate python-sphinx10 in EPEL 6 has 1.0.8: > python-sphinx10-1.0.8-1.el6.noarch > which is able to buil

Re: [PATCH]Keep location info when expand complex component-wise load/store.

2015-02-06 Thread Andrew Pinski
On Thu, Feb 5, 2015 at 3:22 AM, Renlin Li wrote: > Hi all, > > location information is missing when rewrite complex component-wise > load/store. > > This patch add the location info to fix the recently gcc.dg/uninit-13.c and > gcc.dg/uninit-17.c failures on arm target. The compiler warns uninitial

Re: [PATCH/AARCH64] Fix 64893: ICE with vget_lane_u32 with C++ front-end at -O0

2015-02-06 Thread Andrew Pinski
On Mon, Feb 2, 2015 at 11:37 PM, Jakub Jelinek wrote: > On Mon, Feb 02, 2015 at 02:51:43PM -0800, Andrew Pinski wrote: >> While trying to build the GCC 5 with GCC 5, I ran into an ICE when >> building libcpp at -O0. The problem is the C++ front-end was not >> folding sizeof

Re: [PATCH/AARCH64] Fix 64893: ICE with vget_lane_u32 with C++ front-end at -O0

2015-02-07 Thread Andrew Pinski
On Fri, Feb 6, 2015 at 5:02 PM, Andrew Pinski wrote: > On Mon, Feb 2, 2015 at 11:37 PM, Jakub Jelinek wrote: >> On Mon, Feb 02, 2015 at 02:51:43PM -0800, Andrew Pinski wrote: >>> While trying to build the GCC 5 with GCC 5, I ran into an ICE when >>> building libcpp at

Re: [PATCH, AArch64] Handle SYMBOL_SMALL_TPREL appropriately

2015-02-07 Thread Andrew Pinski
? > Regression tested on aarch64-elf. Also bootstrapped and tested on aarch64-linux-gnu with no regressions (and many testcases in libgomp passing now). Thanks, Andrew Pinski > > Thanks, > Naveen > > 2015-02-02 Andrew Pinski > Naveen H.

[PATCH/AARCH64] Xfail ssa-dom-cse-2.c

2015-02-08 Thread Andrew Pinski
Like https://gcc.gnu.org/ml/gcc-patches/2015-01/msg02646.html, we should xfail this testcase for aarch64 too. OK? Bootstrapped and tested on aarch64-linux-gnu. Thanks, Andrew Pinski ChangeLog: * gcc.dg/tree-ssa/ssa-dom-cse-2.c: xfail for AARCH64 also. commit

[Committed/AARCH64] Remove dummy GTY variable

2015-02-08 Thread Andrew Pinski
The aarch64 back-end has a dummy gty variable which is no longer needed as there are other GTY marked variables now in aarch64.c This should speed up (very slightly) PCH generate and reading in. Committed as obvious after a build and test for aarch64-elf. Thanks, Andrew Pinski ChangeLog

[PATCH/AARCH64] Fix gcc.c-torture/compile/pr37433.c for AARCH64:ILP32.

2015-02-08 Thread Andrew Pinski
The problem here is that we get a symbol_ref which is SImode but for the sibcall patterns we only match symbol_refs which use DImode. I added a new testcase that tests the non-value sibcall pattern too. OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions. Thanks, Andrew Pinski

[PATCH] Implement libffi for AARCH64:ILP32

2015-02-09 Thread Andrew Pinski
load cif, fn, and user_data by 32bit instead of 64bits as they are stored as pointers in C code. With this patch, I got no failures in the libffi testsuite that is included with GCC. OK? Built and tested on aarch64 with no regressions. Thanks, Andrew Pinski ChangeLog: * src/aarch64/ffitar

Re: [PATCH 09/36] floatformat.h: Wrap in extern "C".

2015-02-09 Thread Andrew Pinski
On Mon, Feb 9, 2015 at 3:20 PM, Pedro Alves wrote: > Just like libiberty.h. So that C++ programs, such as GDB when built > as a C++ program, can use it. Why is not needed for GCC building with C++ compiler? Thanks, Andrew > > include/ChangeLog: > 2015-02-09 Pedro Alves > > * floatfo

Re: [PATCH 1/2, combine] Try REG_EQUAL for nonzero_bits

2015-02-09 Thread Andrew Pinski
On Mon, Feb 9, 2015 at 5:51 PM, Thomas Preud'homme wrote: > Hi Eric, > > I'm taking over Zhenqiang's work on this. Comments and updated patch > below. > >> From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- >> ow...@gcc.gnu.org] On Behalf Of Eric Botcazou >> > + rtx reg_equal = insn ? find_

Re: [PATCH] Implement libffi for AARCH64:ILP32

2015-02-10 Thread Andrew Pinski
On Tue, Feb 10, 2015 at 10:35 AM, Richard Henderson wrote: > On 02/09/2015 12:40 AM, Andrew Pinski wrote: >> #ifndef LIBFFI_ASM >> +#ifdef __ILP32__ >> +typedef unsigned long long ffi_arg; >> +typedef signed long long ffi_sarg; >> +#else > > You need to s

Re: [PATCH] Implement libffi for AARCH64:ILP32

2015-02-10 Thread Andrew Pinski
On Tue, Feb 10, 2015 at 1:20 PM, Richard Henderson wrote: > On 02/10/2015 11:02 AM, Andrew Pinski wrote: >> +#define FFI_SIZEOF_JAVA_RAW 4 > > Since aarch64 doesn't implement the raw java api, this is irrelevant. Ok. This is what I applied to GCC after testing it (I don&

[PATCH] Implement boehm-gc for AARCH64:ILP32

2015-02-10 Thread Andrew Pinski
regressions and many libjava testcases now pass. OK for boehm-gc upstream? I don't have write access to upstream sources though, if approved there please apply it also. Thanks, Andrew Pinski GCC ChangeLog: * include/private/gcconfig.h (CPP_WORDSZ): Correct for AARCH64:ILP32. (ALIG

Re: [PATCHv2/AARCH64 2/3] Fix TLS for ILP32.

2015-02-20 Thread Andrew Pinski
_assert (mode == Pmode); >> + emit_insn (gen_tlsie_small_sidi (tmp_reg, imm)); >> + } > > > Andrew, do you recall the circumstance that trigger the mode == SImode > code path through the above code? I've been trying to trigger this > while working on

Re: [Patch] Add MIPS flag to avoid use of ldc1/sdc1/ldxc1/sdxc1

2014-10-27 Thread Andrew Pinski
On Mon, Oct 27, 2014 at 3:23 PM, Steve Ellcey wrote: > > There are some MIPS patches that have been applied to the Google Android GCC > tree but not been submitted to FSF GCC. I would like to get those patches > checked in if possible. The first one is to add a new MIPS flag to turn > off the u

Re: [Patch] Add MIPS flag to avoid use of ldc1/sdc1/ldxc1/sdxc1

2014-10-27 Thread Andrew Pinski
On Mon, Oct 27, 2014 at 3:35 PM, Moore, Catherine wrote: > > >> -Original Message----- >> From: Andrew Pinski [mailto:pins...@gmail.com] >> Sent: Monday, October 27, 2014 6:32 PM >> To: Steve Ellcey >> Cc: Moore, Catherine; Matthew Fortune; GCC Patches >

Re: [Patch] Add MIPS flag to avoid use of ldc1/sdc1/ldxc1/sdxc1

2014-10-27 Thread Andrew Pinski
On Mon, Oct 27, 2014 at 3:44 PM, Moore, Catherine wrote: > > >> -Original Message----- >> From: Andrew Pinski [mailto:pins...@gmail.com] >> Sent: Monday, October 27, 2014 6:41 PM >> To: Moore, Catherine >> Cc: Steve Ellcey; Matthew Fortune; GCC Patches >

Re: [PATCH, ifcvt] Check size cost in noce_try_store_flag_mask

2014-10-30 Thread Andrew Pinski
ached one (though It is not updated for the new cores including octeon3). Thanks, Andrew Pinski > > diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c > index 653653f..7bb2578 100644 > --- a/gcc/ifcvt.c > +++ b/gcc/ifcvt.c > @@ -1393,6 +1393,9 @@ noce_try_store_flag_mask (struct n

Re: [PATCH/AARCH64] Move the rest of the cost tables to aarch64-cost-tables.h

2014-11-07 Thread Andrew Pinski
On Fri, Nov 7, 2014 at 7:08 AM, Richard Earnshaw wrote: > On 21/10/14 22:37, Andrew Pinski wrote: >> Hi, >> To make aarch64.c a little smaller and a little easier to >> understand, I have moved the rest of the cost tables >> (cpu_addrcost_table, cpu_regmove_cost, cpu

[Committed] Add a testcase for miscompile

2014-11-07 Thread Andrew Pinski
I was getting a bootstrap failure but there was no testsuite failures that was testing the problem. Committed after a quick test to make sure the testcase is still a valid executable testcase now. Thanks, Andrew Pinski * gcc.c-torture/execute/20141107-1.c: New testcase. Index: gcc.c-torture/ex

Re: [PATCH] Fix up cmove expansion (PR target/58864, take 2)

2014-11-07 Thread Andrew Pinski
On Mon, Dec 2, 2013 at 2:51 PM, Jakub Jelinek wrote: > Hi! > > On Sat, Nov 30, 2013 at 12:38:30PM +0100, Eric Botcazou wrote: >> > Rather than adding do_pending_stack_adjust () in all the places, especially >> > when it isn't clear whether emit_conditional_move will be called at all and >> > wheth

Re: [gimple-classes, committed 4/6] tree-ssa-tail-merge.c: Use gassign

2014-11-10 Thread Andrew Pinski
simply convert > a param or field type. Some examples: > > Functions passed a gsi > == > Sometimes functions are passed a gsi, where it can be known that the gsi > currently references a stmt of known kind (although that isn't > necessarily obvious from

Re: [PATCH] c++ify sreal

2014-11-10 Thread Andrew Pinski
-gnu, ok? > > Ok. Can you please replace remaining HOST_WIDE_INT > vestiges in there with [u]int64_t please? This patch breaks the build on debian 6.0: ../../gcc/sreal.c: In member function ‘int64_t sreal::to_int() const’: ../../gcc/sreal.c:159: error: ‘INT64_MAX’ was not declared

Re: [PATCH] c++ify sreal

2014-11-11 Thread Andrew Pinski
On Tue, Nov 11, 2014 at 1:23 AM, Marc Glisse wrote: > On Tue, 11 Nov 2014, Jakub Jelinek wrote: > >> On Tue, Nov 11, 2014 at 08:51:41AM +0100, Uros Bizjak wrote: >>> >>> Hello! >>> >> do $subject, and cleanup for always 64 bit hwi. >> >> >> bootstrapped + regtested x86_64-unknown-l

Re: [PATCH 2/2] Simplify and extend VRP edge-assertion code

2014-11-11 Thread Andrew Pinski
I have found that if p was used below also. We still have if(p != 0). I just saw that recently when I was working on enhancing PHI-opt. Thanks, Andrew Pinski > >> To achieve this the patch merges the mutually recursive functions >> register_edge_assert_for_1() and register_edg

Re: [PATCH] c++ify sreal

2014-11-11 Thread Andrew Pinski
On Tue, Nov 11, 2014 at 4:54 AM, Richard Biener wrote: > On Tue, Nov 11, 2014 at 1:08 PM, Andrew Pinski wrote: >> On Tue, Nov 11, 2014 at 1:23 AM, Marc Glisse wrote: >>> On Tue, 11 Nov 2014, Jakub Jelinek wrote: >>> >>>> On Tue, Nov 11, 2014

[Committed] Fix bug 61997

2014-11-11 Thread Andrew Pinski
aarch64-elf. Thanks, Andrew Pinski ChangeLog: Bug target/61997 * config.gcc (aarch64*-*-*): Set target_gtfiles to include aarch64-builtins.c. * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h at the end of the file. Index: config.gcc

Re: [PING][PATCH, AArch64] Add doloop_end pattern for -fmodulo-sched

2014-11-12 Thread Andrew Pinski
On Wed, Nov 12, 2014 at 2:54 AM, Jiong Wang wrote: > On 12/11/14 10:01, Yangfei (Felix) wrote: > >> + if (GET_MODE (operands[0]) != DImode) >> + FAIL; > > > shouldn't SImode be considered for -mabi=ilp32 ? I don't think it is needed for -mabi=ilp32 since word_mode is still DImode for -

Re: [PATCH] Fix PR/63841: empty constructor doesn't zero-initialize

2014-11-12 Thread Andrew Pinski
On Wed, Nov 12, 2014 at 9:25 PM, Teresa Johnson wrote: > Added testcase. Here is the new patch: > > 2014-11-12 > > gcc: > PR tree-optimization/63841 > * tree.c (initializer_zerop): A constructor with no elements > does not zero initialize. Actually an empty constructor

Re: [PATCH] Fix PR/63841: empty constructor doesn't zero-initialize

2014-11-12 Thread Andrew Pinski
On Wed, Nov 12, 2014 at 9:38 PM, Teresa Johnson wrote: > On Wed, Nov 12, 2014 at 9:30 PM, Andrew Pinski wrote: >> On Wed, Nov 12, 2014 at 9:25 PM, Teresa Johnson wrote: >>> Added testcase. Here is the new patch: >>> >>> 2014-11-12 >>> &g

[PATCH] AARCH64: ILP32: Fix aarch64_asan_shadow_offset

2019-05-22 Thread Andrew Pinski
aarch64_asan_shadow_offset is using the wrong offset for ILP32. Change it to be a decent one. OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions, Thanks, Andrew Pinski ChangeLog: * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): Fix ILP32 value. --- gcc/config

Re: [PATCH/AARCH64] Add OcteonTX for -mcpu=

2018-12-26 Thread Andrew Pinski
On Fri, Nov 2, 2018 at 4:06 AM Richard Earnshaw (lists) wrote: > > On 01/11/2018 01:52, Andrew Pinski wrote: > > On Tue, Oct 30, 2018 at 10:21 AM Richard Earnshaw (lists) > > wrote: > >> > >> On 30/10/2018 17:06, Andrew Pinski wrote: > >>> Hi all,

Re: [PATCH] Add missing popcount simplifications (PR90693)

2019-08-13 Thread Andrew Pinski
gt; > Bootstrap OK, OK for commit? I think this should be in expand stage where there could be comparison of the cost of the RTLs. The only reason why it is faster for AARCH64 is the requirement of moving between the GPRs and the SIMD registers. Thanks, Andrew Pinski > > ChangeLo

Re: [PATCH][AArch64] Don't split 64-bit constant stores to volatile location

2019-08-22 Thread Andrew Pinski
se we end up not merging the strs into an stp. It's questionable > whether the use of STP is valid for volatile in the first place. It is not valid as the architecture does not require stp to be atomic so then the order of the stores can change Thanks, Andrew Pinski > To avoid unnece

Re: [PATCH] Fix up go regressions caused by my recent switchconv changes (PR go/91617)

2019-09-02 Thread Andrew Pinski
esent on POINTER_TYPEs. > > Here is an updated version that passed bootstrap/regtest on both > x86_64-linux and i686-linux, ok for trunk? Seems like this would fix PR91632 also. Which has a C testcase included. Thanks, Andrew Pinski > > 2019-09-02 Jakub Jelinek > >

Re: [PATCH] combine: Fix various shortcomings in make_more_copies (PR87701, PR87780)

2018-10-29 Thread Andrew Pinski
On Mon, Oct 29, 2018 at 12:29 AM Segher Boessenkool wrote: > > This rewrites most of make_more_copies, in the process fixing a few PRs > and some other bugs, and working around a few target problems. Certain > notes turn out to actually change the meaning of the RTL, so we cannot > drop them; and

[PATCH/AARCH64] Add OcteonTX for -mcpu=

2018-10-30 Thread Andrew Pinski
tested on aarch64-linux-gnu with no regression. Thanks, Andrew Pinski gcc/ChangeLog: * config/aarch64/aarch64-cores.def (octeontx): New. (octeontx81): Likewise. (octeontx83): Likewise. * config/aarch64/aarch64-tune.md: Regenerate. Index: gcc/config/aarch64/aarch64-cores.def

Re: [PATCH/AARCH64] Add OcteonTX for -mcpu=

2018-10-31 Thread Andrew Pinski
On Tue, Oct 30, 2018 at 10:21 AM Richard Earnshaw (lists) wrote: > > On 30/10/2018 17:06, Andrew Pinski wrote: > > Hi all, > > There was a name change of the Products, ThunderX T81 and ThunderX > > T83 to OcteonTX family name. This change was done a few years ago but

Re: [PATCH v2] [aarch64] Correct the maximum shift amount for shifted operands.

2018-11-09 Thread Andrew Pinski
he testcases to cover > the changed shift amount. I think it might be better if we added new testcases instead of modifying old ones in this case. The main reason is that if we test an older compiler with the newer testsuite (which you can do), you should get the tests failing. The main

Re: [patch] allow target config to state r18 is fixed on aarch64

2018-11-09 Thread Andrew Pinski
On Fri, Nov 9, 2018 at 10:09 AM Olivier Hainque wrote: > > Hello Wilco, > > Would you have further thoughts on the patches proposed in > > https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01453.html > > ? > > There was: > > 1) * config/aarch64/aarch64.c (PROBE_STACK_FIRST_REG) : Redefine as > R

Re: [PATCH, GCC, AArch64] Branch Dilution Pass

2018-11-09 Thread Andrew Pinski
LE_SIZE) +{ + error ("branch dilution: max branches (%d) must be \ + less than granule size (%d)", MAX_BRANCH, GRANULE_SIZE); +} You should almost never use error in backend (there are a few exceptions to that rule). Either use sorry or internal_error. Also the way you wrapped

Re: [PATCH][RFC] Introduce BIT_FIELD_INSERT

2018-11-14 Thread Andrew Pinski
ide_int_to_tree (type, wi::bit_or (tem, tem2)); > + } This seems incorrect for the case where BYTES_BIG_ENDIAN as far as I can tell. With BYTES_BIG_ENDIAN, the bits position starts most significiant rather than the least significiant. Sorry I am bring this up after this has b

Re: [PATCH v3] [aarch64] Add CPU support for Ampere Computing's eMAG.

2018-11-21 Thread Andrew Pinski
ene1,8A, AARCH64_FL_FOR_ARCH8 > | AARCH64_FL_CRC | AARCH64_FL_CRYPTO, emag, 0x50, 0x000, 3) I think you should add a comment to say why this order is required like above for thunderxt88p1. Thanks, Andrew Pinski > + > /* APM ('P') cores. */ > AARCH64_CORE("x

Re: [PATCH] RISC-V: Add -malign-data= option.

2019-06-25 Thread Andrew Pinski
bvious what word means here; it could be either 32bit or 64bit depending on the option. Also my other suggestion is create a new macro where you pass riscv_align_data_type == riscv_align_data_type_word for the "(ALIGN) < BITS_PER_WORD) " check to reduce the code duplication. Thanks, An

Re: [PATCH][middle-end/88784] Middle end is missing some optimizations about unsigned

2019-06-28 Thread Andrew Pinski
= x != 0; >_3 = _1 & _2; >_4 = (int) _3; >D.2837 = (_Bool) _4; >return D.2837; > } > ` > > The reason for the inconsistency between these two behaviors is param > logical-op-non-short-circuit. If we add the pattern to the match.pd > file, we can only optimize the situation in which the statement is in > the same basic block (logical-op-non-short-circuit=1, x86). But for > a cross-basic block (logical-op-non-short-circuit=0, power), match.pd > can't handle this situation. > > Another reason is that I found out maybe_fold_and_comparisons and > maybe_fold_or_comparisons are not only called by ifcombine pass but > also by reassoc pass. Using this method can basically unify param > logical-op-non-short-circuit=0 or 1. As mentioned before ifcombine pass should be using gimple-match instead of fold_build. Try converting ifcombine over to gimple-match infrastructure and add these to match.pd. NOTE tree-ssa-phiopt should also be moved over to gimple-match but that is a different issue. Thanks, Andrew Pinski > > Thanks, > Lijia He > > > > > jeff > > >

<    4   5   6   7   8   9   10   11   12   13   >