@@ -364,6 +364,8 @@ doOp v (LSRem (ATInt (ITFixed ty))) [x, y] = bitOp v "SRem" ty [x, y]
364364
365365doOp v (LSExt (ITFixed from) ITBig) [x]
366366 = v ++ "MKBIGSI(vm, (" ++ signedTy from ++ ")" ++ creg x ++ "->info.bits" ++ show (nativeTyWidth from) ++ ")"
367+doOp v (LZExt ITNative ITBig) [x]
368+ = v ++ "MKBIGSI(vm, GETINT(" ++ creg x ++ "))"
367369doOp v (LSExt ITNative (ITFixed to)) [x]
368370 = v ++ "idris_b" ++ show (nativeTyWidth to) ++ "const(vm, GETINT(" ++ creg x ++ "))"
369371doOp v (LSExt ITChar (ITFixed to)) [x]
@@ -384,6 +386,8 @@ doOp v (LZExt (ITFixed from) ITChar) [x]
384386 = doOp v (LZExt (ITFixed from) ITNative) [x]
385387doOp v (LZExt (ITFixed from) ITBig) [x]
386388 = v ++ "MKBIGUI(vm, " ++ creg x ++ "->info.bits" ++ show (nativeTyWidth from) ++ ")"
389+doOp v (LZExt ITNative ITBig) [x]
390+ = v ++ "MKBIGUI(vm, (uintptr_t)GETINT(" ++ creg x ++ "))"
387391doOp v (LZExt (ITFixed from) (ITFixed to)) [x]
388392 | nativeTyWidth from < nativeTyWidth to = bitCoerce v "Z" from to x
389393doOp v (LTrunc ITNative (ITFixed to)) [x]