[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / llvm / test / MC / WebAssembly / external-data.ll
blob8c51873121265838c43257404f867421a670c8e9
1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 ; Verify relocations are correctly generated for addresses of externals
6 ; in the data section.
8 @myimport = external global i32, align 4
10 @foo = global i64 7, align 4
11 @bar = hidden global ptr @myimport, align 4
13 ; CHECK:        - Type:            DATA{{$}}
14 ; CHECK-NEXT:     Relocations:
15 ; CHECK-NEXT:       - Type:            R_WASM_MEMORY_ADDR_I32
16 ; CHECK-NEXT:         Index:           2
17 ; CHECK-NEXT:         Offset:          0x13
18 ; CHECK-NEXT:     Segments:
19 ; CHECK-NEXT:       - SectionOffset:   6
20 ; CHECK-NEXT:         InitFlags:       0
21 ; CHECK-NEXT:         Offset:
22 ; CHECK-NEXT:           Opcode:          I32_CONST
23 ; CHECK-NEXT:           Value:           0
24 ; CHECK-NEXT:         Content:         '0700000000000000'
25 ; CHECK-NEXT:       - SectionOffset:   19
26 ; CHECK-NEXT:         InitFlags:       0
27 ; CHECK-NEXT:         Offset:
28 ; CHECK-NEXT:           Opcode:          I32_CONST
29 ; CHECK-NEXT:           Value:           8
30 ; CHECK-NEXT:         Content:         '00000000'