* gcc.target/powerpc/darwin-longlong.c (msw): Make endian-safe.
From-SVN: r205106
This commit is contained in:
parent
99e6af154c
commit
cf598484ae
@ -1,3 +1,7 @@
|
||||
2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
||||
|
||||
* gcc.target/powerpc/darwin-longlong.c (msw): Make endian-safe.
|
||||
|
||||
2013-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
|
||||
|
||||
* gcc.target/s390/htm-1.c: Rename to ...
|
||||
|
@ -11,7 +11,11 @@ int msw(long long in)
|
||||
int i[2];
|
||||
} ud;
|
||||
ud.ll = in;
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
return ud.i[1];
|
||||
#else
|
||||
return ud.i[0];
|
||||
#endif
|
||||
}
|
||||
|
||||
int main()
|
||||
|
Loading…
Reference in New Issue
Block a user