mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Updated test (again!)
This commit is contained in:
@@ -595,9 +595,9 @@ loop.exit8: ; preds = %loop.cond2
|
||||
store ptr null, ptr %b2, align 8
|
||||
ret void
|
||||
}
|
||||
declare void @llvm.memcpy.p0.p0.i32(ptr noalias writeonly
|
||||
declare void @llvm.memcpy.p0.p0.i32(ptr noalias
|
||||
declare void @hello_world.hello() #0
|
||||
declare void @llvm.memset.p0.i64(ptr writeonly
|
||||
declare void @llvm.memset.p0.i64(ptr
|
||||
declare void @"std_collections_linkedlist$int$.LinkedList.push"(ptr, i32) #0
|
||||
declare i64 @"std_collections_linkedlist$int$.LinkedList.len"(ptr) #0
|
||||
declare i32 @"std_collections_linkedlist$int$.LinkedList.get"(ptr, i64) #0
|
||||
@@ -640,38 +640,11 @@ entry:
|
||||
%mul = mul i32 %0, %0
|
||||
ret i32 %mul
|
||||
|
||||
define weak_odr i32 @"test2$int$.hello"()
|
||||
entry:
|
||||
ret i32 1
|
||||
}
|
||||
define weak_odr i32 @"test2$int$.getValue"(i32 %0)
|
||||
entry:
|
||||
%blob = alloca %Blob, align 4
|
||||
store i32 %0, ptr %blob, align 4
|
||||
%1 = load i32, ptr %blob, align 4
|
||||
ret i32 %1
|
||||
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5}
|
||||
|
||||
|
||||
// #expect: test2.double.ll
|
||||
|
||||
%Blob = type { double }
|
||||
|
||||
|
||||
@"test2$double$.argh" = weak_odr local_unnamed_addr global double 2.340000e+02, comdat, align 8
|
||||
|
||||
define weak_odr double @"test2$double$.getMult"(double %0) #0 comdat {
|
||||
entry:
|
||||
%fmul = fmul double %0, %0
|
||||
ret double %fmul
|
||||
|
||||
define weak_odr i32 @"test2$double$.hello"() #0 comdat {
|
||||
entry:
|
||||
ret i32 1
|
||||
}
|
||||
|
||||
define weak_odr double @"test2$double$.getValue"(i64 %0) #0 comdat {
|
||||
entry:
|
||||
%blob = alloca %Blob, align 8
|
||||
store i64 %0, ptr %blob, align 8
|
||||
%1 = load double, ptr %blob, align 8
|
||||
ret double %1
|
||||
!0 = !{i32 2, !"Dwarf Version", i32 4}
|
||||
!1 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
!2 = !{i32 2, !"wchar_size", i32 4}
|
||||
!3 = !{i32 4, !"PIC Level", i32 2}
|
||||
!4 = !{i32 1, !"uwtable", i32 2}
|
||||
!5 = !{i32 2, !"frame-pointer", i32 2}
|
||||
Reference in New Issue
Block a user