mirror of git://gcc.gnu.org/git/gcc.git
parent
f22ee6896d
commit
aaab40fa2a
|
|
@ -1,3 +1,9 @@
|
|||
2011-01-20 Michael Meissner <meissner@linux.vnet.ibm.com>
|
||||
|
||||
PR target/47251
|
||||
* gcc.target/powerpc/pr47251.c: Fixup test so that it runs on
|
||||
ILP32 system and not IP32.
|
||||
|
||||
2011-01-20 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
PR debug/46583
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
/* { dg-do compile { target { powerpc*-*-* && ip32 } } } */
|
||||
/* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
|
||||
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
|
||||
/* { dg-require-effective-target powerpc_vsx_ok } */
|
||||
/* { dg-options "-O2 -msoft-float -mcpu=power7" } */
|
||||
|
||||
/* PR 47151: libgcc fails to build when using --with-cpu=power7 due to a missed
|
||||
TARGET_HARD_FLOAT test. */
|
||||
unsigned int
|
||||
__fixunssfdi (float a)
|
||||
unsigned long long
|
||||
func (float a)
|
||||
{
|
||||
const float dfa = a;
|
||||
const unsigned int hi = dfa / 0x1p32f;
|
||||
const unsigned int lo = dfa - (float) hi * 0x1p32f;
|
||||
return ((unsigned int) hi << (4 * 8)) | lo;
|
||||
return ((unsigned long long) hi << (4 * 8)) | lo;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue