Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-09 Thread H.J. Lu
On Wed, Aug 8, 2012 at 8:11 AM, Richard Sandiford wrote: > "H.J. Lu" writes: >> On Wed, Aug 8, 2012 at 6:43 AM, Uros Bizjak wrote: >>> Probably we need to backport this patch to 4.7, where x32 is >>> -maddress-mode=long by default. >>> >> >> It doesn't fail on 4.7 branch since checking mode on P

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-08 Thread Richard Sandiford
"H.J. Lu" writes: > On Wed, Aug 8, 2012 at 6:43 AM, Uros Bizjak wrote: >> Probably we need to backport this patch to 4.7, where x32 is >> -maddress-mode=long by default. >> > > It doesn't fail on 4.7 branch since checking mode on PLUS CONST > is new on trunk. However, I think it is a correctness

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-08 Thread H.J. Lu
On Wed, Aug 8, 2012 at 6:43 AM, Uros Bizjak wrote: > On Wed, Aug 8, 2012 at 3:40 PM, H.J. Lu wrote: > >> wrote: >>> "H.J. Lu" writes: diff --git a/gcc/combine.c b/gcc/combine.c index a07c046..b9a3589 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -10784,12 +10784,30

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-08 Thread Uros Bizjak
On Wed, Aug 8, 2012 at 3:40 PM, H.J. Lu wrote: > wrote: >> "H.J. Lu" writes: >>> diff --git a/gcc/combine.c b/gcc/combine.c >>> index a07c046..b9a3589 100644 >>> --- a/gcc/combine.c >>> +++ b/gcc/combine.c >>> @@ -10784,12 +10784,30 @@ gen_lowpart_for_combine (enum machine_mode omode, >>> rtx

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-08 Thread H.J. Lu
On Wed, Aug 8, 2012 at 1:08 AM, Richard Sandiford wrote: > "H.J. Lu" writes: >> diff --git a/gcc/combine.c b/gcc/combine.c >> index a07c046..b9a3589 100644 >> --- a/gcc/combine.c >> +++ b/gcc/combine.c >> @@ -10784,12 +10784,30 @@ gen_lowpart_for_combine (enum machine_mode omode, >> rtx >> x) >>

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-08 Thread Richard Sandiford
"H.J. Lu" writes: > diff --git a/gcc/combine.c b/gcc/combine.c > index a07c046..b9a3589 100644 > --- a/gcc/combine.c > +++ b/gcc/combine.c > @@ -10784,12 +10784,30 @@ gen_lowpart_for_combine (enum machine_mode omode, > rtx > x) >if (omode == imode) > return x; > > - /* Return identity i

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-07 Thread H.J. Lu
On Sun, Aug 5, 2012 at 12:47 AM, Richard Sandiford wrote: > For the record, I can't approve this, but... > > "H.J. Lu" writes: >> i386,md has >> >> (define_expand "extzv" >> [(set (match_operand:SI 0 "register_operand") >> (zero_extract:SI (match_operand 1 "ext_register_operand") >>

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-05 Thread Richard Sandiford
For the record, I can't approve this, but... "H.J. Lu" writes: > i386,md has > > (define_expand "extzv" > [(set (match_operand:SI 0 "register_operand") > (zero_extract:SI (match_operand 1 "ext_register_operand") > (match_operand:SI 2 "const8_operand") >

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-02 Thread H.J. Lu
On Wed, Aug 1, 2012 at 12:14 PM, H.J. Lu wrote: > On Wed, Aug 1, 2012 at 11:58 AM, Richard Sandiford > wrote: >> "H.J. Lu" writes: >>> We have >>> >>> (gdb) r -fpreprocessed x.i -quiet -dumpbase x.i -mx32 >>> -maddress-mode=long -mtune=generic -march=x86-64 -auxbase x -O2 -version >>> -ftree-vec

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-01 Thread H.J. Lu
On Wed, Aug 1, 2012 at 11:58 AM, Richard Sandiford wrote: > "H.J. Lu" writes: >> We have >> >> (gdb) r -fpreprocessed x.i -quiet -dumpbase x.i -mx32 >> -maddress-mode=long -mtune=generic -march=x86-64 -auxbase x -O2 -version >> -ftree-vectorize -o x.s >> Starting program: /export/build/gnu/gcc-x3

Re: PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-01 Thread Richard Sandiford
"H.J. Lu" writes: > We have > > (gdb) r -fpreprocessed x.i -quiet -dumpbase x.i -mx32 > -maddress-mode=long -mtune=generic -march=x86-64 -auxbase x -O2 -version > -ftree-vectorize -o x.s > Starting program: /export/build/gnu/gcc-x32/build-x86_64-linux/gcc/cc1 > -fpreprocessed x.i -quiet -dumpbase

PATCH: PR rtl-optimization/54157: [x32] -maddress-mode=long failures

2012-08-01 Thread H.J. Lu
Hi, We have (gdb) r -fpreprocessed x.i -quiet -dumpbase x.i -mx32 -maddress-mode=long -mtune=generic -march=x86-64 -auxbase x -O2 -version -ftree-vectorize -o x.s Starting program: /export/build/gnu/gcc-x32/build-x86_64-linux/gcc/cc1 -fpreprocessed x.i -quiet -dumpbase x.i -mx32 -maddress-mode=lo