interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

GitHub aien-dev/omega-mv#1027 (code only)

closed derived d955c9eb53c45dce #1027

Imported from GitHub aien-dev/omega-mv#1027 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base d3d1b1bc7e3b970016a2176435f78c8f0251bad1 · Head 7d8c4e96522bf1785a5fd0dfa9cf535378709ee3

github-advanced-security[bot] commented on seed/omc/float-lits.py line 186 on 2026-11-04 22:04 UTC

CodeQL / Overly permissive file permissions

Overly permissive mask in chmod sets file to world readable.

Show more details

github-advanced-security[bot] reviewed (COMMENTED) on 2026-11-04 22:04 UTC

Apply it

git checkout -b patch-d955c9eb53c45dce d3d1b1bc7e3b970016a2176435f78c8f0251bad1
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/d955c9eb53c45dce.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/omega-mv
1027
7d8c4e96522bf1785a5fd0dfa9cf535378709ee3
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":1027,"url":"https://github.com/aien-dev/omega-mv/pull/1027","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:16Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index f4b156b78..c2e6bf19d 100644
--- a/.crumb
+++ b/.crumb
@@ -47,8 +47,8 @@
           "purpose": "Directory calibration. Purpose not yet described by a human."
         },
         {
-          "digest": "6686fc16ac9d1f27ff402d9fa3a7b0ad949cc91473b07069ef016c69903d277b",
-          "last_commit": "e6d145055",
+          "digest": "1759b0e4262029a68fe892c9a9927ed6a70ee9b9fa671ac3ebc8b41de3b35729",
+          "last_commit": "681d6f487",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
@@ -107,15 +107,15 @@
           "purpose": "Directory tools. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:1d48c632f299857289d333d13ffe57e4120f1806830e6b078fbbdef86b991316",
-      "compiled_at": "2026-11-04T13:14:48Z",
+      "children_root": "sha256:4b9f09cd9cf2fe90395fb397453712c2cba38db4e69b74a97eaa67a194e925b4",
+      "compiled_at": "2026-11-05T00:52:15Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:03322c058e6daf67dc09c504b09d6743f56715a8acd02d200dc175ac9b1bcaf2",
+      "digest": "sha256:3d5976ec4e0a77c58526a1822bbf42f0f77fb37b46abe32253c5ee5292f42fa4",
       "evidence_files": 15321,
       "evidence_root": "sha256:e4e83d089b086dd1dcab0cfd4babe338eab359310746dbddc14edd655012c33f",
-      "files": 23689,
-      "generated_at_commit": "e6d145055d63409dcc74fe3fcd8acb2b9307aa06",
-      "source_tree": "sha256:08f843c50dcf726e48c812d2fb6b39a06bd61c4fdbed3381427c056a6a319d1d"
+      "files": 23696,
+      "generated_at_commit": "681d6f487ac3c237e0b8d73c287e0a8f232b1434",
+      "source_tree": "sha256:08b06721177ece82e8ad0ef09f95857d8b5bceb181a93199b1612b5ce0043afc"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 05fc8203a..22448f3b1 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -111,3 +111,4 @@ Update this table in the same commit as the work it credits.
 | Claude Opus 5.5 | R15 energy preflight test: the fake package counter (and the falling cpu_p counter of decr3) now ticks every 10 ms until the case finishes instead of on a fixed 0.05/0.15 s schedule, so a preflight that starts late under load still sees it advance; delayed-start repro, 30/30 quiet and 30/30 under pinned busy loops |
 | Codex | Corrected Neuralese historical compiler attribution and separated active reproduction pins from dated run evidence. |
 | Claude Opus 5.5 | Added `target x86efi` on current main: PE32+ output, UEFI entry/exit with callee-saved XMM and MXCSR, the target-scoped `efi` word with the general file operation `efi 12` and console `efi 13`, gate18 coverage of the scoped keyword, and `docs/X86-EFI.md`. Exercised under QEMU/OVMF only (float parity with x86linux and AArch64, efi 12 refusal codes, Read/Write-swap and MXCSR mutants); physical firmware NOT_RUN. |
+| Claude Opus 5.5 | Fixed float literal rounding in omc (#1024): `fbits` now divides exact 32-bit-limb integers (`fbmul`/`fbpow`/`fbsub` replace `fmul10`/`fmn10`/`fdiv10`) and rounds once to nearest even; refused integer literals under a float type with error 7 (#1026); added gate8 `lit_round` (512 literals) and `neg_int_*`, and `seed/omc/float-lits.py` (exact rational oracle, randomized differential: 1,000,000 literals, 0 mismatches). |
diff --git a/docs/.crumb b/docs/.crumb
index a5b269ed4..cf4982380 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -124,14 +124,14 @@
         }
       ],
       "children_root": "sha256:1151cfd7d1efd3dde35b83002cf464cb5543d87212ae899bb3cb7661bc5f4bf3",
-      "compiled_at": "2026-11-04T13:14:48Z",
+      "compiled_at": "2026-11-05T00:52:15Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:6686fc16ac9d1f27ff402d9fa3a7b0ad949cc91473b07069ef016c69903d277b",
+      "digest": "sha256:1759b0e4262029a68fe892c9a9927ed6a70ee9b9fa671ac3ebc8b41de3b35729",
       "evidence_files": 34,
       "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc",
       "files": 149,
-      "generated_at_commit": "e6d145055d63409dcc74fe3fcd8acb2b9307aa06",
-      "source_tree": "sha256:03009463517951b40afc3685efae21af481e76f915076bb0da79a6fc5baa5670"
+      "generated_at_commit": "681d6f487ac3c237e0b8d73c287e0a8f232b1434",
+      "source_tree": "sha256:beb54683e9f7847a54a47f57a3329e6ae5f372c767474fa1adb3055cfd5d7045"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/one_layer/OMEGESE.md b/docs/one_layer/OMEGESE.md
index 4cf62b523..f01dbcfd1 100644
--- a/docs/one_layer/OMEGESE.md
+++ b/docs/one_layer/OMEGESE.md
@@ -617,13 +617,17 @@ conversion is error 7.
 
 - Literals: `digits.digits[(e|E)[+|-]digits][f32|f64]`; a digit must be present on both sides of the
   dot, and a leading `-` negates. A literal with no suffix takes its type from context exactly as an
-  integer literal does; where no context gives a float type it is error 11. The decimal text is
-  converted exactly to the target type, keeping a 64-bit significand, a binary exponent and one
-  sticky bit, then rounding once to nearest even: 0.1f64 is 0x3FB999999999999A. The full binary32 and
-  binary64 range is covered, including subnormals (5e-324, 1e-45) and signed zero. A literal that
-  rounds to infinity is refused (error 8); one below the smallest subnormal underflows to signed
+  integer literal does; where no context gives a float type it is error 11. An integer literal where
+  a float is expected (assignment, `ret`, argument, `put`, `new` fill) is error 7; write `f64 1` or
+  `1.0`. The decimal text is converted exactly: digits times a power of ten is held as an exact
+  quotient of two integers, long division gives a 64-bit significand and the remainder gives the
+  sticky bit, then the value is rounded once to nearest even: 0.1f64 is 0x3FB999999999999A and
+  6816.702656e-27 is 0x3B207B55A6D4A130. The full binary32 and binary64 range is covered, including
+  subnormals (5e-324, 1e-45; 2.4703282292062328e-324 is 0x1) and signed zero. A literal that
+  rounds to infinity is refused (error 8); one at or below half the smallest subnormal rounds to signed
   zero. The significant digits must still fit in 2^63-1 (error 8 beyond that). (gate8 f64_bits,
-  f32_bits, neg_ambiguous, neg_dot, neg_overflow, neg_overflow2, neg_overflow3)
+  f32_bits, lit_round, neg_int_*, neg_ambiguous, neg_dot, neg_overflow, neg_overflow2,
+  neg_overflow3; `seed/omc/float-lits.py diff OMC N SEED` is the randomized differential)
 - Operators: `+ - * /` and unary `neg`; comparisons `eq ne lt le gt ge`. Bit operators, shifts and
   `rem` on a float are error 7. IEEE results: division by zero and overflow give infinity, 0/0 gives
   NaN, and no float operation traps. NaN compares false everywhere except `ne`, which is true. -0.0
diff --git a/seed/README.md b/seed/README.md
index dbd61e65b..6fb6be5e3 100644
--- a/seed/README.md
+++ b/seed/README.md
@@ -427,6 +427,13 @@ converter now keeps a normalized 64-bit significand, a binary exponent and one s
   values, values just below the overflow boundary, and values that underflow to zero.
 - `gate8` now has 23 cases: the two literal fixtures cover large and subnormal values, and
   `neg_overflow2`/`neg_overflow3` check that a literal which rounds to infinity is refused.
