43 lines · yaml
1# RUN: yaml2obj %s | obj2yaml | FileCheck %s2--- !WASM3FileHeader:4 Version: 0x000000015Sections:6 - Type: GLOBAL7 Globals: 8 - Index: 09 Type: I3210 Mutable: false11 InitExpr:12 # "extended" encoding of init expression:13 # (global.get[0x23] 0x1 end[0x0b])14 Extended: true15 Body: 23010b16 - Index: 117 Type: I6418 Mutable: false19 InitExpr:20 # (global.get[0x23] 0x1 i32.const[0x41] 0x2 i32.add[0x6a] end[0x0b])21 Extended: true22 Body: 230141026a0b23...24# CHECK: --- !WASM25# CHECK: FileHeader:26# CHECK: Version: 0x127# CHECK: Sections:28# CHECK: - Type: GLOBAL29# CHECK: Globals: 30# CHECK: - Index: 031# CHECK: Type: I3232# CHECK: Mutable: false33# CHECK: InitExpr:34# CHECK: Opcode: GLOBAL_GET35# CHECK: Index: 136# CHECK: - Index: 137# CHECK: Type: I6438# CHECK: Mutable: false39# CHECK: InitExpr:40# CHECK: Extended: true41# CHECK: Body: 230141026A0B42# CHECK: ...43