Int128 alignment fixed on x64 Linux.

This commit is contained in:
Christoffer Lerno
2024-08-11 22:48:21 +02:00
parent f7c39ae4a9
commit 3cae557b88
4 changed files with 25 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
module abc;
interface AstNode {
fn void free();
fn double get_span();
fn void dump(int depth);
}
interface AstBodyStatement : AstNode {
}
interface AstExpression : /* AstNode,*/ AstBodyStatement {
}
fn void main()
{
AstExpression a = null;
a.dump(100);
}

View File

@@ -26,5 +26,5 @@ const int128 I128 = 0b0100_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_000
@test.I = local_unnamed_addr constant i32 1073741824, align 4
@test.UL = local_unnamed_addr constant i64 -9223372036854775808, align 8
@test.L = local_unnamed_addr constant i64 4611686018427387904, align 8
@test.UI128 = local_unnamed_addr constant i128 -170141183460469231731687303715884105728, align 8
@test.I128 = local_unnamed_addr constant i128 85070591730234615865843651857942052864, align 8
@test.UI128 = local_unnamed_addr constant i128 -170141183460469231731687303715884105728, align 16
@test.I128 = local_unnamed_addr constant i128 85070591730234615865843651857942052864, align 16