Re: Possible issue with ARC gcc 4.8

2015-07-06 Thread Vineet Gupta
On Monday 06 July 2015 12:04 PM, Richard Biener wrote: >> The point being ARC ISA provides a neat feature where core only considers >> lower 5 >> > bits of bitpos operands. Thus we can make such behaviour not only >> > deterministic in >> > the context of ARC, but also optimal, eliding the need f

Re: Possible issue with ARC gcc 4.8

2015-07-05 Thread Richard Biener
On Mon, Jul 6, 2015 at 7:30 AM, Vineet Gupta wrote: > On Friday 03 July 2015 07:15 PM, Richard Biener wrote: >> On Fri, Jul 3, 2015 at 3:10 PM, Vineet Gupta >> wrote: >>> Hi, >>> >>> I have the following test case (reduced from Linux kernel sources) and it >>> seems >>> gcc is optimizing away t

Re: Possible issue with ARC gcc 4.8

2015-07-05 Thread Marc Glisse
On Mon, 6 Jul 2015, Vineet Gupta wrote: It is the C language standard that says that shifts like this invoke undefined behavior. Right, but the compiler is a program nevertheless and it knows what to do when it sees 1 << 62 It's not like there is an uninitialized variable or something which w

Re: Possible issue with ARC gcc 4.8

2015-07-05 Thread Vineet Gupta
On Friday 03 July 2015 07:15 PM, Richard Biener wrote: > On Fri, Jul 3, 2015 at 3:10 PM, Vineet Gupta > wrote: >> Hi, >> >> I have the following test case (reduced from Linux kernel sources) and it >> seems >> gcc is optimizing away the first loop iteration. >> >> arc-linux-gcc -c -O2 star-90008

Re: Possible issue with ARC gcc 4.8

2015-07-03 Thread Richard Biener
On Fri, Jul 3, 2015 at 3:10 PM, Vineet Gupta wrote: > Hi, > > I have the following test case (reduced from Linux kernel sources) and it > seems > gcc is optimizing away the first loop iteration. > > arc-linux-gcc -c -O2 star-9000857057.c -fno-branch-count-reg --save-temps -mA7 > > --->8--