aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp/testdata
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-10-31 01:30:17 +0200
committerRon Evans <[email protected]>2021-10-31 10:44:17 +0100
commit90076f9401ff5bc6572e6f932d7fa937049d628f (patch)
treea31ff7eb46486b503904816954eb61e07fa1c7ac /interp/testdata
parentafd49e7cdd358eda85a7fcf615d768ecf04d62ce (diff)
downloadtinygo-90076f9401ff5bc6572e6f932d7fa937049d628f.tar.gz
tinygo-90076f9401ff5bc6572e6f932d7fa937049d628f.zip
all: drop support for LLVM 10
Diffstat (limited to 'interp/testdata')
-rw-r--r--interp/testdata/basic.out.ll14
-rw-r--r--interp/testdata/slice-copy.out.ll4
2 files changed, 9 insertions, 9 deletions
diff --git a/interp/testdata/basic.out.ll b/interp/testdata/basic.out.ll
index 51a3b3f48..174f073eb 100644
--- a/interp/testdata/basic.out.ll
+++ b/interp/testdata/basic.out.ll
@@ -18,14 +18,14 @@ entry:
call void @runtime.printint64(i64 5)
call void @runtime.printnl()
%value1 = call i64 @someValue()
- store i64 %value1, i64* getelementptr inbounds ([4 x i64], [4 x i64]* @main.nonConst1, i32 0, i32 0)
- %value2 = load i64, i64* getelementptr inbounds ([4 x i64], [4 x i64]* @main.nonConst1, i32 0, i32 0)
- store i64 %value2, i64* @main.nonConst2
+ store i64 %value1, i64* getelementptr inbounds ([4 x i64], [4 x i64]* @main.nonConst1, i32 0, i32 0), align 8
+ %value2 = load i64, i64* getelementptr inbounds ([4 x i64], [4 x i64]* @main.nonConst1, i32 0, i32 0), align 8
+ store i64 %value2, i64* @main.nonConst2, align 8
call void @modifyExternal(i32* getelementptr inbounds ([8 x { i16, i32 }], [8 x { i16, i32 }]* @main.someArray, i32 0, i32 3, i32 1))
call void @modifyExternal(i32* bitcast ([1 x i16*]* @main.exportedValue to i32*))
- store i16 5, i16* @main.exposedValue1
+ store i16 5, i16* @main.exposedValue1, align 2
call void @modifyExternal(i32* bitcast (void ()* @willModifyGlobal to i32*))
- store i16 7, i16* @main.exposedValue2
+ store i16 7, i16* @main.exposedValue2, align 2
call void @modifyExternal(i32* bitcast (void ()* @hasInlineAsm to i32*))
call void @runtime.printint64(i64 6)
call void @runtime.printint64(i64 -1)
@@ -39,7 +39,7 @@ entry:
%agg2.insertvalue2 = insertvalue { i64, i16 } %agg2.agg1, i64 5, 0
%agg2.insertvalue1 = insertvalue { float, { i64, i16 } } %agg2.agg0, { i64, i16 } %agg2.insertvalue2, 1
%agg2.insertvalue0 = insertvalue { i8, i32, { float, { i64, i16 } } } %agg, { float, { i64, i16 } } %agg2.insertvalue1, 2
- store { i8, i32, { float, { i64, i16 } } } %agg2.insertvalue0, { i8, i32, { float, { i64, i16 } } }* @main.insertedValue
+ store { i8, i32, { float, { i64, i16 } } } %agg2.insertvalue0, { i8, i32, { float, { i64, i16 } } }* @main.insertedValue, align 8
ret void
}
@@ -56,7 +56,7 @@ declare void @modifyExternal(i32*) local_unnamed_addr
define void @willModifyGlobal() {
entry:
- store i16 8, i16* @main.exposedValue2
+ store i16 8, i16* @main.exposedValue2, align 2
ret void
}
diff --git a/interp/testdata/slice-copy.out.ll b/interp/testdata/slice-copy.out.ll
index f3b15950f..9f88df094 100644
--- a/interp/testdata/slice-copy.out.ll
+++ b/interp/testdata/slice-copy.out.ll
@@ -1,7 +1,7 @@
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64--linux"
-@"main$alloc.1" = internal unnamed_addr constant [6 x i8] c"\05\00{\00\00\04"
+@"main$alloc.1" = internal unnamed_addr constant [6 x i8] c"\05\00{\00\00\04", align 8
declare void @runtime.printuint8(i8) local_unnamed_addr
@@ -17,7 +17,7 @@ entry:
call void @runtime.printuint8(i8 3)
call void @runtime.printuint8(i8 3)
call void @runtime.printint16(i16 5)
- %int16SliceDst.val = load i16, i16* bitcast ([6 x i8]* @"main$alloc.1" to i16*)
+ %int16SliceDst.val = load i16, i16* bitcast ([6 x i8]* @"main$alloc.1" to i16*), align 2
call void @runtime.printint16(i16 %int16SliceDst.val)
ret void
}