diff mbox

[committed] Fix test for PR 47251 to be ILP32, not IP32.

Message ID 20110120211938.GA18299@hungry-tiger.westford.ibm.com
State New
Headers show

Commit Message

Michael Meissner Jan. 20, 2011, 9:19 p.m. UTC
I verified that this change to my test added on January 13th, 2011 passes on
powerpc-linux (ILP32) and it should be skipped on Darwin systems (IP32).  I
checked it in under the obvious rule.

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.
diff mbox

Patch

Index: gcc/testsuite/gcc.target/powerpc/pr47251.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/pr47251.c	(revision 169066)
+++ gcc/testsuite/gcc.target/powerpc/pr47251.c	(working copy)
@@ -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;
 }