mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add macro arguments &foo $foo #foo.
C ABI compatibility aarch64, win64, x86, x64 Added debug info
This commit is contained in:
committed by
Christoffer Lerno
parent
4222f2731e
commit
3c15e495dd
@@ -6,12 +6,12 @@ func void test()
|
||||
|
||||
// #expect: slice_offset.ll
|
||||
|
||||
%x = alloca [3 x i32]
|
||||
%y = alloca %"int[]"
|
||||
%0 = load [3 x i32], [3 x i32]* @0
|
||||
store [3 x i32] %0, [3 x i32]* %x
|
||||
%x = alloca [3 x i32], align 4
|
||||
%y = alloca %"int[]", align 8
|
||||
%0 = bitcast [3 x i32]* %x to i8*
|
||||
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %0, i8* align 4 bitcast ([3 x i32]* @0 to i8*), i32 12, i1 false)
|
||||
%1 = bitcast [3 x i32]* %x to i32*
|
||||
%offset = getelementptr inbounds i32, i32* %1, i64 1
|
||||
%2 = insertvalue %"int[]" undef, i32* %offset, 0
|
||||
%3 = insertvalue %"int[]" %2, i64 1, 1
|
||||
store %"int[]" %3, %"int[]"* %y
|
||||
store %"int[]" %3, %"int[]"* %y, align 8
|
||||
|
||||
Reference in New Issue
Block a user