[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
This commit is contained in:
Chandler Carruth 2017-07-15 15:44:36 +00:00
parent e039298b16
commit 49ca68c80a
2 changed files with 9 additions and 10 deletions

View File

@ -19,9 +19,9 @@ entry:
%vs = alloca void (%struct.big*)*, align 4
%s = alloca void (%struct.big*)*, align 4
; CHECK: i32.const {{.+}}=, extern_fd@FUNCTION
; CHECK-DAG: i32.const {{.+}}=, extern_fd@FUNCTION
; CHECK-DAG: i32.const {{.+}}=, extern_vj@FUNCTION
store float (double)* @extern_fd, float (double)** %fd, align 4
; CHECK: i32.const {{.+}}=, extern_vj@FUNCTION
store void (i64)* @extern_vj, void (i64)** %vj, align 4
%0 = load void (i64)*, void (i64)** %vj, align 4
call void %0(i64 1)
@ -36,10 +36,9 @@ entry:
%2 = load i32 (i64, i32, double, float)*, i32 (i64, i32, double, float)** %ijidf, align 4
%call = call i32 %2(i64 1, i32 2, double 3.000000e+00, float 4.000000e+00)
; CHECK: i32.const {{.+}}=, extern_struct@FUNCTION
; CHECK-DAG: i32.const {{.+}}=, extern_struct@FUNCTION
; CHECK-DAG: i32.const {{.+}}=, extern_sret@FUNCTION
store void (%struct.big*)* @extern_struct, void (%struct.big*)** %vs, align 4
; CHECK: i32.const {{.+}}=, extern_sret@FUNCTION
store void (%struct.big*)* @extern_sret, void (%struct.big*)** %s, align 4
%3 = load float (double)*, float (double)** %fd, align 4
%4 = ptrtoint float (double)* %3 to i32

View File

@ -36,13 +36,13 @@ define void @alloca3264() {
; CHECK-NEXT: tee_local $push[[L5:.+]]=, [[SP:.+]], $pop[[L6]]
%r1 = alloca i32
%r2 = alloca double
; CHECK-NEXT: i32.const $push[[L0:.+]]=, 0
; CHECK-NEXT: i32.store 12($pop[[L5]]), $pop[[L0]]
store i32 0, i32* %r1
; CHECK-NEXT: get_local $push[[L2:.+]]=, [[SP]]{{$}}
; CHECK-NEXT: i64.const $push[[L1:.+]]=, 0
; CHECK-NEXT: i64.store 0($pop[[L2]]), $pop[[L1]]
store double 0.0, double* %r2
; CHECK-NEXT: i64.const $push[[L1:.+]]=, 0
; CHECK-NEXT: i64.store 0($pop[[L5]]), $pop[[L1]]
; CHECK-NEXT: get_local $push[[L2:.+]]=, [[SP]]{{$}}
; CHECK-NEXT: i32.const $push[[L0:.+]]=, 0
; CHECK-NEXT: i32.store 12($pop[[L2]]), $pop[[L0]]
; CHECK-NEXT: return
ret void
}