w_prof_single_str_global.c: Mask return value.

* gcc.dg/struct/w_prof_single_str_global.c: Mask return value.

From-SVN: r144187
This commit is contained in:
Uros Bizjak 2009-02-15 09:07:17 +01:00 committed by Uros Bizjak
parent ee38f2a25d
commit e2721e12cf
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-02-15 Uros Bizjak <ubizjak@gmail.com>
* gcc.dg/struct/w_prof_single_str_global.c: Mask return value.
2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.target/spu/intrinsics-sr.c: New test.

View File

@ -22,7 +22,9 @@ main ()
if (str.a != res)
abort ();
return str.a;
/* POSIX ignores all but the 8 low-order bits, but other
environments may not. */
return (str.a & 255);
}
/*--------------------------------------------------------------------------*/

View File

@ -24,7 +24,7 @@ main ()
if (str.a != res)
abort ();
/* POSIX ignores all but the 8 low-order bits, but other
environments may not. */
return (str.a & 255);