Commit 8a67955f by Rask Ingemann Lambertsen Committed by Rask Ingemann Lambertsen

pr27743.c (bar): Use an integer of exactly 32 bits because the test relies on bit 31 to be the...

	* gcc.dg/torture/pr27743.c (bar): Use an integer of exactly 32 bits
	  because the test relies on bit 31 to be the sign bit.

From-SVN: r126990
parent f017014e
2007-07-27 Rask Ingemann Lambertsen <rask@sygehus.dk> 2007-07-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
* gcc.dg/torture/pr27743.c (bar): Use an integer of exactly 32 bits
because the test relies on bit 31 to be the sign bit.
2007-07-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
* gcc.c-torture/execute/pr28651.c (main): Use INT_MAX instead of * gcc.c-torture/execute/pr28651.c (main): Use INT_MAX instead of
assuming it is 0x7fffffff. assuming it is 0x7fffffff.
* gcc.dg/tree-ssa/vrp29.c (decCompare)(main): Likewise. * gcc.dg/tree-ssa/vrp29.c (decCompare)(main): Likewise.
/* { dg-do run } */ /* { dg-do run { target { stdint_types } } } */
#include <stdint.h>
extern void abort(void); extern void abort(void);
int bar(int a) int32_t bar (int32_t a)
{ {
return ((unsigned) ((a) >> 2)) >> 15; return ((uint32_t) ((a) >> 2)) >> 15;
} }
int main() int main()
......
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