+- Correction (#1024, #1026): the per-digit `fmul10`/`fdiv10` steps truncated at every factor of ten,
+  so some literals came out one ulp low (6816.702656e-27 gave 0x3B207B55A6D4A12F, not ...130;
+  2.4703282292062328e-324 gave 0, not 0x1). `fbits` now forms the exact quotient of two integers in
+  40 32-bit limbs (`fbmul`, `fbpow`, `fbsub`) and rounds once. `gate8 lit_round` checks 512 literals
+  against `seed/omc/float-lits.py`'s exact rational oracle, and `float-lits.py diff OMC N SEED` is
+  the randomized differential (1,000,000 literals, seed 1024: 0 mismatches). An integer literal under
+  a float type, formerly stored as raw bits, is now error 7 (`gate8 neg_int_*`).
 
 ## Rung R12: layout queries (done)
 
diff --git a/seed/omc/float-lits.py b/seed/omc/float-lits.py
new file mode 100755
index 000000000..6ec886ba4
--- /dev/null
+++ b/seed/omc/float-lits.py
@@ -0,0 +1,319 @@
+#!/usr/bin/env python3
+"""Float literal oracle for omc (OMEGESE 9.9, omega-mv#1024).
+
+The oracle rounds the literal's exact rational value (fractions.Fraction) once to nearest even in
+binary32 or binary64; binary64 results are also checked against Python's float(). It never reads
+omc's answer to build an expectation.
+
+  float-lits.py table             rewrite tests/float/lit_round.om and lit_round.want (fixed cases)
+  float-lits.py diff OMC N SEED   compile N random literals with OMC and compare every bit pattern
+
+diff prints FLOATDIFF PASS|FAIL total=N f64=.. f32=.. overflow=.. mismatch=.. and exits 0 only on PASS.
+"""
+import os
+import random
+import struct
+import subprocess
+import sys
+import tempfile
+from fractions import Fraction
+
+FMT = {"f64": (53, -1022, 1023, 64), "f32": (24, -126, 127, 32)}
+MAXND = 2**63 - 1
+
+
+def value(lit):
+    """The exact rational value of an omc float literal; None if omc must refuse its digits."""
+    s = lit
+    neg = s.startswith("-")
+    if neg:
+        s = s[1:]
+    mant, _, ex = s.replace("E", "e").partition("e")
+    whole, _, frac = mant.partition(".")
+    digits = int(whole + frac)
+    if digits > MAXND:
+        return None
+    p10 = (int(ex) if ex else 0) - len(frac)
+    v = Fraction(digits) * Fraction(10) ** p10
+    return (neg, v)
+
+
+def rne(neg, x, ty):
+    """IEEE bits of x rounded once to nearest even; None when it rounds to infinity."""
+    p, emin, emax, w = FMT[ty]
+    sign = (1 << (w - 1)) if neg else 0
+    if x == 0:
+        return sign
+    e = x.numerator.bit_length() - x.denominator.bit_length()
+    if x < Fraction(2) ** e:
+        e -= 1
+    e = max(e, emin)
+    m = x / Fraction(2) ** (e - (p - 1))
+    q = m.numerator // m.denominator
+    r = m - q
+    if r > Fraction(1, 2) or (r == Fraction(1, 2) and q & 1):
+        q += 1
+    if q == 1 << p:
+        q >>= 1
+        e += 1
+    if e > emax:
+        return None
+    if q < 1 << (p - 1):
+        return sign | q
+    return sign | ((e + (1 << (w - p - 1)) - 1) << (p - 1)) | (q - (1 << (p - 1)))
+
+
+def expect(lit, ty):
+    v = value(lit)
+    if v is None:
+        return None
+    bits = rne(v[0], v[1], ty)
+    if ty == "f64":
+        try:
+            ref = struct.unpack("<Q", struct.pack("<d", float(lit)))[0]
+        except OverflowError:
+            ref = None
+        if ref is not None and ref >> 52 & 2047 == 2047:
+            ref = None
+        assert bits == ref, (lit, bits, ref)
+    return bits
+
+
+def program(lits):
+    """One omc program: the bits of every literal, eight bytes each, little-endian, on stdout."""
+    n = len(lits)
+    out = ["global g ulong %d" % n, "fn main to int"]
+    for i, (lit, ty) in enumerate(lits):
+        if ty == "f64":
+            out.append("put g %d bitcast ulong f64 %s" % (i, lit))
+        else:
+            out.append("put g %d ulong bitcast uint f32 %s" % (i, lit))
+    out += [
+        "b = new uchar %d 0" % (8 * n),
+        "for i ulong %d" % n,
+        "v = get g i",
+        "for j ulong 8",
+        "put b add mul i 8 j uchar and shr v mul j 8 255",
+        "end",
+        "end",
+        "n = write 1 b 0 %d" % (8 * n),
+        "ret 0",
+        "end",
+    ]
+    return "\n".join(out) + "\n"
+
+
+def digits_lit(rng, nd, p10, neg):
+    """A literal of nd significant digits whose value is D * 10^p10, written in a random style."""
+    while True:
+        d = rng.randrange(10 ** (nd - 1), 10**nd)
+        if d <= MAXND:
+            break
+    s = str(d)
+    style = rng.randrange(4)
+    if style == 0:
+        k = rng.randrange(1, len(s)) if len(s) > 1 else 1
+        lit = s[:k] + "." + (s[k:] or "0") + "e" + str(p10 + len(s) - k)
+    elif style == 1:
+        lit = s + "e" + str(p10)
+    elif style == 2:
+        z = rng.randrange(0, 30)
+        lit = "0." + "0" * z + s + "E" + str(p10 + len(s) + z)
+    else:
+        x = p10 + len(s) - 1
+        lit = s[0] + "." + (s[1:] or "0") + "e" + ("+" if x >= 0 and rng.randrange(2) else "") + str(x)
+    return ("-" if neg else "") + lit
+
+
+def halfway_lit(rng, ty, neg):
+    """A literal within one 19th digit of the midpoint between two neighbouring floats."""
+    p, emin, emax, w = FMT[ty]
+    e = rng.randrange(emin - p, emax)
+    if e < emin:
+        q = rng.randrange(1, 1 << (p - 1))
+        m = Fraction(2 * q + 1) * Fraction(2) ** (emin - p)
+    else:
+        q = rng.randrange(1 << (p - 1), (1 << p) - 1)
+        m = Fraction(2 * q + 1) * Fraction(2) ** (e - p)
+    k = 0
+    t = m
+    while t >= 10:
+        t /= 10
+        k += 1
+    while t < 1:
+        t *= 10
+        k -= 1
+    nd = rng.randrange(16, 20)
+    scaled = m / Fraction(10) ** (k - nd + 1)
+    d = scaled.numerator // scaled.denominator + rng.choice((-1, 0, 0, 1, 2))
+    if d < 1 or d > MAXND:
+        d = scaled.numerator // scaled.denominator
+    if d > MAXND:
+        d //= 10
+        k += 1
+    return ("-" if neg else "") + "%de%d" % (d, k - nd + 1)
+
+
+def random_lits(rng, n):
+    out = []
+    for _ in range(n):
+        ty = "f64" if rng.randrange(3) else "f32"
+        neg = rng.randrange(5) == 0
+        kind = rng.randrange(10)
+        if kind < 4:
+            out.append((halfway_lit(rng, ty, neg), ty))
+            continue
+        nd = rng.randrange(1, 20)
+        if ty == "f64":
+            p10 = rng.randrange(-345 - nd, 310 - nd)
+        else:
+            p10 = rng.randrange(-47 - nd, 40 - nd)
+        if kind == 9:
+            p10 = rng.randrange(-30, 30)
+        out.append((digits_lit(rng, nd, p10, neg), ty))
+    return out
+
+
+def run_omc(omc, lits, tmp):
+    src = os.path.join(tmp, "p.om")
+    exe = os.path.join(tmp, "p")
+    with open(src, "w") as f:
+        f.write(program(lits))
+    with open(src) as fi, open(exe, "wb") as fo:
+        r = subprocess.run([omc], stdin=fi, stdout=fo, stderr=subprocess.PIPE)
+    if r.returncode != 0:
+        return None, r.returncode, r.stderr.decode()
+    os.chmod(exe, 0o700)
+    r = subprocess.run([exe], stdout=subprocess.PIPE)
+    if r.returncode != 0:
+        raise SystemExit("FLOATDIFF INVALID program exit %d" % r.returncode)
+    return struct.unpack("<%dQ" % len(lits), r.stdout), 0, ""
+
+
+def one_refusal(omc, lit, ty, tmp):
+    """The compiler status for a program holding only this literal (expected: error 8)."""
+    _, rc, err = run_omc(omc, [(lit, ty)], tmp)
+    return rc, err
+
+
+def diff(omc, total, seed):
+    rng = random.Random(seed)
+    lits = random_lits(rng, total)
+    cnt = {"f64": 0, "f32": 0, "overflow": 0, "mismatch": 0}
+    good = []
+    with tempfile.TemporaryDirectory() as tmp:
+        for lit, ty in lits:
+            if expect(lit, ty) is None:
+                cnt["overflow"] += 1
+                if cnt["overflow"] <= 200:
+                    rc, err = one_refusal(omc, lit, ty, tmp)
+                    if rc != 8:
+                        cnt["mismatch"] += 1
+                        print("MISMATCH %s %s refused rc=%d %s" % (ty, lit, rc, err.strip()))
+            else:
+                good.append((lit, ty))
+        for i in range(0, len(good), 2000):
+            batch = good[i : i + 2000]
+            got, rc, err = run_omc(omc, batch, tmp)
+            if got is None:
+                raise SystemExit("FLOATDIFF INVALID compile rc=%d %s" % (rc, err.strip()))
+            for (lit, ty), g in zip(batch, got):
+                cnt[ty] += 1
+                want = expect(lit, ty)
+                if g != want:
+                    cnt["mismatch"] += 1
+                    if cnt["mismatch"] <= 40:
+                        print("MISMATCH %s %s got %x want %x" % (ty, lit, g, want))
+    ok = cnt["mismatch"] == 0 and cnt["f64"] + cnt["f32"] + cnt["overflow"] == total
+    print(
+        "FLOATDIFF %s total=%d f64=%d f32=%d overflow=%d overflow_checked=%d mismatch=%d seed=%d"
+        % ("PASS" if ok else "FAIL", total, cnt["f64"], cnt["f32"], cnt["overflow"],
+           min(cnt["overflow"], 200), cnt["mismatch"], seed)
+    )
+    return 0 if ok else 1
+
+
+# Fixed cases: #1024's two literals, halfway and subnormal boundaries, both ends of the range,
+# 19-digit significands and long fractions. Each row is (literal, type).
+TABLE = [
+    ("6816.702656e-27", "f64"),
+    ("2.4703282292062328e-324", "f64"),
+    ("2.4703282292062327e-324", "f64"),
+    ("2.470328229206232720e-324", "f64"),
+    ("2.470328229206232721e-324", "f64"),
+    ("4.9406564584124654e-324", "f64"),
+    ("7.4109846876186981e-324", "f64"),
+    ("2.2250738585072011e-308", "f64"),
+    ("2.2250738585072012e-308", "f64"),
+    ("2.2250738585072014e-308", "f64"),
+    ("1.7976931348623157e308", "f64"),
+    ("1.7976931348623158e308", "f64"),
+    ("9007199254740993.0", "f64"),
+    ("9007199254740993.001", "f64"),
+    ("9007199254740992.999", "f64"),
+    ("9007199254740995.0", "f64"),
+    ("4503599627370496.5", "f64"),
+    ("4503599627370497.5", "f64"),
+    ("1.000000000000000111e0", "f64"),
+    ("1.000000000000000110e0", "f64"),
+    ("0.1", "f64"),
+    ("0.3", "f64"),
+    ("123456789012345678e-20", "f64"),
+    ("9223372036854775807e-342", "f64"),
+    ("9223372036854775807e289", "f64"),
+    ("8.98846567431158e307", "f64"),
+    ("5.0e-324", "f64"),
+    ("4.9e-324", "f64"),
+    ("1e-999", "f64"),
+    ("-1e-999", "f64"),
+    ("0.000000000000000000000000000000000000000000000000000001e-270", "f64"),
+    ("1e23", "f64"),
+    ("8.533e-308", "f64"),
+    ("3.4028234663852886e38", "f32"),
+    ("3.4028235677973366e38", "f32"),
+    ("1.1754943508222875e-38", "f32"),
+    ("1.1754942807573643e-38", "f32"),
+    ("1.1754942807573644e-38", "f32"),
+    ("1.4012984643248171e-45", "f32"),
+    ("7.0064923216240854e-46", "f32"),
+    ("7.0064923216240853e-46", "f32"),
+    ("16777217.0", "f32"),
+    ("16777217.000000001", "f32"),
+    ("16777219.0", "f32"),
+    ("0.1", "f32"),
+    ("1.000000059604644776", "f32"),
+    ("1.000000059604644775", "f32"),
+    ("-2.718281828459045235", "f32"),
+    ("6816.702656e-27", "f32"),
+]
+
+
+def table():
+    here = os.path.dirname(os.path.abspath(__file__))
+    t = os.path.join(here, "tests", "float")
+    rng = random.Random(1024)
+    rows = list(TABLE)
+    while len(rows) < 512:
+        ty = "f64" if len(rows) % 3 else "f32"
+        lit = halfway_lit(rng, ty, rng.randrange(4) == 0)
+        if expect(lit, ty) is not None:
+            rows.append((lit, ty))
+    for lit, ty in rows:
+        assert expect(lit, ty) is not None, lit
+    with open(os.path.join(t, "lit_round.om"), "w") as f:
+        f.write("note generated by seed/omc/float-lits.py table: 512 literals (omega-mv#1024); expected\n")
+        f.write("note bits are in lit_round.want, computed by the script's exact rational oracle.\n")
+        f.write(program(rows))
+    with open(os.path.join(t, "lit_round.want"), "w") as f:
+        for lit, ty in rows:
+            f.write("%016x %s %s\n" % (expect(lit, ty), ty, lit))
+    print("wrote %d rows" % len(rows))
+
+
+if __name__ == "__main__":
+    if sys.argv[1:2] == ["table"]:
+        table()
+    elif sys.argv[1:2] == ["diff"] and len(sys.argv) == 5:
+        sys.exit(diff(sys.argv[2], int(sys.argv[3]), int(sys.argv[4])))
+    else:
+        sys.exit(__doc__)
diff --git a/seed/omc/gate8.sh b/seed/omc/gate8.sh
index 5402a8e13..769eb7a7c 100755
--- a/seed/omc/gate8.sh
+++ b/seed/omc/gate8.sh
@@ -83,6 +83,19 @@ refuse neg_ir 3
 refuse neg_void_value 7
 refuse neg_f32_fall 18
 refuse neg_bitcast_width 7
+refuse neg_int_assign 7
+refuse neg_int_ret 7
+refuse neg_int_arg 7
+refuse neg_int_put 7
+
+# Literal rounding (#1024): 512 literals, each rounded once to nearest even. lit_round.want holds the
+# bits from seed/omc/float-lits.py's exact rational oracle (Python fractions), never from omc.
+n=$((n+1))
+"$S" < "$T/lit_round.om" > "$B/lit_round.bin" 2> "$B/lit_round.err" || bad "lit_round: compiler refused it ($(cat "$B/lit_round.err"))"
+chmod +x "$B/lit_round.bin"
+"$B/lit_round.bin" | od -An -v -tx8 -w8 | tr -d ' ' > "$B/lit_round.got"
+cut -d' ' -f1 "$T/lit_round.want" | cmp -s - "$B/lit_round.got" || bad "lit_round: bits differ from lit_round.want"
+say "PASS lit_round $(wc -l < "$T/lit_round.want") literals"
 
 say "PASS gate8 $n cases"
 exit 0
diff --git a/seed/omc/omc.om b/seed/omc/omc.om
index 8d299a3a5..6546336ee 100644
--- a/seed/omc/omc.om
+++ b/seed/omc/omc.om
@@ -1920,15 +1920,17 @@ global fg_e long 1
 global fg_q ulong 1
 global fg_m ulong 1
 global fg_stk ulong 1
-global fg_low ulong 1
-global fg_ov ulong 1
+global fbn ulong 80
 
 note ======== float literals: decimal text to IEEE-754 binary32/binary64 ========
-note The literal is fnd * 10^fp10. The converter normalizes fnd to a 64-bit significand, applies the
-note decimal scale one factor of ten at a time (fmul10/fdiv10) while folding lost bits into one sticky
-note flag, then rounds once (froundsh) and packs (fpack). It covers the full IEEE range, subnormals
-note included, and refuses (error 8) only a value that rounds to infinity or whose digits do not fit
-note in 2^63-1.
+note The literal is fnd * 10^fp10 = A / D with A = fnd * 10^max(fp10,0) and D = 10^max(-fp10,0), both
+note held exactly as 40 32-bit limbs in fbn (A at 0, D at 40). The smaller of the two is shifted to the
+note other's bit length, then restoring division yields the first 64 quotient bits (fg_m, leading bit
+note set) and a remainder whose nonzero-ness is the sticky flag (fg_stk); froundsh rounds that exact
+note truncation once to nearest even and fpack packs it, subnormals included (#1024: the old converter
+note scaled one factor of ten at a time and dropped bits at every step). fp10 < -343 means a value
+note below (2^63-1)*10^-344 < 2^-1075, signed zero; fp10 > 308 means at least 10^309, above the
+note binary64 maximum (error 8). So A and D never exceed 1141 bits.
 
 note blen: bits needed for x (0 for zero)
 fn blen x ulong to ulong
