diff options
Diffstat (limited to 'test/lit/passes/local-cse_all-features.wast')
-rw-r--r-- | test/lit/passes/local-cse_all-features.wast | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/lit/passes/local-cse_all-features.wast b/test/lit/passes/local-cse_all-features.wast index d901d2d99..22b6b1903 100644 --- a/test/lit/passes/local-cse_all-features.wast +++ b/test/lit/passes/local-cse_all-features.wast @@ -4,7 +4,8 @@ ;; RUN: foreach %s %t wasm-opt --local-cse --all-features -S -o - | filecheck %s (module - ;; CHECK: (type $i32_=>_i32 (func (param i32) (result i32))) + ;; CHECK: (type $f (func (param i32) (result i32))) + (type $f (func (param i32) (result i32))) ;; CHECK: (type $none_=>_none (func)) @@ -12,13 +13,13 @@ ;; CHECK: (func $calls (param $x i32) (result i32) ;; CHECK-NEXT: (drop - ;; CHECK-NEXT: (call_ref $i32_=>_i32 + ;; CHECK-NEXT: (call_ref $f ;; CHECK-NEXT: (i32.const 10) ;; CHECK-NEXT: (ref.func $calls) ;; CHECK-NEXT: ) ;; CHECK-NEXT: ) ;; CHECK-NEXT: (drop - ;; CHECK-NEXT: (call_ref $i32_=>_i32 + ;; CHECK-NEXT: (call_ref $f ;; CHECK-NEXT: (i32.const 10) ;; CHECK-NEXT: (ref.func $calls) ;; CHECK-NEXT: ) @@ -28,10 +29,10 @@ (func $calls (param $x i32) (result i32) ;; The side effects of calls prevent optimization. (drop - (call_ref (i32.const 10) (ref.func $calls)) + (call_ref $f (i32.const 10) (ref.func $calls)) ) (drop - (call_ref (i32.const 10) (ref.func $calls)) + (call_ref $f (i32.const 10) (ref.func $calls)) ) (i32.const 20) ) |