[committed] Fix gcc.target/mips/pr55315.c for LP64

Submitted by Richard Sandiford on Dec. 23, 2012, 9:47 a.m.

Details

Message ID 87licpumkh.fsf@talisman.default
State New
Headers show

Commit Message

Richard Sandiford Dec. 23, 2012, 9:47 a.m.
Fixes a warning seen with -mabi=64 on mips64-linux-gnu.  The test was
for an rtl optimisation, so the choice between "int" and "long" doesn't
matter for the original ILP32 target.

Tested on mips64-linux-gnu and applied.

Richard


gcc/testsuite/
	* gcc.target/mips/pr55315.c: Cast to long rather than int.

Patch hide | download patch | download mbox

Index: gcc/testsuite/gcc.target/mips/pr55315.c
===================================================================
--- gcc/testsuite/gcc.target/mips/pr55315.c	2012-11-27 18:52:27.000000000 +0000
+++ gcc/testsuite/gcc.target/mips/pr55315.c	2012-12-23 09:07:03.340059976 +0000
@@ -5,7 +5,7 @@ 
 int
 f (void)
 {
-  return (((unsigned int) &data[0]) == 0xdeadbea0U);
+  return (((unsigned long) &data[0]) == 0xdeadbea0U);
 }
 
 /* { dg-final { scan-assembler-not "\tmove\t\\\$2,\\\$0" } } */