Debian Codegraph @

tests/cli/clang-custom-sections.wat

raw
1 ;; RUN: print %
2
3 (module
4 (type (;0;) (func))
5 (type (;1;) (func (param i32)))
6 (import "env" "__linear_memory" (memory (;0;) 0))
7 (import "env" "__stack_pointer" (global (;0;) (mut i32)))
8 (import "env" "foo" (func (;0;) (type 1)))
9 (import "env" "__stack_chk_fail" (func (;1;) (type 0)))
10 (func (;2;) (type 0)
11 (local i32)
12 global.get 0
13 i32.const 16
14 i32.sub
15 local.tee 0
16 global.set 0
17 local.get 0
18 i32.const 0
19 i32.load
20 i32.store offset=12
21 local.get 0
22 i32.const 8
23 i32.add
24 call 0
25 block ;; label = @1
26 i32.const 0
27 i32.load
28 local.get 0
29 i32.load offset=12
30 i32.eq
31 br_if 0 (;@1;)
32 call 1
33 unreachable
34 end
35 local.get 0
36 i32.const 16
37 i32.add
38 global.set 0
39 )
40 (@custom "linking" (after code) "\02\08\a5\80\80\80\00\05\00\04\02\03bar\02\10\00\01\10\11__stack_chk_guard\00\10\00\00\10\01")
41 (@custom "reloc.CODE" (after code) "\03\07\07\06\01\07\11\01\03\1c\02\00\00*\03\035\02\00\00C\04\07P\01")
42 (@producers
43 (processed-by "clang" "20.1.8-wasi-sdk (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)")
44 )
45 (@custom "target_features" (after code) "\08+\0bbulk-memory+\0fbulk-memory-opt+\16call-indirect-overlong+\0amultivalue+\0fmutable-globals+\13nontrapping-fptoint+\0freference-types+\08sign-ext")
46 )