aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp/testdata/basic.out.ll
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-02-27 14:18:47 +0100
committerRon Evans <[email protected]>2024-02-27 15:16:38 +0100
commit1f6d34d995a0c77117b63c3e287549322d3c5d1f (patch)
treebb8f390833488fce22f26213bf20e18204493915 /interp/testdata/basic.out.ll
parent9951eb9990071aaf5e29665cc3185c1abe7368dc (diff)
downloadtinygo-1f6d34d995a0c77117b63c3e287549322d3c5d1f.tar.gz
tinygo-1f6d34d995a0c77117b63c3e287549322d3c5d1f.zip
interp: make getelementptr offsets signed
getelementptr offsets are signed, not unsigned. Yet they were used as unsigned integers in interp. Somehow this worked most of the time, until finally there was some code that did a getelementptr with a negative index.
Diffstat (limited to 'interp/testdata/basic.out.ll')
-rw-r--r--interp/testdata/basic.out.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/interp/testdata/basic.out.ll b/interp/testdata/basic.out.ll
index 342d4965f..2685850eb 100644
--- a/interp/testdata/basic.out.ll
+++ b/interp/testdata/basic.out.ll
@@ -9,6 +9,8 @@ target triple = "x86_64--linux"
@main.exposedValue1 = global i16 0
@main.exposedValue2 = local_unnamed_addr global i16 0
@main.insertedValue = local_unnamed_addr global { i8, i32, { float, { i64, i16 } } } zeroinitializer
[email protected] = local_unnamed_addr global [8 x i8] zeroinitializer
[email protected] = global ptr getelementptr inbounds (i8, ptr @main.negativeGEP, i64 2)
declare void @runtime.printint64(i64) unnamed_addr