Message ID | 201311191654.rAJGst2C031642@d06av02.portsmouth.uk.ibm.com |
---|---|
State | New |
Headers | show |
On Nov 19, 2013, at 8:54 AM, Ulrich Weigand <uweigand@de.ibm.com> wrote: > another test case fix: darwin-longlong.c implements a "msw" routine > extracting the most significant word from a long long. This of course > needs to be updated for little-endian ... > > Tested on powerpc64le-linux. > > OK for mainline? My perspective, ok.
On Tue, Nov 19, 2013 at 1:47 PM, Mike Stump <mikestump@comcast.net> wrote: > On Nov 19, 2013, at 8:54 AM, Ulrich Weigand <uweigand@de.ibm.com> wrote: >> another test case fix: darwin-longlong.c implements a "msw" routine >> extracting the most significant word from a long long. This of course >> needs to be updated for little-endian ... >> >> Tested on powerpc64le-linux. >> >> OK for mainline? > > My perspective, ok. Okay for me as well. Thanks, David
Index: gcc/testsuite/gcc.target/powerpc/darwin-longlong.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/darwin-longlong.c (revision 205009) +++ gcc/testsuite/gcc.target/powerpc/darwin-longlong.c (working copy) @@ -11,7 +11,11 @@ int i[2]; } ud; ud.ll = in; +#ifdef __LITTLE_ENDIAN__ + return ud.i[1]; +#else return ud.i[0]; +#endif } int main()