Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-readobj / wasm / globals.test
blob4e9f6403c267c2caa06c397c2afc67325ad75622
1 # RUN: yaml2obj %s | llvm-readobj --sections - | FileCheck %s
3 # Test use of global.get in initializer expressions.
5 --- !WASM
6 FileHeader:
7   Version:         0x00000001
8 Sections:
9   - Type:            DATA
10     Segments:
11       - SectionOffset:   6
12         InitFlags:       0
13         Offset:
14           Opcode:          GLOBAL_GET
15           Index:           1
16         Content:         '64'
17 ...
19 # CHECK:      Section {
20 # CHECK-NEXT:     Type: DATA (0xB)
21 # CHECK-NEXT:     Size: 7
22 # CHECK-NEXT:     Offset: 8
23 # CHECK-NEXT:     Segments [
24 # CHECK-NEXT:       Segment {
25 # CHECK-NEXT:         Size: 1
26 # CHECK-NEXT:         Offset [
27 # CHECK-NEXT:           Global: 1
28 # CHECK-NEXT:         ]
29 # CHECK-NEXT:       }
30 # CHECK-NEXT:     ]
31 # CHECK-NEXT:   }
32 # CHECK-NEXT: ]