aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2023-03-16 20:12:26 +0100
committerDamian Gryski <[email protected]>2023-03-16 13:46:03 -0700
commitaf247e27ffd23b4f65bdbb0748b7f75524142089 (patch)
tree3937324c10ba786ac99080574aee05240007b8b8
parentec3a4da4df42526550037a3dbfcc7a41afd1428e (diff)
downloadtinygo-af247e27ffd23b4f65bdbb0748b7f75524142089.tar.gz
tinygo-af247e27ffd23b4f65bdbb0748b7f75524142089.zip
transform: update stacksize test to opaque pointers
-rw-r--r--transform/testdata/stacksize.ll10
-rw-r--r--transform/testdata/stacksize.out.ll12
2 files changed, 11 insertions, 11 deletions
diff --git a/transform/testdata/stacksize.ll b/transform/testdata/stacksize.ll
index f80a71217..4df5874a6 100644
--- a/transform/testdata/stacksize.ll
+++ b/transform/testdata/stacksize.ll
@@ -1,15 +1,15 @@
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv7m-none-eabi"
-declare i32 @"internal/task.getGoroutineStackSize"(i32, i8*, i8*)
+declare i32 @"internal/task.getGoroutineStackSize"(i32, ptr, ptr)
-declare void @"runtime.run$1$gowrapper"(i8*)
+declare void @"runtime.run$1$gowrapper"(ptr)
-declare void @"internal/task.start"(i32, i8*, i32)
+declare void @"internal/task.start"(i32, ptr, i32)
define void @Reset_Handler() {
entry:
- %stacksize = call i32 @"internal/task.getGoroutineStackSize"(i32 ptrtoint (void (i8*)* @"runtime.run$1$gowrapper" to i32), i8* undef, i8* undef)
- call void @"internal/task.start"(i32 ptrtoint (void (i8*)* @"runtime.run$1$gowrapper" to i32), i8* undef, i32 %stacksize)
+ %stacksize = call i32 @"internal/task.getGoroutineStackSize"(i32 ptrtoint (ptr @"runtime.run$1$gowrapper" to i32), ptr undef, ptr undef)
+ call void @"internal/task.start"(i32 ptrtoint (ptr @"runtime.run$1$gowrapper" to i32), ptr undef, i32 %stacksize)
ret void
}
diff --git a/transform/testdata/stacksize.out.ll b/transform/testdata/stacksize.out.ll
index 574758154..4efc4a22d 100644
--- a/transform/testdata/stacksize.out.ll
+++ b/transform/testdata/stacksize.out.ll
@@ -2,17 +2,17 @@ target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv7m-none-eabi"
@"internal/task.stackSizes" = global [1 x i32] [i32 1024], section ".tinygo_stacksizes", align 4
[email protected] = appending global [2 x i8*] [i8* bitcast ([1 x i32]* @"internal/task.stackSizes" to i8*), i8* bitcast (void (i8*)* @"runtime.run$1$gowrapper" to i8*)]
[email protected] = appending global [2 x ptr] [ptr @"internal/task.stackSizes", ptr @"runtime.run$1$gowrapper"]
-declare i32 @"internal/task.getGoroutineStackSize"(i32, i8*, i8*)
+declare i32 @"internal/task.getGoroutineStackSize"(i32, ptr, ptr)
-declare void @"runtime.run$1$gowrapper"(i8*)
+declare void @"runtime.run$1$gowrapper"(ptr)
-declare void @"internal/task.start"(i32, i8*, i32)
+declare void @"internal/task.start"(i32, ptr, i32)
define void @Reset_Handler() {
entry:
- %stacksize1 = load i32, i32* getelementptr inbounds ([1 x i32], [1 x i32]* @"internal/task.stackSizes", i32 0, i32 0), align 4
- call void @"internal/task.start"(i32 ptrtoint (void (i8*)* @"runtime.run$1$gowrapper" to i32), i8* undef, i32 %stacksize1)
+ %stacksize1 = load i32, ptr @"internal/task.stackSizes", align 4
+ call void @"internal/task.start"(i32 ptrtoint (ptr @"runtime.run$1$gowrapper" to i32), ptr undef, i32 %stacksize1)
ret void
}