1 /* cse.c failure on x86 target.
2 Contributed by Stuart Hastings 10 Oct 2002 <stuart@apple.com> */
5 typedef signed short SInt16;
14 int expectedwidth = 50;
16 unsigned int *global_vramPtr = (unsigned int *)0xa000;
18 IOGBounds global_bounds = { 100, 150, 100, 150 };
19 IOGBounds global_saveRect = { 75, 175, 75, 175 };
23 unsigned int *vramPtr;
25 IOGBounds saveRect = global_saveRect;
26 IOGBounds bounds = global_bounds;
28 if (saveRect.minx < bounds.minx) saveRect.minx = bounds.minx;
29 if (saveRect.maxx > bounds.maxx) saveRect.maxx = bounds.maxx;
31 vramPtr = global_vramPtr + (saveRect.miny - bounds.miny) ;
32 width = saveRect.maxx - saveRect.minx;
34 if (width != expectedwidth)