Andrew Pinski - Re: [patch] for the lost size of a large array in x86-64 assembly output (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc/testsuite/ChangeLog: * gcc.target/i386/large-size-array-3.c: New.

Index: testsuite/gcc.target/i386/large-size-array-3.c

--- testsuite/gcc.target/i386/large-size-array-3.c (revision 0) +++ testsuite/gcc.target/i386/large-size-array-3.c (revision 0) @@ -0,0 +1,4 @@ +/* { dg-do compile { target i?86-- x86_64-- } } / +/ { dg-options "-m64" } / +/ { dg-final { scan-assembler "8589934592" } } */ +int bigarray[2147483647];

This testcase will not work on the plain target i686-linux-gnu as 64bit compiling is not included by default. The dg-do command should instead be something like: /* { dg-do compile { target { { i?86-- x86_64-- } && lp64 } } } */

-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]