llvm.org GIT mirror llvm / 49ca68c
[wasm] Update two tests for r308025 which causes scheduling changes due to the newly improved AA information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308100 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 3 years ago
2 changed file(s) with 10 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
1818 %vs = alloca void (%struct.big*)*, align 4
1919 %s = alloca void (%struct.big*)*, align 4
2020
21 ; CHECK: i32.const {{.+}}=, extern_fd@FUNCTION
21 ; CHECK-DAG: i32.const {{.+}}=, extern_fd@FUNCTION
22 ; CHECK-DAG: i32.const {{.+}}=, extern_vj@FUNCTION
2223 store float (double)* @extern_fd, float (double)** %fd, align 4
23 ; CHECK: i32.const {{.+}}=, extern_vj@FUNCTION
2424 store void (i64)* @extern_vj, void (i64)** %vj, align 4
2525 %0 = load void (i64)*, void (i64)** %vj, align 4
2626 call void %0(i64 1)
3535 %2 = load i32 (i64, i32, double, float)*, i32 (i64, i32, double, float)** %ijidf, align 4
3636 %call = call i32 %2(i64 1, i32 2, double 3.000000e+00, float 4.000000e+00)
3737
38 ; CHECK: i32.const {{.+}}=, extern_struct@FUNCTION
38 ; CHECK-DAG: i32.const {{.+}}=, extern_struct@FUNCTION
39 ; CHECK-DAG: i32.const {{.+}}=, extern_sret@FUNCTION
3940 store void (%struct.big*)* @extern_struct, void (%struct.big*)** %vs, align 4
40
41 ; CHECK: i32.const {{.+}}=, extern_sret@FUNCTION
4241 store void (%struct.big*)* @extern_sret, void (%struct.big*)** %s, align 4
4342 %3 = load float (double)*, float (double)** %fd, align 4
4443 %4 = ptrtoint float (double)* %3 to i32
3535 ; CHECK-NEXT: tee_local $push[[L5:.+]]=, [[SP:.+]], $pop[[L6]]
3636 %r1 = alloca i32
3737 %r2 = alloca double
38 store i32 0, i32* %r1
39 store double 0.0, double* %r2
40 ; CHECK-NEXT: i64.const $push[[L1:.+]]=, 0
41 ; CHECK-NEXT: i64.store 0($pop[[L5]]), $pop[[L1]]
42 ; CHECK-NEXT: get_local $push[[L2:.+]]=, [[SP]]{{$}}
3843 ; CHECK-NEXT: i32.const $push[[L0:.+]]=, 0
39 ; CHECK-NEXT: i32.store 12($pop[[L5]]), $pop[[L0]]
40 store i32 0, i32* %r1
41 ; CHECK-NEXT: get_local $push[[L2:.+]]=, [[SP]]{{$}}
42 ; CHECK-NEXT: i64.const $push[[L1:.+]]=, 0
43 ; CHECK-NEXT: i64.store 0($pop[[L2]]), $pop[[L1]]
44 store double 0.0, double* %r2
44 ; CHECK-NEXT: i32.store 12($pop[[L2]]), $pop[[L0]]
4545 ; CHECK-NEXT: return
4646 ret void
4747 }