@@ -1943,8 +1945,8 @@ end
 note fparse: read the literal text inp[pos, pos+len) into fsgn, fnd, fp10, fsuf (0 none, 1 f32, 2 f64).
 note Grammar: [-]digits[.digits][(e|E)[+|-]digits][f32|f64]. At most 2^63-1 significant digits
 note (error 8), a dot with no digit after it is error 6, |exponent| <= 999 (error 8).
-note The digit scans here and in fexp and the decimal steps in fbits run as nested 999999-pass loops: a
-note literal of more than 1000000 zero digits trapped 4 in a single loop's hidden 1000000-pass guard (#965).
+note The digit scans here and in fexp run as nested 999999-pass loops: a literal of more than 1000000
+note zero digits trapped 4 in a single loop's hidden 1000000-pass guard (#965).
 fn fparse pos ulong ln ulong to void
 p = pos
 e = add pos ln
@@ -2074,48 +2076,66 @@ end
 ret p
 end
 
-note fbits: the parsed literal as IEEE bits of type ty (10 f32, 11 f64). Zero keeps the sign (-0.0).
-note fmul10 / fdiv10: one exact decimal step on the normalized significand fg_m (value = fg_m * 2^fg_e),
-note keeping fg_m in [2^63, 2^64) and folding every lost bit into fg_stk. No rounding happens here.
-fn fmul10 to void
-m = get fg_m 0
-hi = shr m 32
-lo = and m 4294967295
-p0 = mul lo 10
-p1 = mul hi 10
-hi2 = add p1 shr p0 32
-put fg_low 0 or shl and hi2 4294967295 32 and p0 4294967295
-put fg_ov 0 shr hi2 32
-fmn10
+note fbmul: limbs fbn[o, o+40) times k (k < 2^32, so each limb step fits 64 bits); the product must fit
+note in 40 limbs. Returns its bit length, so fbmul o 1 only measures.
+fn fbmul o ulong k ulong to ulong
+c = ulong 0
+t = ulong 0
+i = ulong 0
+while lt i 40
+j = add o i
+v = add mul get fbn j k c
+put fbn j and v 4294967295
+c = shr v 32
+if ne and v 4294967295 0
+t = add mul i 32 blen and v 4294967295
+end
+i = add i 1
+end
+ret t
 end
 
-fn fmn10 to void
-ov = get fg_ov 0
-low = get fg_low 0
-s = blen ov
-if ne s 0
-st = or get fg_stk 0 and low sub shl 1 s 1
-put fg_stk 0 st
-put fg_m 0 or shl ov sub 64 s shr low s
-put fg_e 0 add get fg_e 0 long s
-else
-put fg_m 0 low
+note fbpow: fbn[o, o+40) times b^n (b 2 or 10), in factors that stay below 2^32.
+fn fbpow o ulong b ulong n ulong to void
+while gt n 0
+m = ulong 1
+c = ulong 0
+while and lt c n le mul m b 4294967295
+m = mul m b
+c = add c 1
+end
+t = fbmul o m
+n = sub n c
 end
 end
 
-fn fdiv10 to void
-m = get fg_m 0
-q = div m 10
-if ne rem m 10 0
-put fg_stk 0 1
+note fbsub: one restoring-division step. If A >= D then A = A - D and 1, else A is kept and 0.
+fn fbsub to ulong
+r = ulong 2
+i = ulong 40
+while and gt i 0 eq r 2
+i = sub i 1
+a = get fbn i
+d = get fbn add i 40
+if lt a d
+r = ulong 0
 end
-s = ulong 0
-while lt q 9223372036854775808
-q = shl q 1
-s = add s 1
+if gt a d
+r = ulong 1
 end
-put fg_m 0 q
-put fg_e 0 sub get fg_e 0 long s
+end
+if eq r 0
+ret 0
+end
+b = ulong 0
+i = ulong 0
+while lt i 40
+v = sub sub get fbn i get fbn add i 40 b
+put fbn i and v 4294967295
+b = shr v 63
+i = add i 1
+end
+ret 1
 end
 
 note froundsh: round fg_m right by sh bits to fg_q, nearest even; the guard and every lower bit
@@ -2194,10 +2214,11 @@ q = or q shl get fsgn 0 sub w 1
 ret q
 end
 
+note fbits: the parsed literal as IEEE bits of type ty (10 f32, 11 f64). Zero keeps the sign (-0.0).
 fn fbits ty ulong to ulong
 put fg_ty 0 ty
-put fg_stk 0 0
-if eq get fnd 0 0
+p = get fp10 0
+if or eq get fnd 0 0 lt p -343
 w = ulong 64
 if eq ty 10
 w = ulong 32
@@ -2208,34 +2229,41 @@ b = shl ulong 1 sub w 1
 end
 ret b
 end
-b = blen get fnd 0
-sh = sub 64 b
-put fg_m 0 shl get fnd 0 sh
-put fg_e 0 sub 0 long sh
-p = get fp10 0
-if gt p 0
+if gt p 308
+fail 8
+end
 i = ulong 0
-n = ulong p
-while lt i n
-fmul10
+while lt i 80
+put fbn i 0
 i = add i 1
 end
+put fbn 0 and get fnd 0 4294967295
+put fbn 1 shr get fnd 0 32
+put fbn 40 1
+if gt p 0
+fbpow 0 10 ulong p
 else
-if lt p 0
-i = ulong 0
-n = ulong sub 0 p
-while lt i n
-c = sub n i
-if gt c 999999
-c = ulong 999999
-end
-for k ulong c
-fdiv10
-end
-i = add i c
+fbpow 40 10 ulong sub 0 p
 end
+a = fbmul 0 1
+d = fbmul 40 1
+e = long 0
+if lt a d
+fbpow 0 2 sub d a
+e = sub 0 long sub d a
+else
+fbpow 40 2 sub a d
+e = long sub a d
 end
+q = ulong 0
+while lt q 9223372036854775808
+q = or shl q 1 fbsub
+a = fbmul 0 2
+e = sub e 1
 end
+put fg_m 0 q
+put fg_e 0 add e 1
+put fg_stk 0 fbmul 0 1
 ret fpack
 end
 
@@ -7594,7 +7622,9 @@ if eq exp 0
 vdone 2 get tw 0 get tbig 0
 ret
 end
-if ge exp 64
+note an integer literal where a float is expected is the mixing OMEGESE 9.9 refuses (error 7); before
+note this it was stored as raw bits (f64 x = 1 held 0x1). The conversion f64 1 reads it with exp 0.
+if or ge exp 64 ne isfloat exp 0
 fail 7
 end
 range get tw 0 exp get tbig 0
