33 uint32_t
flag = gte_read_flag();
34 uint32_t f30 = (
flag >> 30) & 1;
53 uint32_t
flag = gte_read_flag();
73 uint32_t
flag = gte_read_flag();
74 uint32_t f29 = (
flag >> 29) & 1;
93 uint32_t
flag = gte_read_flag();
117 flag = gte_read_flag();
152 flag = gte_read_flag();
178 int16_t
sx = (int16_t)(
sxy2 & 0xffff);
199 flag = gte_read_flag();
200 int16_t
sx = (int16_t)(
sxy2 & 0xffff);
203 uint32_t
f17 = (
flag >> 17) & 1;
221 flag = gte_read_flag();
222 uint32_t
f17 = (
flag >> 17) & 1;
244 flag = gte_read_flag();
245 int16_t
sx = (int16_t)(
sxy2 & 0xffff);
290 flag = gte_read_flag();
291 uint32_t
f22 = (
flag >> 22) & 1;
301 uint32_t
f17 = (
flag >> 17) & 1;
325 flag = gte_read_flag();
360 flag = gte_read_flag();
361 uint32_t
f22 = (
flag >> 22) & 1;
#define COP2_OP_CP(sf, lm)
Definition cop2.h:136
#define cop2_cmd(op)
Definition cop2.h:175
#define COP2_V_V0
Definition cop2.h:70
#define cop2_put(reg, val)
Definition cop2.h:191
#define COP2_MX_RT
Definition cop2.h:64
#define cop2_putc(reg, val)
Definition cop2.h:205
#define COP2_RTPS(sf, lm)
Definition cop2.h:129
#define COP2_MVMVA(sf, mx, v, cv, lm)
Definition cop2.h:145
#define cop2_get(reg, dest)
Definition cop2.h:198
#define COP2_CV_TR
Definition cop2.h:76
int32_t mac1
Definition gte-depthcue.c:118
CESTER_TEST(prec_mac1_positive_overflow, gte_tests, cop2_putc(0, 0x00007fff);cop2_putc(1, 0x00000000);cop2_putc(2, 0x00000000);cop2_putc(3, 0x00000000);cop2_putc(4, 0);cop2_putc(5, 0x7fffffff);cop2_putc(6, 0);cop2_putc(7, 0);cop2_put(0,(0<< 16)|0x7fff);cop2_put(1, 0);gte_clear_flag();cop2_cmd(COP2_MVMVA(0, COP2_MX_RT, COP2_V_V0, COP2_CV_TR, 0));uint32_t flag=gte_read_flag();uint32_t f30=(flag > > 30) &1;ramsyscall_printf("MAC1 pos overflow: FLAG=0x%08x F30=%u\n", flag, f30);cester_assert_uint_eq(1, f30);) CESTER_TEST(prec_mac1_negative_overflow
cester_assert_int_eq(1, sx)
gte_set_identity_rotation()
uint32_t sxy2
Definition gte-precision.c:150
uint32_t f17
Definition gte-precision.c:159
ramsyscall_printf("MAC1 neg overflow: FLAG=0x%08x F27=%u\n", flag, f27)
int32_t ir1
Definition gte-precision.c:241
uint32_t f27
Definition gte-precision.c:54
gte_tests
Definition gte-precision.c:40
uint32_t flag
Definition gte-precision.c:53
int16_t sx
Definition gte-precision.c:153
cester_assert_uint_eq(1, f27)
gte_set_translation(0, 0, 0)
uint32_t f28
Definition gte-precision.c:94
uint32_t ir3
Definition gte-precision.c:322
int32_t mac3
Definition gte-precision.c:321
uint32_t f22
Definition gte-precision.c:326