Commit aaab40fa by Michael Meissner Committed by Michael Meissner

Refix test for PR47251

From-SVN: r169067
parent f22ee689
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> 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
PR debug/46583 PR debug/46583
......
/* { dg-do compile { target { powerpc*-*-* && ip32 } } } */ /* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -msoft-float -mcpu=power7" } */ /* { dg-options "-O2 -msoft-float -mcpu=power7" } */
/* PR 47151: libgcc fails to build when using --with-cpu=power7 due to a missed /* PR 47151: libgcc fails to build when using --with-cpu=power7 due to a missed
TARGET_HARD_FLOAT test. */ TARGET_HARD_FLOAT test. */
unsigned int unsigned long long
__fixunssfdi (float a) func (float a)
{ {
const float dfa = a; const float dfa = a;
const unsigned int hi = dfa / 0x1p32f; const unsigned int hi = dfa / 0x1p32f;
const unsigned int lo = dfa - (float) hi * 0x1p32f; const unsigned int lo = dfa - (float) hi * 0x1p32f;
return ((unsigned int) hi << (4 * 8)) | lo; return ((unsigned long long) hi << (4 * 8)) | lo;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment