Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm_alignment != julia_alignment error in core test with no-inline #16336

Closed
vtjnash opened this issue May 12, 2016 · 0 comments
Closed

llvm_alignment != julia_alignment error in core test with no-inline #16336

vtjnash opened this issue May 12, 2016 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior
Milestone

Comments

@vtjnash
Copy link
Member

vtjnash commented May 12, 2016

~/julia$ ./usr/bin/julia-debug --inline=no -q
bitstype 24 Int24
Int24(x::Int) = Core.Intrinsics.box(Int24,Core.Intrinsics.trunc_int(Int24,Core.Intrinsics.unbox(Int,x)))
Int(x::Int24) = Core.Intrinsics.box(Int,Core.Intrinsics.zext_int(Int,Core.Intrinsics.unbox(Int24,x)))
let x,y,f
    x = Int24(Int(0x12345678)) # create something (via truncation)
    @test Int(0x345678) === Int(x)
    function f() Int24(Int(0x02468ace)) end
    y = f() # invoke llvm constant folding
    @test Int(0x468ace) === Int(y)
    @test x !== y
    @test string(y) == "Int24(0x468ace)"
end

Assertion failed: (llvm_alignment==julia_alignment), function julia_struct_to_llvm, file ./cgutils.cpp, line 413.
@vtjnash vtjnash added the bug Indicates an unexpected problem or unintended behavior label Jul 18, 2016
@vtjnash vtjnash added this to the 0.5.x milestone Jul 18, 2016
vtjnash added a commit that referenced this issue Jul 20, 2016
mfasi pushed a commit to mfasi/julia that referenced this issue Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant