Commit e2721e12 by Uros Bizjak Committed by Uros Bizjak

w_prof_single_str_global.c: Mask return value.

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

From-SVN: r144187
parent ee38f2a2
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> 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.target/spu/intrinsics-sr.c: New test. * gcc.target/spu/intrinsics-sr.c: New test.
......
...@@ -22,7 +22,9 @@ main () ...@@ -22,7 +22,9 @@ main ()
if (str.a != res) if (str.a != res)
abort (); abort ();
return str.a; /* POSIX ignores all but the 8 low-order bits, but other
environments may not. */
return (str.a & 255);
} }
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
......
...@@ -24,7 +24,7 @@ main () ...@@ -24,7 +24,7 @@ main ()
if (str.a != res) if (str.a != res)
abort (); abort ();
/* POSIX ignores all but the 8 low-order bits, but other /* POSIX ignores all but the 8 low-order bits, but other
environments may not. */ environments may not. */
return (str.a & 255); return (str.a & 255);
......
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