4 int lpr(int org
, int *new)
7 asm volatile( "lpr %0,%2\n\t"
10 : "=d" (_new
), "=d" (cc
)
17 int lpgr(unsigned long org
, unsigned long *new)
21 asm volatile( "lpgr %0,%2\n\t"
24 : "=d" (_new
), "=d" (cc
)
31 int lpgfr(unsigned long org
, unsigned long *new)
35 asm volatile( "lpgfr %0,%2\n\t"
38 : "=d" (_new
), "=d" (cc
)
52 printf("new: %d cc: %d\n", n
, cc
);
55 void t64(unsigned long value
)
62 printf("new: %ld cc: %d\n", n
, cc
);
65 void t3264(unsigned long value
)
70 cc
= lpgfr(value
, &n
);
72 printf("new: %ld cc: %d\n", n
, cc
);
80 t32(0); t32(1); t32(-1);
81 t32(INT_MAX
); t32(INT_MIN
); t32(UINT_MAX
);
84 t64(0); t64(1); t64(-1);
85 t64(INT_MAX
); t64(INT_MIN
); t64(UINT_MAX
);
86 t64(LONG_MAX
); t64(LONG_MIN
); t64(ULONG_MAX
);
89 t3264(0); t3264(1); t64(-1);
90 t3264(INT_MAX
); t3264(INT_MIN
); t3264(UINT_MAX
);
91 t3264(LONG_MAX
); t3264(LONG_MIN
); t3264(ULONG_MAX
);