diff options
-rw-r--r-- | transform/testdata/stacksize.ll | 10 | ||||
-rw-r--r-- | transform/testdata/stacksize.out.ll | 12 |
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 } |