Re: riscv64 dep. computation

2019-02-14 Thread Paulo Matos
On 14/02/2019 19:56, Jim Wilson wrote: > On 2/14/19 3:13 AM, Paulo Matos wrote: >> If I compile this with -O2, sched1 groups all loads and all stores >> together. That's perfect. However, if I change TYPE to unsigned char and >> recompile, the stores and loads are interleaved. >> >> Further inve

gcc-7-20190214 is now available

2019-02-14 Thread gccadmin
Snapshot gcc-7-20190214 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/7-20190214/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 7 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-7

GCC missing -flto optimizations? SPEC lbm benchmark

2019-02-14 Thread Steve Ellcey
I have a question about SPEC CPU 2017 and what GCC can and cannot do with -flto. As part of some SPEC analysis I am doing I found that with -Ofast, ICC and GCC were not that far apart (especially spec int rate, spec fp rate was a slightly larger difference). But when I added -ipo to the ICC comma

Re: riscv64 dep. computation

2019-02-14 Thread Jim Wilson
On 2/14/19 3:13 AM, Paulo Matos wrote: If I compile this with -O2, sched1 groups all loads and all stores together. That's perfect. However, if I change TYPE to unsigned char and recompile, the stores and loads are interleaved. Further investigation shows that for unsigned char there are extra d

riscv64 dep. computation

2019-02-14 Thread Paulo Matos
Hello, While working on a private port of riscv, I noticed that upstream shows the same behaviour. For the code: #define TYPE unsigned short struct foo_t { TYPE a; TYPE b; TYPE c; }; void func (struct foo_t *x, struct foo_t *y) { y->a = x->a; y->b = x->b; y->c = x->c; } If I compil

RE: Warning: unpredictable: identical transfer and status registers --`stxr w4,x5,[x4] using aarch64 poky gcc 8.3

2019-02-14 Thread Peng Fan
> -Original Message- > From: Michael Matz [mailto:m...@suse.de] > Sent: 2019年2月13日 22:45 > To: Peng Fan > Cc: gcc@gcc.gnu.org; james.greenha...@arm.com; n...@arm.com; > jailhouse-...@googlegroups.com; will.dea...@arm.com; Catalin Marinas > > Subject: RE: Warning: unpredictable: identica