2 20021010-2.c from the execute part of the gcc torture suite.
11 /* cse.c failure on x86 target.
12 Contributed by Stuart Hastings 10 Oct 2002 <stuart@apple.com> */
15 typedef signed short SInt16
;
24 int expectedwidth
= 50;
26 unsigned int *global_vramPtr
= (unsigned int __xdata
*)0xa000;
28 IOGBounds global_bounds
= { 100, 150, 100, 150 };
29 IOGBounds global_saveRect
= { 75, 175, 75, 175 };
32 testTortureExecute (void)
34 #if 0 // TODO: enable when support for struct initialization is complete!
35 unsigned int *vramPtr
;
37 IOGBounds saveRect
= global_saveRect
;
38 IOGBounds bounds
= global_bounds
;
40 if (saveRect
.minx
< bounds
.minx
) saveRect
.minx
= bounds
.minx
;
41 if (saveRect
.maxx
> bounds
.maxx
) saveRect
.maxx
= bounds
.maxx
;
43 vramPtr
= global_vramPtr
+ (saveRect
.miny
- bounds
.miny
) ;
44 width
= saveRect
.maxx
- saveRect
.minx
;
46 ASSERT (width
== expectedwidth
);