diff --git a/seed/omc/tests/float/lit_round.om b/seed/omc/tests/float/lit_round.om
new file mode 100644
index 000000000..d739163d2
--- /dev/null
+++ b/seed/omc/tests/float/lit_round.om
@@ -0,0 +1,526 @@
+note generated by seed/omc/float-lits.py table: 512 literals (omega-mv#1024); expected
+note bits are in lit_round.want, computed by the script's exact rational oracle.
+global g ulong 512
+fn main to int
+put g 0 bitcast ulong f64 6816.702656e-27
+put g 1 bitcast ulong f64 2.4703282292062328e-324
+put g 2 bitcast ulong f64 2.4703282292062327e-324
+put g 3 bitcast ulong f64 2.470328229206232720e-324
+put g 4 bitcast ulong f64 2.470328229206232721e-324
+put g 5 bitcast ulong f64 4.9406564584124654e-324
+put g 6 bitcast ulong f64 7.4109846876186981e-324
+put g 7 bitcast ulong f64 2.2250738585072011e-308
+put g 8 bitcast ulong f64 2.2250738585072012e-308
+put g 9 bitcast ulong f64 2.2250738585072014e-308
+put g 10 bitcast ulong f64 1.7976931348623157e308
+put g 11 bitcast ulong f64 1.7976931348623158e308
+put g 12 bitcast ulong f64 9007199254740993.0
+put g 13 bitcast ulong f64 9007199254740993.001
+put g 14 bitcast ulong f64 9007199254740992.999
+put g 15 bitcast ulong f64 9007199254740995.0
+put g 16 bitcast ulong f64 4503599627370496.5
+put g 17 bitcast ulong f64 4503599627370497.5
+put g 18 bitcast ulong f64 1.000000000000000111e0
+put g 19 bitcast ulong f64 1.000000000000000110e0
+put g 20 bitcast ulong f64 0.1
+put g 21 bitcast ulong f64 0.3
+put g 22 bitcast ulong f64 123456789012345678e-20
+put g 23 bitcast ulong f64 9223372036854775807e-342
+put g 24 bitcast ulong f64 9223372036854775807e289
+put g 25 bitcast ulong f64 8.98846567431158e307
+put g 26 bitcast ulong f64 5.0e-324
+put g 27 bitcast ulong f64 4.9e-324
+put g 28 bitcast ulong f64 1e-999
+put g 29 bitcast ulong f64 -1e-999
+put g 30 bitcast ulong f64 0.000000000000000000000000000000000000000000000000000001e-270
+put g 31 bitcast ulong f64 1e23
+put g 32 bitcast ulong f64 8.533e-308
+put g 33 ulong bitcast uint f32 3.4028234663852886e38
+put g 34 ulong bitcast uint f32 3.4028235677973366e38
+put g 35 ulong bitcast uint f32 1.1754943508222875e-38
+put g 36 ulong bitcast uint f32 1.1754942807573643e-38
+put g 37 ulong bitcast uint f32 1.1754942807573644e-38
+put g 38 ulong bitcast uint f32 1.4012984643248171e-45
+put g 39 ulong bitcast uint f32 7.0064923216240854e-46
+put g 40 ulong bitcast uint f32 7.0064923216240853e-46
+put g 41 ulong bitcast uint f32 16777217.0
+put g 42 ulong bitcast uint f32 16777217.000000001
+put g 43 ulong bitcast uint f32 16777219.0
+put g 44 ulong bitcast uint f32 0.1
+put g 45 ulong bitcast uint f32 1.000000059604644776
+put g 46 ulong bitcast uint f32 1.000000059604644775
+put g 47 ulong bitcast uint f32 -2.718281828459045235
+put g 48 ulong bitcast uint f32 6816.702656e-27
+put g 49 bitcast ulong f64 -375821932269757374e255
+put g 50 bitcast ulong f64 -202234348434816469e208
+put g 51 ulong bitcast uint f32 -2973963901662850944e-42
+put g 52 bitcast ulong f64 5191404815286016755e-151
+put g 53 bitcast ulong f64 2271525195587109e-230
+put g 54 ulong bitcast uint f32 -580420628479999999e-7
+put g 55 bitcast ulong f64 20732134867242909e31
+put g 56 bitcast ulong f64 1166515541451923e-140
+put g 57 ulong bitcast uint f32 -6506134122410929e10
+put g 58 bitcast ulong f64 -71794399309059907e-314
+put g 59 bitcast ulong f64 65648976200436756e84
+put g 60 ulong bitcast uint f32 2948420844893217e-51
+put g 61 bitcast ulong f64 -16712616438362036e140
+put g 62 bitcast ulong f64 4504910455592000788e65
+put g 63 ulong bitcast uint f32 -376193904639999999e-7
+put g 64 bitcast ulong f64 -1398479261630382314e-117
+put g 65 bitcast ulong f64 5887983611745511053e226
+put g 66 ulong bitcast uint f32 36235665431541000e-47
+put g 67 bitcast ulong f64 10484564013533189e290
+put g 68 bitcast ulong f64 11028636330332277e42
+put g 69 ulong bitcast uint f32 454532030559009249e-46
+put g 70 bitcast ulong f64 317735451962194645e248
+put g 71 bitcast ulong f64 14204719867337691e-165
+put g 72 ulong bitcast uint f32 1537945196924924e-36
+put g 73 bitcast ulong f64 -5919609445216682e72
+put g 74 bitcast ulong f64 29157534035236413e218
+put g 75 ulong bitcast uint f32 6163050750000000000e-12
+put g 76 bitcast ulong f64 3439278671016254739e-98
+put g 77 bitcast ulong f64 518967891053101078e-194
+put g 78 ulong bitcast uint f32 9689668514790270e14
+put g 79 bitcast ulong f64 153420132380098379e3
+put g 80 bitcast ulong f64 17874504497611007e-146
+put g 81 ulong bitcast uint f32 6613348556267864148e-50
+put g 82 bitcast ulong f64 606222212881307825e-246
+put g 83 bitcast ulong f64 1189179423319431608e-261
+put g 84 ulong bitcast uint f32 114721766682286183e-45
+put g 85 bitcast ulong f64 1474683981201443959e-326
+put g 86 bitcast ulong f64 7746652212459088e173
+put g 87 ulong bitcast uint f32 661591561338880001e-3
+put g 88 bitcast ulong f64 51130746011641185e-55
+put g 89 bitcast ulong f64 36843758916188667e219
+put g 90 ulong bitcast uint f32 8340612411499023437e-17
+put g 91 bitcast ulong f64 114561251532421524e-166
+put g 92 bitcast ulong f64 35555989829477186e-218
+put g 93 ulong bitcast uint f32 655423941058394083e-49
+put g 94 bitcast ulong f64 191106547804733178e68
+put g 95 bitcast ulong f64 -5252823911417762283e121
+put g 96 ulong bitcast uint f32 3547467637099973094e-57
+put g 97 bitcast ulong f64 4735189385166733e-200
+put g 98 bitcast ulong f64 4306870738407479920e-294
+put g 99 ulong bitcast uint f32 767925286293029784e-17
+put g 100 bitcast ulong f64 22795243475930011e-135
+put g 101 bitcast ulong f64 -81266140883925276e-223
+put g 102 ulong bitcast uint f32 205257079781326847e0
+put g 103 bitcast ulong f64 1149611430840913451e-95
+put g 104 bitcast ulong f64 -1423448727908517345e-260
+put g 105 ulong bitcast uint f32 1597436172697600e-2
+put g 106 bitcast ulong f64 1276018688222995785e-118
+put g 107 bitcast ulong f64 5133450261110201715e266
+put g 108 ulong bitcast uint f32 204006585599999999e-8
+put g 109 bitcast ulong f64 33145712676936604e72
+put g 110 bitcast ulong f64 1690488319703767503e208
+put g 111 ulong bitcast uint f32 4709959619731482e-54
+put g 112 bitcast ulong f64 -2378754980811486e173
+put g 113 bitcast ulong f64 1840700535146971e-74
+put g 114 ulong bitcast uint f32 75200055071888983e-25
+put g 115 bitcast ulong f64 -71545702739054040e250
+put g 116 bitcast ulong f64 -25522353052833963e-228
+put g 117 ulong bitcast uint f32 8748962880000000000e-10
+put g 118 bitcast ulong f64 -2372120806434828858e128
+put g 119 bitcast ulong f64 1823311349745584077e243
+put g 120 ulong bitcast uint f32 6809600778946432e-54
+put g 121 bitcast ulong f64 913171146268696000e-217
+put g 122 bitcast ulong f64 16680706153121406e124
+put g 123 ulong bitcast uint f32 64303666835741068e-25
+put g 124 bitcast ulong f64 501548584809020141e-34
+put g 125 bitcast ulong f64 -1328864988897065e-240
+put g 126 ulong bitcast uint f32 701026601838851207e-55
+put g 127 bitcast ulong f64 5786547437849839337e183
+put g 128 bitcast ulong f64 1989252759163890e-141
+put g 129 ulong bitcast uint f32 525952179597185590e19
+put g 130 bitcast ulong f64 -795247565878223935e-241
+put g 131 bitcast ulong f64 156809835765382358e-31
+put g 132 ulong bitcast uint f32 5449894716567725111e12
+put g 133 bitcast ulong f64 22579372799856760e-2
+put g 134 bitcast ulong f64 2946886744459427560e151
+put g 135 ulong bitcast uint f32 4049473754625039193e5
+put g 136 bitcast ulong f64 6046915826877669e115
+put g 137 bitcast ulong f64 4994937588332783033e21
+put g 138 ulong bitcast uint f32 -2180125538424870e-44
+put g 139 bitcast ulong f64 -8142333053600316474e-41
+put g 140 bitcast ulong f64 55337420205846255e-47
+put g 141 ulong bitcast uint f32 3417338293385661776e3
+put g 142 bitcast ulong f64 7923916295075799155e-159
+put g 143 bitcast ulong f64 812597665449079746e33
+put g 144 ulong bitcast uint f32 463054425775144961e0
+put g 145 bitcast ulong f64 35988605798086032e108
+put g 146 bitcast ulong f64 687090251882144732e-297
+put g 147 ulong bitcast uint f32 2734477835136806e-26
+put g 148 bitcast ulong f64 563355598128310259e133
+put g 149 bitcast ulong f64 15153230372136516e-90
+put g 150 ulong bitcast uint f32 -1957881855999999e-4
+put g 151 bitcast ulong f64 7830962793334040001e-317
+put g 152 bitcast ulong f64 3513352203301290e-116
+put g 153 ulong bitcast uint f32 404801338089550940e20
+put g 154 bitcast ulong f64 726834211860007258e266
+put g 155 bitcast ulong f64 4164019276225793e195
+put g 156 ulong bitcast uint f32 7655845947265625001e-15
+put g 157 bitcast ulong f64 40241487536462895e5
+put g 158 bitcast ulong f64 85852113460110816e-99
+put g 159 ulong bitcast uint f32 69561713380294656e0
+put g 160 bitcast ulong f64 493790991479451249e-78
+put g 161 bitcast ulong f64 -3198769727797455e0
+put g 162 ulong bitcast uint f32 979213617743196484e-30
+put g 163 bitcast ulong f64 1125469211988774e-16
+put g 164 bitcast ulong f64 1171630234790473e154
+put g 165 ulong bitcast uint f32 -1042446501848023040e-1
+put g 166 bitcast ulong f64 3755029742088051495e123
+put g 167 bitcast ulong f64 986502524837306402e-219
+put g 168 ulong bitcast uint f32 8521131925512620e-38
+put g 169 bitcast ulong f64 517196783238926666e-104
+put g 170 bitcast ulong f64 -77342653150512462e-278
+put g 171 ulong bitcast uint f32 36666792187500001e-11
+put g 172 bitcast ulong f64 1749308346995776e89
+put g 173 bitcast ulong f64 426392826368002224e-238
+put g 174 ulong bitcast uint f32 203031744384765626e-14
+put g 175 bitcast ulong f64 84561003935451072e280
+put g 176 bitcast ulong f64 -94509731598391450e57
+put g 177 ulong bitcast uint f32 -157174082286182211e-35
+put g 178 bitcast ulong f64 1694435015971760547e-208
+put g 179 bitcast ulong f64 35672447842657146e-261
+put g 180 ulong bitcast uint f32 94211677877803418e1
+put g 181 bitcast ulong f64 294733613989749426e52
+put g 182 bitcast ulong f64 11639670623766864e-246
+put g 183 ulong bitcast uint f32 -29538470084488025e8
+put g 184 bitcast ulong f64 6588676157588085e-21
+put g 185 bitcast ulong f64 225762860534031872e190
+put g 186 ulong bitcast uint f32 -548537003809451515e-49
+put g 187 bitcast ulong f64 15747135049307380e-283
+put g 188 bitcast ulong f64 -512097175129246092e92
+put g 189 ulong bitcast uint f32 1245047379709510505e-57
+put g 190 bitcast ulong f64 -56753317339459484e-83
+put g 191 bitcast ulong f64 88440243727950602e173
+put g 192 ulong bitcast uint f32 -3873158901918897260e-35
+put g 193 bitcast ulong f64 6081310412970360e-194
+put g 194 bitcast ulong f64 -8713309685590831e-8
+put g 195 ulong bitcast uint f32 -25698433397672227e-43
+put g 196 bitcast ulong f64 37095403849430042e72
+put g 197 bitcast ulong f64 50335960212035912e250
+put g 198 ulong bitcast uint f32 4039061645507812e-12
+put g 199 bitcast ulong f64 52488357074190007e-325
+put g 200 bitcast ulong f64 -106672426738182459e197
+put g 201 ulong bitcast uint f32 6296500115223353775e-37
+put g 202 bitcast ulong f64 37664968618100925e14
+put g 203 bitcast ulong f64 3196976087298501485e-30
+put g 204 ulong bitcast uint f32 1261509039835728874e11
+put g 205 bitcast ulong f64 581888460574583447e224
+put g 206 bitcast ulong f64 2873453909286451219e-221
+put g 207 ulong bitcast uint f32 4308231359924202e11
+put g 208 bitcast ulong f64 3948875345900577474e-130
+put g 209 bitcast ulong f64 -1675957590881911601e156
+put g 210 ulong bitcast uint f32 -4755434044607141851e-35
+put g 211 bitcast ulong f64 1489443698549046335e25
+put g 212 bitcast ulong f64 2719842364767937542e73
+put g 213 ulong bitcast uint f32 -8501426368870078219e2
+put g 214 bitcast ulong f64 -8039231559564884e168
+put g 215 bitcast ulong f64 23899630678216040e-325
+put g 216 ulong bitcast uint f32 -18107027709187064e18
+put g 217 bitcast ulong f64 2064434783107365e98
+put g 218 bitcast ulong f64 177131446677870309e24
+put g 219 ulong bitcast uint f32 931860285206036480e-1
+put g 220 bitcast ulong f64 5207424933874016160e-25
+put g 221 bitcast ulong f64 130108822432845006e-57
+put g 222 ulong bitcast uint f32 3606205289941044613e-26
+put g 223 bitcast ulong f64 585720339821215959e-79
+put g 224 bitcast ulong f64 -543731037745190669e-135
+put g 225 ulong bitcast uint f32 5239683036843603237e15
+put g 226 bitcast ulong f64 -10582775870096683e-251
+put g 227 bitcast ulong f64 685648082718636436e-144
+put g 228 ulong bitcast uint f32 -5052672800000002e-7
+put g 229 bitcast ulong f64 -5839650893061325e179
+put g 230 bitcast ulong f64 1786633376734921e-189
+put g 231 ulong bitcast uint f32 2845391938781829e14
+put g 232 bitcast ulong f64 -785941222793735855e-185
+put g 233 bitcast ulong f64 44113686845663037e252
+put g 234 ulong bitcast uint f32 -537851347900791046e-39
+put g 235 bitcast ulong f64 15075868976891987e-149
+put g 236 bitcast ulong f64 6886589836071498e-137
+put g 237 ulong bitcast uint f32 49596303334757160e-43
+put g 238 bitcast ulong f64 1542447072129030e-149
+put g 239 bitcast ulong f64 79930462411643564e-259
+put g 240 ulong bitcast uint f32 113795497747187768e-52
+put g 241 bitcast ulong f64 -3378239346734262143e115
+put g 242 bitcast ulong f64 430972982566482614e-80
+put g 243 ulong bitcast uint f32 -671401709318161011e-18
+put g 244 bitcast ulong f64 836694698479489364e-12
+put g 245 bitcast ulong f64 272671318415002645e-90
+put g 246 ulong bitcast uint f32 6895340342713544e-42
+put g 247 bitcast ulong f64 196667173975722936e50
+put g 248 bitcast ulong f64 -1005501912434058628e44
+put g 249 ulong bitcast uint f32 3326355073787842622e-45
+put g 250 bitcast ulong f64 647078441630541638e-301
+put g 251 bitcast ulong f64 12946085725192090e239
+put g 252 ulong bitcast uint f32 1250838579200000000e-8
+put g 253 bitcast ulong f64 3706561191588364e-267
+put g 254 bitcast ulong f64 4791233148558496e-175
+put g 255 ulong bitcast uint f32 3331198612930561e-1
+put g 256 bitcast ulong f64 9797631473689359e-261
+put g 257 bitcast ulong f64 41445511245044488e-291
+put g 258 ulong bitcast uint f32 -1872335562790469e-38
+put g 259 bitcast ulong f64 3717438101387806817e183
+put g 260 bitcast ulong f64 -55746575407172968e-118
+put g 261 ulong bitcast uint f32 8867354003906250000e-15
+put g 262 bitcast ulong f64 130973525752357166e157
+put g 263 bitcast ulong f64 -4888208417361649432e-274
+put g 264 ulong bitcast uint f32 7616404292268734061e-49
+put g 265 bitcast ulong f64 2266897929634139710e191
+put g 266 bitcast ulong f64 25837108416586799e-38
+put g 267 ulong bitcast uint f32 400778380800000001e-8
+put g 268 bitcast ulong f64 1865738036359550302e127
+put g 269 bitcast ulong f64 -3669332985843394845e-253
+put g 270 ulong bitcast uint f32 35745629135272602e-33
+put g 271 bitcast ulong f64 9231224382602775e-184
+put g 272 bitcast ulong f64 1801502572143060413e-122
+put g 273 ulong bitcast uint f32 302506874879999999e-7
+put g 274 bitcast ulong f64 223801911172896324e-28
+put g 275 bitcast ulong f64 176833502853887921e132
+put g 276 ulong bitcast uint f32 32897030177991836e-20
+put g 277 bitcast ulong f64 7477268520820897960e88
+put g 278 bitcast ulong f64 1951293917121391240e142
+put g 279 ulong bitcast uint f32 324592997989454921e6
+put g 280 bitcast ulong f64 -2965236977772923e-92
+put g 281 bitcast ulong f64 -6419803435815896e172
+put g 282 ulong bitcast uint f32 3188243304713566133e4
+put g 283 bitcast ulong f64 6032125657622264789e237
+put g 284 bitcast ulong f64 5600360230782765e-272
+put g 285 ulong bitcast uint f32 1317257717833864e-26
+put g 286 bitcast ulong f64 2270575420587385213e51
+put g 287 bitcast ulong f64 9242771262854188e182
+put g 288 ulong bitcast uint f32 -11341510665601656e-49
+put g 289 bitcast ulong f64 55198729325949525e84
+put g 290 bitcast ulong f64 1552304996259824382e282
+put g 291 ulong bitcast uint f32 116248487042284990e18
+put g 292 bitcast ulong f64 274895147032970773e198
+put g 293 bitcast ulong f64 -8554338939473187399e-64
+put g 294 ulong bitcast uint f32 474266292374992964e17
+put g 295 bitcast ulong f64 4304748447892565118e-135
+put g 296 bitcast ulong f64 69912934425817717e85
+put g 297 ulong bitcast uint f32 5348810188318703265e-57
+put g 298 bitcast ulong f64 430201222231595584e92
+put g 299 bitcast ulong f64 2918052708349937898e-152
+put g 300 ulong bitcast uint f32 2556592677394323042e-57
+put g 301 bitcast ulong f64 3101550961068630145e265
+put g 302 bitcast ulong f64 5946232706748293e-20
+put g 303 ulong bitcast uint f32 120610249278899520e-56
+put g 304 bitcast ulong f64 1724617373157809210e-75
+put g 305 bitcast ulong f64 -224389354778702008e81
+put g 306 ulong bitcast uint f32 38926252799999999e-7
+put g 307 bitcast ulong f64 4835659815101461634e-72
+put g 308 bitcast ulong f64 -6104139122392729e-217
+put g 309 ulong bitcast uint f32 1509310298928173e19
+put g 310 bitcast ulong f64 -90428466208291398e-169
+put g 311 bitcast ulong f64 1934574381957733e-153
+put g 312 ulong bitcast uint f32 201734828806365839e-22
+put g 313 bitcast ulong f64 -259560774366624101e-284
+put g 314 bitcast ulong f64 4903637453108394719e-102
+put g 315 ulong bitcast uint f32 6185519104003908e-13
+put g 316 bitcast ulong f64 11178496952715981e198
+put g 317 bitcast ulong f64 6514401193370998e283
+put g 318 ulong bitcast uint f32 22193478400000000e-7
+put g 319 bitcast ulong f64 533616824052795398e147
+put g 320 bitcast ulong f64 19043786924160795e-248
+put g 321 ulong bitcast uint f32 10370070514013768e18
+put g 322 bitcast ulong f64 -978866913819699711e-320
+put g 323 bitcast ulong f64 -1446128794635973157e-324
+put g 324 ulong bitcast uint f32 -788909789945232221e-42
+put g 325 bitcast ulong f64 7027708211948622e-144
+put g 326 bitcast ulong f64 41775508649923490e107
+put g 327 ulong bitcast uint f32 5485722851562500e-11
+put g 328 bitcast ulong f64 25769655324523984e83
+put g 329 bitcast ulong f64 234711211077181200e-290
+put g 330 ulong bitcast uint f32 5728388423331676192e-29
+put g 331 bitcast ulong f64 2805368730682095e55
+put g 332 bitcast ulong f64 399345818591460968e275
+put g 333 ulong bitcast uint f32 7909517778653516e-54
+put g 334 bitcast ulong f64 430868001637135907e7
+put g 335 bitcast ulong f64 687349887789119577e-107
+put g 336 ulong bitcast uint f32 -199173835754394531e-15
+put g 337 bitcast ulong f64 25854827627844486e-172
+put g 338 bitcast ulong f64 159582158657288948e236
+put g 339 ulong bitcast uint f32 1046608803527239e-55
+put g 340 bitcast ulong f64 -535465427982050064e243
+put g 341 bitcast ulong f64 1181501351746308e-165
+put g 342 ulong bitcast uint f32 1920272852582402e-2
+put g 343 bitcast ulong f64 50624518977062205e99
+put g 344 bitcast ulong f64 3688982865310718e-23
+put g 345 ulong bitcast uint f32 2760836678769909e10
+put g 346 bitcast ulong f64 70492629864233924e146
+put g 347 bitcast ulong f64 1291402301018290e235
+put g 348 ulong bitcast uint f32 1664395586307564553e-39
+put g 349 bitcast ulong f64 -509928144143520291e193
+put g 350 bitcast ulong f64 328168353990310446e-87
+put g 351 ulong bitcast uint f32 -55779988916332798e-52
+put g 352 bitcast ulong f64 -3271400373566726481e202
+put g 353 bitcast ulong f64 84808620329112852e248
+put g 354 ulong bitcast uint f32 8795885575287603200e-2
+put g 355 bitcast ulong f64 -927992934476076607e131
+put g 356 bitcast ulong f64 -89097230263710145e144
+put g 357 ulong bitcast uint f32 1458533841791356e-38
+put g 358 bitcast ulong f64 -234780858708941759e51
+put g 359 bitcast ulong f64 112927436415714802e129
+put g 360 ulong bitcast uint f32 -1074512327327152050e-32
+put g 361 bitcast ulong f64 26057001128139245e112
+put g 362 bitcast ulong f64 -811383085403086494e-124
+put g 363 ulong bitcast uint f32 -1099836332857796156e-42
+put g 364 bitcast ulong f64 117757044164306240e-292
+put g 365 bitcast ulong f64 36341709932021731e-83
+put g 366 ulong bitcast uint f32 9645875113589182e-54
+put g 367 bitcast ulong f64 -8921032270088777e-305
+put g 368 bitcast ulong f64 -8066524228755088e-138
+put g 369 ulong bitcast uint f32 7346060337722754017e-31
+put g 370 bitcast ulong f64 2079484419560794e-200
+put g 371 bitcast ulong f64 -8148761354560880864e14
+put g 372 ulong bitcast uint f32 47562698278980654e-33
+put g 373 bitcast ulong f64 2535283521334710e-132
+put g 374 bitcast ulong f64 -2309401756732660e-45
+put g 375 ulong bitcast uint f32 -68324529230693643e-34
+put g 376 bitcast ulong f64 28262114260963431e-168
+put g 377 bitcast ulong f64 -7667803631119554982e-265
+put g 378 ulong bitcast uint f32 1085216172567321502e-30
+put g 379 bitcast ulong f64 376356183998515828e105
+put g 380 bitcast ulong f64 1664853879845261351e107
+put g 381 ulong bitcast uint f32 5999597354458855e22
+put g 382 bitcast ulong f64 36660451264852374e66
+put g 383 bitcast ulong f64 1926801467286046e-215
+put g 384 ulong bitcast uint f32 40730185550106767e-37
+put g 385 bitcast ulong f64 47687000255973000e211
+put g 386 bitcast ulong f64 1522068252958341651e258
+put g 387 ulong bitcast uint f32 1637114432000000001e-9
+put g 388 bitcast ulong f64 514289410910309314e-152
+put g 389 bitcast ulong f64 10203126981345311e227
+put g 390 ulong bitcast uint f32 -1321115228201275e-36
+put g 391 bitcast ulong f64 3583911280015113305e-107
+put g 392 bitcast ulong f64 1954664165328553295e-49
+put g 393 ulong bitcast uint f32 -4480736652317496e-44
+put g 394 bitcast ulong f64 2174581063755997e18
+put g 395 bitcast ulong f64 -3642421964986968e-206
+put g 396 ulong bitcast uint f32 13842599028203359e22
+put g 397 bitcast ulong f64 4721867561732200599e10
+put g 398 bitcast ulong f64 -73118597193434806e-155
+put g 399 ulong bitcast uint f32 3235688716962670e-24
+put g 400 bitcast ulong f64 -1108232333360761e-1
+put g 401 bitcast ulong f64 6994077099210629e-161
+put g 402 ulong bitcast uint f32 642642558593749999e-13
+put g 403 bitcast ulong f64 -972632922358120494e203
+put g 404 bitcast ulong f64 -400726946311322394e286
+put g 405 ulong bitcast uint f32 -1981674700800000000e-7
+put g 406 bitcast ulong f64 2552615568749579600e65
+put g 407 bitcast ulong f64 5321274583523039860e270
+put g 408 ulong bitcast uint f32 85698298683778228e16
+put g 409 bitcast ulong f64 222447845198630339e-69
+put g 410 bitcast ulong f64 9668089998944282e165
+put g 411 ulong bitcast uint f32 1366437343853417e23
+put g 412 bitcast ulong f64 9296476526320008e-139
+put g 413 bitcast ulong f64 333355211333530047e106
+put g 414 ulong bitcast uint f32 98545497092393150e-48
+put g 415 bitcast ulong f64 -812226137284792287e56
+put g 416 bitcast ulong f64 244992274411180463e-249
+put g 417 ulong bitcast uint f32 -1608224703947556342e-47
+put g 418 bitcast ulong f64 22216856318147891e-324
+put g 419 bitcast ulong f64 187618754839084328e-85
+put g 420 ulong bitcast uint f32 -990583839949686567e-56
+put g 421 bitcast ulong f64 1405191065184798e-173
+put g 422 bitcast ulong f64 120074813598245047e-244
+put g 423 ulong bitcast uint f32 44819914550781251e-13
+put g 424 bitcast ulong f64 570742919505190869e20
+put g 425 bitcast ulong f64 6785695272503129e-39
+put g 426 ulong bitcast uint f32 5184186308160570e-48
+put g 427 bitcast ulong f64 -1230985782304273e-93
+put g 428 bitcast ulong f64 201169679269179254e-313
+put g 429 ulong bitcast uint f32 6671879130434995486e2
+put g 430 bitcast ulong f64 2015062766414443841e-326
+put g 431 bitcast ulong f64 13471232073647312e258
+put g 432 ulong bitcast uint f32 8056295654296875002e-15
+put g 433 bitcast ulong f64 4355407847726394e-157
+put g 434 bitcast ulong f64 209167684945863063e-257
+put g 435 ulong bitcast uint f32 3597737706659825e18
+put g 436 bitcast ulong f64 15881031546918267e-100
+put g 437 bitcast ulong f64 -903656037891165271e-21
+put g 438 ulong bitcast uint f32 -24165897630155085e-18
+put g 439 bitcast ulong f64 1463766150070070381e-246
+put g 440 bitcast ulong f64 171307291098479650e126
+put g 441 ulong bitcast uint f32 8077861368366713e-54
+put g 442 bitcast ulong f64 254940093102923388e-251
+put g 443 bitcast ulong f64 -28043710828127061e-4
+put g 444 ulong bitcast uint f32 678278802013210224e-25
+put g 445 bitcast ulong f64 14180999736372843e166
+put g 446 bitcast ulong f64 -1349143932352141e-131
+put g 447 ulong bitcast uint f32 2166132958336675075e-24
+put g 448 bitcast ulong f64 -1877518424034739792e152
+put g 449 bitcast ulong f64 21823134469104707e34
+put g 450 ulong bitcast uint f32 531157088113455186e-43
+put g 451 bitcast ulong f64 11722091756584873e-324
+put g 452 bitcast ulong f64 224761962973898541e-89
+put g 453 ulong bitcast uint f32 5087999291713126402e-2
+put g 454 bitcast ulong f64 1278028521057637e-89
+put g 455 bitcast ulong f64 6200511745522449305e-326
+put g 456 ulong bitcast uint f32 8572756920659880489e-48
+put g 457 bitcast ulong f64 1323537526555539723e247
+put g 458 bitcast ulong f64 604388528412183568e15
+put g 459 ulong bitcast uint f32 52024908065692989e-55
+put g 460 bitcast ulong f64 59407032367386873e230
+put g 461 bitcast ulong f64 1280476082691553639e-303
+put g 462 ulong bitcast uint f32 48544727277603734e-55
+put g 463 bitcast ulong f64 100993666860578723e-139
+put g 464 bitcast ulong f64 264139776987656664e-96
+put g 465 ulong bitcast uint f32 17454687544912676e8
+put g 466 bitcast ulong f64 -5396816898210909e-272
+put g 467 bitcast ulong f64 6504633552822703030e-194
+put g 468 ulong bitcast uint f32 -1678462206835415236e-54
+put g 469 bitcast ulong f64 -763715537728809980e-40
+put g 470 bitcast ulong f64 1879078870045105787e267
+put g 471 ulong bitcast uint f32 3597775653267697e-54
+put g 472 bitcast ulong f64 6828732796793565e130
+put g 473 bitcast ulong f64 -8363576206040774344e-285
+put g 474 ulong bitcast uint f32 1173282128801046e-29
+put g 475 bitcast ulong f64 79417005266701876e38
+put g 476 bitcast ulong f64 346882119869309695e115
+put g 477 ulong bitcast uint f32 -6047170439564607e-30
+put g 478 bitcast ulong f64 164070336047484154e-30
+put g 479 bitcast ulong f64 16032331540831799e174
+put g 480 ulong bitcast uint f32 5752578926086426e-14
+put g 481 bitcast ulong f64 1682646527680965348e92
+put g 482 bitcast ulong f64 72083054418419505e-1
+put g 483 ulong bitcast uint f32 7617720893794824e22
+put g 484 bitcast ulong f64 478404043309000077e225
+put g 485 bitcast ulong f64 3110712059426283463e140
+put g 486 ulong bitcast uint f32 -3968327412641781209e13
+put g 487 bitcast ulong f64 -390511616164560075e-13
+put g 488 bitcast ulong f64 1459013768601221e-10
+put g 489 ulong bitcast uint f32 15651385576142112e-37
+put g 490 bitcast ulong f64 2038341220659763e-182
+put g 491 bitcast ulong f64 55880420775275118e250
+put g 492 ulong bitcast uint f32 1029091906027520001e-4
+put g 493 bitcast ulong f64 4011082722942599e-251
+put g 494 bitcast ulong f64 -27620622900352075e-325
+put g 495 ulong bitcast uint f32 7637178571332645846e-41
+put g 496 bitcast ulong f64 105375294044481499e-44
+put g 497 bitcast ulong f64 114385684038406705e286
+put g 498 ulong bitcast uint f32 414051074257715200e-2
+put g 499 bitcast ulong f64 1847323583911428e43
+put g 500 bitcast ulong f64 6703624910142816e-58
+put g 501 ulong bitcast uint f32 20630824553923217e2
+put g 502 bitcast ulong f64 26653135289170014e-207
+put g 503 bitcast ulong f64 70597538203119339e-125
+put g 504 ulong bitcast uint f32 4425267843118619411e-43
+put g 505 bitcast ulong f64 19343425219366572e25
+put g 506 bitcast ulong f64 1702369381918227e80
+put g 507 ulong bitcast uint f32 222812173306570081e14
+put g 508 bitcast ulong f64 -8028559258033339e-218
+put g 509 bitcast ulong f64 426733102539510070e-266
+put g 510 ulong bitcast uint f32 24035720396800000e-5
+put g 511 bitcast ulong f64 5719543345915070412e-328
+b = new uchar 4096 0
+for i ulong 512
+v = get g i
+for j ulong 8
+put b add mul i 8 j uchar and shr v mul j 8 255
+end
+end
+n = write 1 b 0 4096
+ret 0
+end
diff --git a/seed/omc/tests/float/lit_round.want b/seed/omc/tests/float/lit_round.want
new file mode 100644
index 000000000..3be9203c1
--- /dev/null
+++ b/seed/omc/tests/float/lit_round.want
@@ -0,0 +1,512 @@
+3b207b55a6d4a130 f64 6816.702656e-27
+0000000000000001 f64 2.4703282292062328e-324
+0000000000000000 f64 2.4703282292062327e-324
+0000000000000000 f64 2.470328229206232720e-324
+0000000000000001 f64 2.470328229206232721e-324
+0000000000000001 f64 4.9406564584124654e-324
+0000000000000001 f64 7.4109846876186981e-324
+000fffffffffffff f64 2.2250738585072011e-308
+0010000000000000 f64 2.2250738585072012e-308
+0010000000000000 f64 2.2250738585072014e-308
+7fefffffffffffff f64 1.7976931348623157e308
+7fefffffffffffff f64 1.7976931348623158e308
+4340000000000000 f64 9007199254740993.0
+4340000000000001 f64 9007199254740993.001
+4340000000000000 f64 9007199254740992.999
+4340000000000002 f64 9007199254740995.0
+4330000000000000 f64 4503599627370496.5
+4330000000000002 f64 4503599627370497.5
+3ff0000000000000 f64 1.000000000000000111e0
+3ff0000000000000 f64 1.000000000000000110e0
+3fb999999999999a f64 0.1
+3fd3333333333333 f64 0.3
+3f543a272d9e0e51 f64 123456789012345678e-20
+0000000000000002 f64 9223372036854775807e-342
+7fe06b0bb1fb384c f64 9223372036854775807e289
+7fe0000000000000 f64 8.98846567431158e307
+0000000000000001 f64 5.0e-324
+0000000000000001 f64 4.9e-324
+0000000000000000 f64 1e-999
+8000000000000000 f64 -1e-999
+0000000000000000 f64 0.000000000000000000000000000000000000000000000000000001e-270
+44b52d02c7e14af6 f64 1e23
+002eadef314ecc78 f64 8.533e-308
+000000007f7fffff f32 3.4028234663852886e38
+000000007f7fffff f32 3.4028235677973366e38
+0000000000800000 f32 1.1754943508222875e-38
+0000000000800000 f32 1.1754942807573643e-38
+0000000000800000 f32 1.1754942807573644e-38
+0000000000000001 f32 1.4012984643248171e-45
+0000000000000001 f32 7.0064923216240854e-46
+0000000000000000 f32 7.0064923216240853e-46
+000000004b800000 f32 16777217.0
+000000004b800001 f32 16777217.000000001
+000000004b800002 f32 16777219.0
+000000003dcccccd f32 0.1
+000000003f800001 f32 1.000000059604644776
+000000003f800000 f32 1.000000059604644775
+00000000c02df854 f32 -2.718281828459045235
+000000001903daad f32 6816.702656e-27
+f8863b18d991a72c f64 -375821932269757374e255
+eeb5dab7834c0f26 f64 -202234348434816469e208
+000000009866196c f32 -2973963901662850944e-42
+2477954d6fab6423 f64 5191404815286016755e-151
+135f52860900ac7d f64 2271525195587109e-230
+00000000d1583939 f32 -580420628479999999e-7
+49c2284e2eb62ce8 f64 20732134867242909e31
+25ff95e7dd832fb6 f64 1166515541451923e-140
+00000000ea57451a f32 -6506134122410929e10
+823e0cd4e90775f6 f64 -71794399309059907e-314
+54de03ae761b9eba f64 65648976200436756e84
+00000000047ad2ec f32 2948420844893217e-51
+e05f297f2ffe1869 f64 -16712616438362036e140
+514daeaa4d0ea9c2 f64 4504910455592000788e65
+00000000d10c24a5 f32 -376193904639999999e-7
+ab687879202214fb f64 -1398479261630382314e-117
+72c13f185a881557 f64 5887983611745511053e226
+000000000ceb2ed4 f32 36235665431541000e-47
+7f77e389f1a6d2e2 f64 10484564013533189e290
+4bfc1c855fbf1703 f64 11028636330332277e42
+00000000106679a1 f32 454532030559009249e-46
+770f885706ad2fa9 f64 317735451962194645e248
+21073fb13ed51af0 f64 14204719867337691e-165
+000000001ce86860 f32 1537945196924924e-36
+d227ce4e5cea70d6 f64 -5919609445216682e72
+709d585211777f33 f64 29157534035236413e218
+000000004abc14d6 f32 6163050750000000000e-12
+2f704fdcbfeeffed f64 3439278671016254739e-98
+1b5507a9d1e856fd f64 518967891053101078e-194
+000000007143ae6a f32 9689668514790270e14
+4420a2439b170a56 f64 153420132380098379e3
+24ffb7ed209f7c27 f64 17874504497611007e-146
+000000000babb13d f32 6613348556267864148e-50
+108d695e1cd80765 f64 606222212881307825e-246
+0d803d52d9f85dce f64 1189179423319431608e-261
+0000000011116d58 f32 114721766682286183e-45
+000a9aa76aae0bd0 f64 1474683981201443959e-326
+67264144dd18d2d9 f64 7746652212459088e173
+0000000058166db3 f32 661591561338880001e-3
+37fbd695fb5657b5 f64 51130746011641185e-55
+70d72ce73f57529e f64 36843758916188667e219
+0000000042a6cfef f32 8340612411499023437e-17
+2102c00c3495a5c3 f64 114561251532421524e-166
+161bde9a628af53b f64 35555989829477186e-218
+000000000baa2864 f32 655423941058394083e-49
+51a3acb527c3c87d f64 191106547804733178e68
+dcf1a4d74b443d89 f64 -5252823911417762283e121
+000000000026a0e6 f32 3547467637099973094e-57
+19a9c10617a90d94 f64 4735189385166733e-200
+06c316295888318a f64 4306870738407479920e-294
+0000000040f5bc70 f32 767925286293029784e-17
+274d6e7743e7a1fa f64 22795243475930011e-135
+9524df630657ff5b f64 -81266140883925276e-223
+000000005c364e0e f32 205257079781326847e0
+2ff54c6d7a5feb0e f64 1149611430840913451e-95
+8db84c665183b498 f64 -1423448727908517345e-260
+0000000055687522 f32 1597436172697600e-2
+2b31dcbad69218d3 f64 1276018688222995785e-118
+7b0b9e10a101c420 f64 5133450261110201715e266
+000000004ef331de f32 204006585599999999e-8
+5250a97c93353055 f64 33145712676936604e72
+6ee6d5d1b68a1679 f64 1690488319703767503e208
+0000000000334973 f32 4709959619731482e-54
+e70b55d04698fc79 f64 -2378754980811486e173
+33bd9433ea93dc45 f64 1840700535146971e-74
+0000000032013156 f32 75200055071888983e-25
+f756303fa45dc9e6 f64 -71545702739054040e250
+94012f23651f0259 f64 -25522353052833963e-228
+000000004e50976e f32 8748962880000000000e-10
+de52ff29d1cbd57c f64 -2372120806434828858e128
+762da5862976bb44 f64 1823311349745584077e243
+00000000004a2666 f32 6809600778946432e-54
+169bf5a1562ca6b6 f64 913171146268696000e-217
+5d0c03c54d2a4b61 f64 16680706153121406e124
+0000000031dcf21a f32 64303666835741068e-25
+3c8ce98cfb2c66ac f64 501548584809020141e-34
+913f7aeeefff3135 f64 -1328864988897065e-240
+0000000001bed66c f32 701026601838851207e-55
+69d2e62f1351a9d2 f64 5786547437849839337e183
+25d58b8a74716bb1 f64 1989252759163890e-141
+000000007c7d3c9d f32 525952179597185590e19
+919d6f9f1d8db9d9 f64 -795247565878223935e-241
+3d11a7bc5d0a8526 f64 156809835765382358e-31
+000000007289931f f32 5449894716567725111e12
+42e9ab765e654cf3 f64 22579372799856760e-2
+631f3bdf37995ed1 f64 2946886744459427560e151
+0000000066ab807c f32 4049473754625039193e5
+5b15cf1abd73c36c f64 6046915826877669e115
+482d5b8bf96e8c8c f64 4994937588332783033e21
+000000008fdd174c f32 -2180125538424870e-44
+bb589bd3374e620e f64 -8142333053600316474e-41
+39a67290f689f3f2 f64 55337420205846255e-47
+0000000063394119 f32 3417338293385661776e3
+22d8281e596839ab f64 7923916295075799155e-159
+4a816003dc575773 f64 812597665449079746e33
+000000005ccda332 f32 463054425775144961e0
+59cb38758d9bad74 f64 35988605798086032e108
+05f8f1b7b72c36f8 f64 687090251882144732e-297
+000000002df086f8 f32 2734477835136806e-26
+5f3b89478d24d2bc f64 563355598128310259e133
+309b6a7f2f32b808 f64 15153230372136516e-90
+00000000d236578a f32 -1957881855999999e-4
+020a38c156a782b8 f64 7830962793334040001e-317
+2b13ac2af24f35c1 f64 3513352203301290e-116
+000000007df3a186 f32 404801338089550940e20
+7adf48485c930773 f64 726834211860007258e266
+6ba954efad1ec631 f64 4164019276225793e195
+0000000045ef3ec5 f32 7655845947265625001e-15
+446b44c90a52cc40 f64 40241487536462895e5
+2ee4d908078672f9 f64 85852113460110816e-99
+000000005b772202 f32 69561713380294656e0
+336964485970af41 f64 493790991479451249e-78
+c326ba873aaff19e f64 -3198769727797455e0
+000000002b89cfe3 f32 979213617743196484e-30
+3fbccfe001d08e0d f64 1125469211988774e-16
+6308d60918e2fdc5 f64 1171630234790473e154
+00000000dbb92cfa f32 -1042446501848023040e-1
+5d53b52a3808c74a f64 3755029742088051495e123
+163354bf3c3dd659 f64 986502524837306402e-219
+000000001ace0741 f32 8521131925512620e-38
+2e0493be058177b1 f64 517196783238926666e-104
+89b85ab20ed4527c f64 -77342653150512462e-278
+0000000048b3097e f32 36666792187500001e-11
+55938697ed020154 f64 1749308346995776e89
+122ed3728090b62f f64 426392826368002224e-238
+0000000044fdca29 f32 203031744384765626e-14
+7d94b013e89b9881 f64 84561003935451072e280
+cf4abecc6383574b f64 -94509731598391450e57
+00000000a1e7f2b0 f32 -157174082286182211e-35
+1888289b78d737e4 f64 1694435015971760547e-208
+0d2f2d679cd3b406 f64 35672447842657146e-261
+000000005d513124 f32 94211677877803418e1
+4e5b54a851b079e1 f64 294733613989749426e52
+1032121fe6013ebf f64 11639670623766864e-246
+00000000e81c6017 f32 -29538470084488025e8
+3edba2898300b6db f64 6588676157588085e-21
+6afc20b639d111b5 f64 225762860534031872e190
+000000008b8e688a f32 -548537003809451515e-49
+0889ff4cddf9d309 f64 15747135049307380e-283
+d6b5ce0d67ed709c f64 -512097175129246092e92
+00000000000d8eaf f32 1245047379709510505e-57
+b22e99f0a4a5b037 f64 -56753317339459484e-83
+675fc269be961937 f64 88440243727950602e173
+00000000a4329e31 f32 -3873158901918897260e-35
+1aef8b099aa7bef8 f64 6081310412970360e-194
+c194c62ea36c733a f64 -8713309685590831e-8
+00000000934b9a9e f32 -25698433397672227e-43
+5252a5c4a821be8a f64 37095403849430042e72
+774f38acbf9926df f64 50335960212035912e250
+00000000457c70fc f32 4039061645507812e-12
+0003c639ba7e85e6 f64 52488357074190007e-325
+ec5fafc3149a62b6 f64 -106672426738182459e197
+000000002139d702 f32 6296500115223353775e-37
+4647c51a9735dbc2 f64 37664968618100925e14
+3d8c1ef33d898db0 f64 3196976087298501485e-30
+000000006fcbcecb f32 1261509039835728874e11
+7221740006d57478 f64 581888460574583447e224
+15e204a87964c5d5 f64 2873453909286451219e-221
+000000006bb22f2c f32 4308231359924202e11
+28ce63ae3806cfcc f64 3948875345900577474e-130
+e41b1ad15643959b f64 -1675957590881911601e156
+00000000a45b4e41 f32 -4755434044607141851e-35
+48e55f5a1f7076a7 f64 1489443698549046335e25
+52eab434269f1239 f64 2719842364767937542e73
+00000000e2385866 f32 -8501426368870078219e2
+e61e458fc0b4f34a f64 -8039231559564884e168
+0001b7f413e2db99 f64 23899630678216040e-325
+00000000f85f2fb5 f32 -18107027709187064e18
+577575ecdd2262c3 f64 2064434783107365e98
+488044571dccb4c2 f64 177131446677870309e24
+000000005ba5881a f32 931860285206036480e-1
+3ea17924da659d92 f64 5207424933874016160e-25
+37a6ab0c220899d6 f64 130108822432845006e-57
+00000000331ae2a6 f32 3606205289941044613e-26
+3338185ae98f694d f64 585720339821215959e-79
+a795f0329777cf38 f64 -543731037745190669e-135
+0000000077812b0d f32 5239683036843603237e15
+8f2588fa0b7a4a3b f64 -10582775870096683e-251
+25bdb44d79c24a0e f64 685648082718636436e-144
+00000000cdf0ee23 f32 -5052672800000002e-7
+e85fff9dedd57fb6 f64 -5839650893061325e179
+1bdc47e7c0cf28ad f64 1786633376734921e-189
+000000007065d954 f32 2845391938781829e14
+9d3da93f94e8dfb8 f64 -785941222793735855e-185
+77b560644332ad49 f64 44113686845663037e252
+000000009c228e3c f32 -537851347900791046e-39
+245b64f1b9b46a7f f64 15075868976891987e-149
+26c6c3196aafb280 f64 6886589836071498e-137
+0000000013c478a0 f32 49596303334757160e-43
+24266c15a49328af f64 1542447072129030e-149
+0dab49d7a6a21dc7 f64 79930462411643564e-259
+0000000005720429 f32 113795497747187768e-52
+dba7cc08952c59e4 f64 -3378239346734262143e115
+32fc5de161476b8b f64 430972982566482614e-80
+00000000bf2be0fc f32 -671401709318161011e-18
+412988ad659f1a87 f64 836694698479489364e-12
+30ded54b9fe5c025 f64 272671318415002645e-90
+0000000014089387 f32 6895340342713544e-42
+4de757e4890eb88f f64 196667173975722936e50
+cccf4948e9be32c1 f64 -1005501912434058628e44
+000000001383c540 f32 3326355073787842622e-45
+05233e8c854f2d5f f64 647078441630541638e-301
+74e6129162ca98dc f64 12946085725192090e239
+00000000503a63b4 f32 1250838579200000000e-8
+0bbb2cc483723f33 f64 3706561191588364e-267
+1edaf1b5dac7cd7d f64 4791233148558496e-175
+0000000057977c42 f32 3331198612930561e-1
+0d112045b4a32643 f64 9797631473689359e-261
+06f6f582f8030504 f64 41445511245044488e-291
+0000000099b514c8 f32 -1872335562790469e-38
+69c8485dc33fc480 f64 3717438101387806817e183
+aae8f8bc13ccd904 f64 -55746575407172968e-118
+00000000460a8d6a f32 8867354003906250000e-15
+64152e947eee0ce1 f64 130973525752357166e157
+8aed5bd0321bd58f f64 -4888208417361649432e-274
+000000000d772a9d f32 7616404292268734061e-49
+6b6610a74534553b f64 2266897929634139710e191
+3b73859fa3ecaac8 f64 25837108416586799e-38
+000000004f6ee1ee f32 400778380800000001e-8
+5e17e8049f472e11 f64 1865738036359550302e127
+8f42aabe43f35eef f64 -3669332985843394845e-253
+000000002424d8fd f32 35745629135272602e-33
+1d0bdee1f234433d f64 9231224382602775e-184
+2a64a8a1c2dc0077 f64 1801502572143060413e-122
+0000000050e1629b f32 302506874879999999e-7
+3db89b76b9dc816a f64 223801911172896324e-28
+5eeba8b513dff3fa f64 176833502853887921e132
+0000000039ac79a5 f32 32897030177991836e-20
+56204d0ef47f3917 f64 7477268520820897960e88
+613634ed7d74a2b3 f64 1951293917121391240e142
+0000000066897871 f32 324592997989454921e6
+b00b77d402c8a3ef f64 -2965236977772923e-92
+e6ed824d7a8f97e1 f64 -6419803435815896e172
+0000000064d80b35 f32 3188243304713566133e4
+7509b617c9cb25de f64 6032125657622264789e237
+0abae89eac3e5212 f64 5600360230782765e-272
+000000002d67bc03 f32 1317257717833864e-26
+4e550e19c64bd925 f64 2270575420587385213e51
+6908babf65ad2b4b f64 9242771262854188e182
+0000000088bc7173 f32 -11341510665601656e-49
+54d93c908cbab3e5 f64 55198729325949525e84
+7e428b21d7dbd8ec f64 1552304996259824382e282
+0000000079b31bf1 f32 116248487042284990e18
+6ca98482b4bf87ad f64 274895147032970773e198
+b69388df44feb533 f64 -8554338939473187399e-64
+0000000079122503 f32 474266292374992964e17
+27c5b5f7d3eb5aa9 f64 4304748447892565118e-135
+5513fa36ed8e647e f64 69912934425817717e85
+00000000003a3e4e f32 5348810188318703265e-57
+56b2515b07f3fd72 f64 430201222231595584e92
+243535a438d85ee8 f64 2918052708349937898e-152
+00000000001bd6bd f32 2556592677394323042e-57
+7acab298fc1c3f3c f64 3101550961068630145e265
+3f0f2ce60033d96e f64 5946232706748293e-20
+00000000000d2220 f32 120610249278899520e-56
+3425a6b4dfa326e5 f64 1724617373157809210e-75
+d45a43513e17318b f64 -224389354778702008e81
+000000004f6804bf f32 38926252799999999e-7
+34dda47b6e7678bb f64 4835659815101461634e-72
+9627ec3accd26177 f64 -6104139122392729e-217
+00000000783a096f f32 1509310298928173e19
+a05e4fa9fe8e0975 f64 -90428466208291398e-169
+235709b5b16e43b5 f64 1934574381957733e-153
+0000000037a93a39 f32 201734828806365839e-22
+88956cfb43d568b5 f64 -259560774366624101e-284
+2ea30d62bd052f85 f64 4903637453108394719e-102
+00000000441aa353 f32 6185519104003908e-13
+6c609a44edf84d0d f64 11178496952715981e198
+7df8e6fa9832740a f64 6514401193370998e283
+000000004f044890 f32 22193478400000000e-7
+62228867e651bbb1 f64 533616824052795398e147
+0fd2ec10872ae01b f64 19043786924160795e-248
+0000000077ffa458 f32 10370070514013768e18
+813ad9d654b702fc f64 -978866913819699711e-320
+80703f8366f908ca f64 -1446128794635973157e-324
+00000000977427e0 f32 -788909789945232221e-42
+25537c4a9e2cf741 f64 7027708211948622e-144
+5999472e0cb60ca6 f64 41775508649923490e107
+000000004756493a f32 5485722851562500e-11
+5492d9ceb4643899 f64 25769655324523984e83
+075450cbe2064440 f64 234711211077181200e-290
+000000002e7befeb f32 5728388423331676192e-29
+4e904246c0dc463e f64 2805368730682095e55
+7cb001d2f31d513d f64 399345818591460968e275
+0000000000562084 f32 7909517778653516e-54
+450c833017fde528 f64 430868001637135907e7
+2d6c00cd0fd3b3b0 f64 687349887789119577e-107
+00000000c3472c80 f32 -199173835754394531e-15
+1fa1bfb2681dc897 f64 25854827627844486e-172
+748169c5d64209de f64 159582158657288948e236
+00000000000123c0 f32 1046608803527239e-55
+f61169be80d37900 f64 -535465427982050064e243
+20cef0abedc1128d f64 1181501351746308e-165
+00000000558bb7df f32 1920272852582402e-2
+57f48ea04df56023 f64 50624518977062205e99
+3e63ce197526dbb4 f64 3688982865310718e-23
+0000000069b6b265 f32 2760836678769909e10
+61bf566e6490daa0 f64 70492629864233924e146
+73dcdbf83b12dafd f64 1291402301018290e235
+000000001cfb842f f32 1664395586307564553e-39
+ebaf057d4a1c24cb f64 -509928144143520291e193
+31821e961aa4104a f64 328168353990310446e-87
+0000000084ed4308 f32 -55779988916332798e-52
+edb72b1f1ac299c3 f64 -3271400373566726481e202
+76f0d545430dbd8a f64 84808620329112852e248
+000000005b9c3f0e f32 8795885575287603200e-2
+dedd07ad0592287a f64 -927992934476076607e131
+e159596dc0f7e1da f64 -89097230263710145e144
+00000000198d0f8c f32 1458533841791356e-38
+ce216ac14e2396d9 f64 -234780858708941759e51
+5e42165352cb5c04 f64 112927436415714802e129
+00000000a8419122 f32 -1074512327327152050e-32
+5a980ef18f938244 f64 26057001128139245e112
+a9e7d1d114fbd8bf f64 -811383085403086494e-124
+0000000097aa3101 f32 -1099836332857796156e-42
+06da17ca8569668d f64 117757044164306240e-292
+3223986cded5b4d7 f64 36341709932021731e-83
+00000000006908c6 f32 9645875113589182e-54
+83ebd1fb7983d506 f64 -8921032270088777e-305
+a6955466f4415fcf f64 -8066524228755088e-138
+000000002b4ec5f1 f32 7346060337722754017e-31
+19969eb9a72e4035 f64 2079484419560794e-200
+c6c416976670d213 f64 -8148761354560880864e14
+00000000245b581f f32 47562698278980654e-33
+27b992bc4dea229c f64 2535283521334710e-132
+b9c76b8cbbf9e707 f64 -2309401756732660e-45
+00000000a2fc12b2 f32 -68324529230693643e-34
+2077aeed91194893 f64 28262114260963431e-168
+8cd571eff200f5b3 f64 -7667803631119554982e-265
+000000002b98bb08 f32 1085216172567321502e-30
+596237eaa1a1fafb f64 376356183998515828e105
+59ef7b1fe555a676 f64 1664853879845261351e107
+000000007e348b37 f32 5999597354458855e22
+511352f75880de13 f64 36660451264852374e66
+1677991285b4462e f64 1926801467286046e-215
+000000001d99dfd1 f32 40730185550106767e-37
+6f342146215f4c87 f64 47687000255973000e211
+7945fb24f077a9fb f64 1522068252958341651e258
+000000004ec328c5 f32 1637114432000000001e-9
+240de7892aac2b7f f64 514289410910309314e-152
+72632082d40e6b6a f64 10203126981345311e227
+000000009cc7a42c f32 -1321115228201275e-36
+2d92405b2147b5f0 f64 3583911280015113305e-107
+398fb75b76f8887b f64 1954664165328553295e-49
+0000000090633349 f32 -4480736652317496e-44
+46dacdc498174a24 f64 2174581063755997e18
+9864c5ddea293b5e f64 -3642421964986968e-206
+000000007ed047c1 f32 13842599028203359e22
+45e3124befc9e6f3 f64 4721867561732200599e10
+a3416a295fbb1a75 f64 -73118597193434806e-155
+00000000315e5ad6 f32 3235688716962670e-24
+c2d932c2dd2cc306 f64 -1108232333360761e-1
+21cbf27bb3f795e5 f64 6994077099210629e-161
+00000000477b0841 f32 642642558593749999e-13
+edd138834067d76d f64 -972632922358120494e203
+fef75fbdf8e60555 f64 -400726946311322394e286
+00000000d2388ece f32 -1981674700800000000e-7
+5140d1a0ea57ea55 f64 2552615568749579600e65
+7be1791cae51a082 f64 5321274583523039860e270
+0000000076290295 f32 85698298683778228e16
+35354e67c1502837 f64 222447845198630339e-69
+6582a3b3803d0804 f64 9668089998944282e165
+000000007ecd9941 f32 1366437343853417e23
+2663aa62efb36e5e f64 9296476526320008e-139
+59942bcb77032143 f64 333355211333530047e106
+000000000bffd6b8 f32 98545497092393150e-48
+cf46fc351792bf04 f64 -812226137284792287e56
+0fd857bc3d6df0a6 f64 244992274411180463e-249
+000000008fa317e6 f32 -1608224703947556342e-47
+000ff9c348749206 f64 22216856318147891e-324
+31e02fabab095936 f64 187618754839084328e-85
+00000000806bdd72 f32 -990583839949686567e-56
+1f28b1d55e1a0c36 f64 1405191065184798e-173
+10d23475405fcd67 f64 120074813598245047e-244
+00000000458c0fef f32 44819914550781251e-13
+47c5780dece74a5c f64 570742919505190869e20
+3b20682455ecc907 f64 6785695272503129e-39
+0000000009d757ba f32 5184186308160570e-48
+afc23eb2e49d7072 f64 -1230985782304273e-93
+028a501857bd749a f64 201169679269179254e-313
+000000006210ac5e f32 6671879130434995486e2
+000e7d67559373c7 f64 2015062766414443841e-326
+78d8e6de43cc9f95 f64 13471232073647312e258
+0000000045fbc25e f32 8056295654296875002e-15
+22953e98628ec011 f64 4355407847726394e-157
+0e2be5089fc049cc f64 209167684945863063e-257
+00000000773161d5 f32 3597737706659825e18
+2e88ae67a14f76bb f64 15881031546918267e-100
+bf4d9c6a9095ee01 f64 -903656037891165271e-21
+00000000bcc5f78f f32 -24165897630155085e-18
+10a1c10bff21e86b f64 1463766150070070381e-246
+5dac18a1da48f9e1 f64 171307291098479650e126
+000000000057f5ca f32 8077861368366713e-54
+0f7036412340b7c9 f64 254940093102923388e-251
+c284678c5671e5a6 f64 -28043710828127061e-4
+000000003391a8c5 f32 678278802013210224e-25
+65c11668ca87f0bf f64 14180999736372843e166
+a7e102c88fc19ed2 f64 -1349143932352141e-131
+0000000036115de2 f32 2166132958336675075e-24
+e348dfe7ca6f2c00 f64 -1877518424034739792e152
+4a62aa3cfe23b62e f64 21823134469104707e34
+0000000015838214 f32 531157088113455186e-43
+00086dd8d013ced5 f64 11722091756584873e-324
+310fc50494f7ceb4 f64 224761962973898541e-89
+000000005b34c316 f32 5087999291713126402e-2
+30971f6c77c16fe3 f64 1278028521057637e-89
+00264b116f7f1474 f64 6200511745522449305e-326
+000000000f2de04d f32 8572756920659880489e-48
+76fa451ea91ff286 f64 1323537526555539723e247
+46bdcc74a926ea53 f64 604388528412183568e15
+000000000038a66e f32 52024908065692989e-55
+732b305abe48137d f64 59407032367386873e230
+04c85f521cff37e3 f64 1280476082691553639e-303
+000000000034dc4c f32 48544727277603734e-55
+269ab479ff0b3f6b f64 100993666860578723e-139
+2f9f51c0830634c6 f64 264139776987656664e-96
+0000000067b8cf06 f32 17454687544912676e8
+8ab9ee414dcd0dad f64 -5396816898210909e-272
+1b90795b20bd8a0d f64 6504633552822703030e-194
+00000000840ec9ab f32 -1678462206835415236e-54
+bb5714f677ec16a3 f64 -763715537728809980e-40
+7b2945ec1a006130 f64 1879078870045105787e267
+0000000000272d22 f32 3597775653267697e-54
+5e35dfeca7344def f64 6828732796793565e130
+88b1426e7b659d2b f64 -8363576206040774344e-285
+0000000028535c17 f32 1173282128801046e-29
+4b54ba9300813446 f64 79417005266701876e38
+5b738c4e1408bae4 f64 346882119869309695e115
+00000000a7d9df4d f32 -6047170439564607e-30
+3d471741bfe45382 f64 164070336047484154e-30
+676cc95a684d54db f64 16032331540831799e174
+0000000042661a69 f32 5752578926086426e-14
+56d1e95ed64cf845 f64 1682646527680965348e92
+43399bea654b231e f64 72083054418419505e-1
+000000007e653cc9 f32 7617720893794824e22
+7251efc022654062 f64 478404043309000077e225
+60d6a8300777fe49 f64 3110712059426283463e140
+00000000f3fa6fc9 f32 -3968327412641781209e13
+c0e311652bf64622 f64 -390511616164560075e-13
+4101cf6b03cf3d5d f64 1459013768601221e-10
+000000001cec845e f32 15651385576142112e-37
+1d533b47619094ef f64 2038341220659763e-182
+77515487c5595acc f64 55880420775275118e250
+0000000056bb30d4 f32 1029091906027520001e-4
+0f10530e4cad7d81 f64 4011082722942599e-251
+8001fc736b7990c5 f64 -27620622900352075e-325
+000000001ab8a7d9 f32 7637178571332645846e-41
+3a54df2985451d76 f64 105375294044481499e-44
+7edab020b9a9e109 f64 114385684038406705e286
+00000000596b5c5c f32 414051074257715200e-2
+4c078b2ca6a7ed04 f64 1847323583911428e43
+372de62fc1a6645a f64 6703624910142816e-58
+000000005de50c55 f32 20630824553923217e2
+185e669d3cdccea7 f64 26653135289170014e-207
+297a8738e6096687 f64 70597538203119339e-125
+000000001708f495 f32 4425267843118619411e-43
+4881c39e0edb1f50 f64 19343425219366572e25
+53b4672e771fb630 f64 1702369381918227e80
+00000000738c9d40 f32 222812173306570081e14
+95f92bfca7e8ad80 f64 -8028559258033339e-218
+0c5e8d8c37cbb606 f64 426733102539510070e-266
+00000000525fd9a0 f32 24035720396800000e-5
+000069499a87a5fd f64 5719543345915070412e-328
diff --git a/seed/omc/tests/float/neg_int_arg.om b/seed/omc/tests/float/neg_int_arg.om
new file mode 100644
index 000000000..02d5354e8
--- /dev/null
+++ b/seed/omc/tests/float/neg_int_arg.om
@@ -0,0 +1,7 @@
+fn g a f64 to f64
+ret a
+end
+fn main to int
+x = g 1
+ret 0
+end
diff --git a/seed/omc/tests/float/neg_int_assign.om b/seed/omc/tests/float/neg_int_assign.om
new file mode 100644
index 000000000..38e0f9d39
--- /dev/null
+++ b/seed/omc/tests/float/neg_int_assign.om
@@ -0,0 +1,5 @@
+fn main to int
+x = f64 0.5
+x = 1
+ret 0
+end
diff --git a/seed/omc/tests/float/neg_int_put.om b/seed/omc/tests/float/neg_int_put.om
new file mode 100644
index 000000000..eedabe5f3
--- /dev/null
+++ b/seed/omc/tests/float/neg_int_put.om
@@ -0,0 +1,5 @@
+global g f32 2
+fn main to int
+put g 0 1
+ret 0
+end
diff --git a/seed/omc/tests/float/neg_int_ret.om b/seed/omc/tests/float/neg_int_ret.om
new file mode 100644
index 000000000..4577a45c5
--- /dev/null
+++ b/seed/omc/tests/float/neg_int_ret.om
@@ -0,0 +1,7 @@
+fn g to f64
+ret 1
+end
+fn main to int
+x = g
+ret 0
+end