test: regenerate test snapshots with gentests

This commit is contained in:
Li Jie
2025-01-08 15:19:38 +08:00
parent 255cce4f9a
commit 60c430abad
112 changed files with 8989 additions and 8989 deletions

View File

@@ -42,7 +42,7 @@ define i32 @main(i32 %0, ptr %1) {
_llgo_0:
store i32 %0, ptr @__llgo_argc, align 4
store ptr %1, ptr @__llgo_argv, align 8
call void @"github.com/goplus/llgo/internal/runtime.init"()
call void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
call void @main.init()
%2 = call ptr @PyFloat_FromDouble(double 2.000000e+00)
%3 = load ptr, ptr @__llgo_py.math.sqrt, align 8
@@ -63,7 +63,7 @@ declare void @"github.com/goplus/llgo/py/os.init"()
declare void @"github.com/goplus/llgo/py/std.init"()
declare void @"github.com/goplus/llgo/internal/runtime.init"()
declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
declare ptr @PyFloat_FromDouble(double)

View File

@@ -29,7 +29,7 @@ define i32 @main(i32 %0, ptr %1) {
_llgo_0:
store i32 %0, ptr @__llgo_argc, align 4
store ptr %1, ptr @__llgo_argv, align 8
call void @"github.com/goplus/llgo/internal/runtime.init"()
call void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
call void @main.init()
%2 = call ptr @PyLong_FromLong(i64 60)
%3 = call ptr @PyLong_FromLong(i64 20)
@@ -43,7 +43,7 @@ _llgo_0:
declare void @"github.com/goplus/llgo/py/math.init"()
declare void @"github.com/goplus/llgo/internal/runtime.init"()
declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
declare ptr @PyLong_FromLong(i64)

View File

@@ -1,17 +1,17 @@
; ModuleID = 'github.com/goplus/llgo/cl/_testpy/math'
source_filename = "github.com/goplus/llgo/cl/_testpy/math"
; ModuleID = 'github.com/goplus/llgo/compiler/cl/_testpy/math'
source_filename = "github.com/goplus/llgo/compiler/cl/_testpy/math"
@"github.com/goplus/llgo/cl/_testpy/math.init$guard" = global i1 false, align 1
@"github.com/goplus/llgo/compiler/cl/_testpy/math.init$guard" = global i1 false, align 1
@__llgo_py.math = linkonce global ptr null, align 8
@0 = private unnamed_addr constant [5 x i8] c"math\00", align 1
define void @"github.com/goplus/llgo/cl/_testpy/math.init"() {
define void @"github.com/goplus/llgo/compiler/cl/_testpy/math.init"() {
_llgo_0:
%0 = load i1, ptr @"github.com/goplus/llgo/cl/_testpy/math.init$guard", align 1
%0 = load i1, ptr @"github.com/goplus/llgo/compiler/cl/_testpy/math.init$guard", align 1
br i1 %0, label %_llgo_2, label %_llgo_1
_llgo_1: ; preds = %_llgo_0
store i1 true, ptr @"github.com/goplus/llgo/cl/_testpy/math.init$guard", align 1
store i1 true, ptr @"github.com/goplus/llgo/compiler/cl/_testpy/math.init$guard", align 1
%1 = load ptr, ptr @__llgo_py.math, align 8
%2 = icmp ne ptr %1, null
br i1 %2, label %_llgo_2, label %_llgo_3

View File

@@ -31,7 +31,7 @@ define i32 @main(i32 %0, ptr %1) {
_llgo_0:
store i32 %0, ptr @__llgo_argc, align 4
store ptr %1, ptr @__llgo_argv, align 8
call void @"github.com/goplus/llgo/internal/runtime.init"()
call void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
call void @main.init()
%2 = call ptr @PyList_New(i64 3)
%3 = call ptr @PyFloat_FromDouble(double 1.000000e+00)
@@ -99,7 +99,7 @@ _llgo_0:
declare void @"github.com/goplus/llgo/py/numpy.init"()
declare void @"github.com/goplus/llgo/internal/runtime.init"()
declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
declare ptr @PyList_New(i64)

View File

@@ -32,7 +32,7 @@ define i32 @main(i32 %0, ptr %1) {
_llgo_0:
store i32 %0, ptr @__llgo_argc, align 4
store ptr %1, ptr @__llgo_argv, align 8
call void @"github.com/goplus/llgo/internal/runtime.init"()
call void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
call void @main.init()
%2 = call ptr @PyFloat_FromDouble(double 3.000000e+00)
%3 = call ptr @PyFloat_FromDouble(double 9.000000e+00)
@@ -75,7 +75,7 @@ _llgo_0:
declare void @"github.com/goplus/llgo/py/std.init"()
declare void @"github.com/goplus/llgo/internal/runtime.init"()
declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
declare ptr @PyFloat_FromDouble(double)

View File

@@ -26,7 +26,7 @@ define i32 @main(i32 %0, ptr %1) {
_llgo_0:
store i32 %0, ptr @__llgo_argc, align 4
store ptr %1, ptr @__llgo_argv, align 8
call void @"github.com/goplus/llgo/internal/runtime.init"()
call void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
call void @main.init()
%2 = load ptr, ptr @__llgo_py.math, align 8
%3 = call ptr @PyObject_GetAttrString(ptr %2, ptr @1)
@@ -37,7 +37,7 @@ _llgo_0:
declare void @"github.com/goplus/llgo/py/math.init"()
declare void @"github.com/goplus/llgo/internal/runtime.init"()
declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
declare ptr @PyObject_GetAttrString(ptr, ptr)

View File

@@ -29,7 +29,7 @@ define i32 @main(i32 %0, ptr %1) {
_llgo_0:
store i32 %0, ptr @__llgo_argc, align 4
store ptr %1, ptr @__llgo_argv, align 8
call void @"github.com/goplus/llgo/internal/runtime.init"()
call void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
call void @main.init()
%2 = call ptr @PyFloat_FromDouble(double 2.000000e+00)
%3 = call ptr @PyFloat_FromDouble(double 3.000000e+00)
@@ -42,7 +42,7 @@ _llgo_0:
declare void @"github.com/goplus/llgo/py/math.init"()
declare void @"github.com/goplus/llgo/internal/runtime.init"()
declare void @"github.com/goplus/llgo/runtime/internal/runtime.init"()
declare ptr @PyFloat_FromDouble(double)