aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp/testdata/revert.out.ll
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-11-11 03:35:13 +0100
committerRon Evans <[email protected]>2021-11-11 10:36:22 +0100
commit6c02b4956cab4ebcb36d39fe9ff0cb646e120639 (patch)
tree83f5e432dfea5366c0cd607cf1b4d8c89bc21bc7 /interp/testdata/revert.out.ll
parent1681ed02d3035f3216885d560433bc1ad953ed24 (diff)
downloadtinygo-6c02b4956cab4ebcb36d39fe9ff0cb646e120639.tar.gz
tinygo-6c02b4956cab4ebcb36d39fe9ff0cb646e120639.zip
interp: fix reverting of extractvalue/insertvalue with multiple indices
Diffstat (limited to 'interp/testdata/revert.out.ll')
-rw-r--r--interp/testdata/revert.out.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/interp/testdata/revert.out.ll b/interp/testdata/revert.out.ll
index 4f38e4c41..edc474d5f 100644
--- a/interp/testdata/revert.out.ll
+++ b/interp/testdata/revert.out.ll
@@ -3,11 +3,14 @@ target triple = "x86_64--linux"
@foo.knownAtRuntime = local_unnamed_addr global i64 0
@bar.knownAtRuntime = local_unnamed_addr global i64 0
[email protected] = external local_unnamed_addr global [3 x { i64, i32 }]
[email protected] = local_unnamed_addr global i32 0
declare void @externalCall(i64) local_unnamed_addr
define void @runtime.initAll() unnamed_addr {
entry:
+ call fastcc void @baz.init(i8* undef, i8* undef)
call fastcc void @foo.init(i8* undef, i8* undef)
%val = load i64, i64* @foo.knownAtRuntime, align 8
store i64 %val, i64* @bar.knownAtRuntime, align 8
@@ -19,3 +22,7 @@ define internal fastcc void @foo.init(i8* %context, i8* %parentHandle) unnamed_a
store i64 5, i64* @foo.knownAtRuntime, align 8
unreachable
}
+
+define internal fastcc void @baz.init(i8* %context, i8* %parentHandle) unnamed_addr {
+ unreachable
+}