summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test.c b/test.c
index 3e9a86a..cf76591 100644
--- a/test.c
+++ b/test.c
@@ -25,6 +25,12 @@ int main(void) {
test(quotrem.quot,0xDu,==)
test(quotrem.rem, 0x4u,==)
}
+ {
+ /* 3^(-3) */
+ zap_i02 const tmp = zap_exp04(0x3,0x3u);
+ zap_i02 const val = zap_divmod02(0x10000u,tmp).quot;
+ test(val,0x97Bu,==)
+ }
/* mem */
{
zap_i8 const src[0x3Fu] = {