From a69ee59b82bd068ea87da93bedcd4e555fb52e25 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sat, 23 Aug 2025 22:49:33 +0200 Subject: [PATCH] Fix tests. --- test/test_suite/debug_symbols/defer_macro.c3t | 4 ++-- test/test_suite/dynamic/inherit_linux.c3t | 4 ++-- test/test_suite/dynamic/inherit_macos.c3t | 4 ++-- test/test_suite/dynamic/overlapping_function_linux.c3t | 4 ++-- test/test_suite/dynamic/overlapping_function_macos.c3t | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/test_suite/debug_symbols/defer_macro.c3t b/test/test_suite/debug_symbols/defer_macro.c3t index a01da5987..6313c2d73 100644 --- a/test/test_suite/debug_symbols/defer_macro.c3t +++ b/test/test_suite/debug_symbols/defer_macro.c3t @@ -574,7 +574,7 @@ entry: get_dtable: ; preds = %next_parent, %entry %typeid = phi ptr [ %0, %entry ], [ %parent_ptr, %next_parent ] - %dtable_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 2 + %dtable_ref = getelementptr inbounds %dtable = load ptr, ptr %dtable_ref, align 8 br label %check @@ -584,7 +584,7 @@ check: ; preds = %no_match, %get_dtab br i1 %3, label %next_parent, label %compare next_parent: ; preds = %check - %parent_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 1 + %parent_ref = getelementptr inbounds %parent = load i64, ptr %parent_ref, align 8 %parent_ptr = inttoptr i64 %parent to ptr %4 = icmp eq ptr %parent_ptr, null diff --git a/test/test_suite/dynamic/inherit_linux.c3t b/test/test_suite/dynamic/inherit_linux.c3t index c13093e4e..f3ef55adf 100644 --- a/test/test_suite/dynamic/inherit_linux.c3t +++ b/test/test_suite/dynamic/inherit_linux.c3t @@ -153,7 +153,7 @@ entry: get_dtable: ; preds = %next_parent, %entry %typeid = phi ptr [ %0, %entry ], [ %parent_ptr, %next_parent ] - %dtable_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 2 + %dtable_ref = getelementptr inbounds %dtable = load ptr, ptr %dtable_ref, align 8 br label %check @@ -163,7 +163,7 @@ check: ; preds = %no_match, %get_dtab br i1 %3, label %next_parent, label %compare next_parent: ; preds = %check - %parent_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 1 + %parent_ref = getelementptr inbounds %parent = load i64, ptr %parent_ref, align 8 %parent_ptr = inttoptr i64 %parent to ptr %4 = icmp eq ptr %parent_ptr, null diff --git a/test/test_suite/dynamic/inherit_macos.c3t b/test/test_suite/dynamic/inherit_macos.c3t index 10d315966..c9387ec35 100644 --- a/test/test_suite/dynamic/inherit_macos.c3t +++ b/test/test_suite/dynamic/inherit_macos.c3t @@ -149,7 +149,7 @@ entry: get_dtable: ; preds = %next_parent, %entry %typeid = phi ptr [ %0, %entry ], [ %parent_ptr, %next_parent ] - %dtable_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 2 + %dtable_ref = getelementptr inbounds %dtable = load ptr, ptr %dtable_ref, align 8 br label %check @@ -159,7 +159,7 @@ check: ; preds = %no_match, %get_dtab br i1 %3, label %next_parent, label %compare next_parent: ; preds = %check - %parent_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 1 + %parent_ref = getelementptr inbounds %parent = load i64, ptr %parent_ref, align 8 %parent_ptr = inttoptr i64 %parent to ptr %4 = icmp eq ptr %parent_ptr, null diff --git a/test/test_suite/dynamic/overlapping_function_linux.c3t b/test/test_suite/dynamic/overlapping_function_linux.c3t index f517bc854..f3411754a 100644 --- a/test/test_suite/dynamic/overlapping_function_linux.c3t +++ b/test/test_suite/dynamic/overlapping_function_linux.c3t @@ -148,7 +148,7 @@ entry: get_dtable: ; preds = %next_parent, %entry %typeid = phi ptr [ %0, %entry ], [ %parent_ptr, %next_parent ] - %dtable_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 2 + %dtable_ref = getelementptr inbounds %dtable = load ptr, ptr %dtable_ref, align 8 br label %check @@ -158,7 +158,7 @@ check: ; preds = %no_match, %get_dtab br i1 %3, label %next_parent, label %compare next_parent: ; preds = %check - %parent_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 1 + %parent_ref = getelementptr inbounds %parent = load i64, ptr %parent_ref, align 8 %parent_ptr = inttoptr i64 %parent to ptr %4 = icmp eq ptr %parent_ptr, null diff --git a/test/test_suite/dynamic/overlapping_function_macos.c3t b/test/test_suite/dynamic/overlapping_function_macos.c3t index ca63ea25b..14d257919 100644 --- a/test/test_suite/dynamic/overlapping_function_macos.c3t +++ b/test/test_suite/dynamic/overlapping_function_macos.c3t @@ -147,7 +147,7 @@ entry: get_dtable: ; preds = %next_parent, %entry %typeid = phi ptr [ %0, %entry ], [ %parent_ptr, %next_parent ] - %dtable_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 2 + %dtable_ref = getelementptr inbounds %dtable = load ptr, ptr %dtable_ref, align 8 br label %check @@ -157,7 +157,7 @@ check: ; preds = %no_match, %get_dtab br i1 %3, label %next_parent, label %compare next_parent: ; preds = %check - %parent_ref = getelementptr inbounds %.introspect, ptr %typeid, i32 0, i32 1 + %parent_ref = getelementptr inbounds %parent = load i64, ptr %parent_ref, align 8 %parent_ptr = inttoptr i64 %parent to ptr %4 = icmp eq ptr %parent_ptr, null