1 #include "gpsim_assert.h"
4 * Test for buggy pCode optimization on
9 * Originally, both instructions were removed and pc2 replaced with
10 * CLRF reg iff reg was used afterwards, but Z and W were not, or
11 * MOVLW 0 iff reg and Z were not used afterwards, but W was.
12 * Detection of W being used used to be buggy, though...
20 if (x != 2) { FAILED(); }
21 if (y != 1) { FAILED(); }
22 //ASSERT(MANGLE(x) == 2);
23 //ASSERT(MANGLE(y) == 1);