Skip to content

Commit

Permalink
Updated test (again!)
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Feb 4, 2025
1 parent 549e27a commit 8b794e8
Showing 1 changed file with 9 additions and 36 deletions.
45 changes: 9 additions & 36 deletions test/test_suite/functions/test_regression_mingw.c3t
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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


// #expect: test2.double.ll

%Blob = type { double }


@"test2$double$.argh" = weak_odr local_unnamed_addr global double 2.340000e+02, comdat, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5}

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}

0 comments on commit 8b794e8

Please sign in to comment.