Skip to content

Large bit integers don't appear to be working #190

Closed
@L1nkus

Description

@L1nkus

Hey there,

m = UInt[2048](1000000000000000)
m *= UInt[2048](10000000000000000)
m //= UInt[2048](10000000000000000)
print(m)
# -4570789518076018688

m2 = UInt[256](1000000000000000)
m2 *= UInt[256](10000000000000000)
m2 //= UInt[256](10000000000000000)
print(m2)
"""
JIT session error: Symbols not found: [ __udivei4 ]
Failure value returned from cantFail wrapped call
Failed to materialize symbols: { (main, { main }) }
UNREACHABLE executed at /github/workspace/llvm/include/llvm/Support/Error.h:786!
Aborted (core dumped)
"""

Codon 0.15.4
Python 3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions