blob: 86e3827f47e3d6ab7ffa808500ab9ae418968006 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; RUN: wasm-ctor-eval %s --ctors=test1,test2 --kept-exports=test1,test2 --quiet -all -S -o - | filecheck %s
(module
;; CHECK: (type $0 (func))
;; CHECK: (memory $0 1616)
(memory $0 1616) ;; 101 MB
(func "test1"
;; This write will be evalled into a data segment and removed.
(i32.store8
(i32.const 0x63fffff) ;; 100 MB - 1
(i32.const 42)
)
)
(func "test2"
;; We stop at this write to a high address (wasm-ctor-eval generally only
;; writes to low addresses, so it is tuned for that)
(i32.store8
(i32.const 0x6400000) ;; 100 MB
(i32.const 43)
)
)
)
;; CHECK: (data $0 (i32.const 104857599) "*")
;; CHECK: (export "test1" (func $0_2))
;; CHECK: (export "test2" (func $1))
;; CHECK: (func $1 (type $0)
;; CHECK-NEXT: (i32.store8
;; CHECK-NEXT: (i32.const 104857600)
;; CHECK-NEXT: (i32.const 43)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK: (func $0_2 (type $0)
;; CHECK-NEXT: (nop)
;; CHECK-NEXT: )
|