1## Test the ADDMOD MRI command.
2
3# RUN: rm -rf %t && mkdir -p %t
4# RUN: yaml2obj %s -o %t/f.o
5
6# RUN: echo "CREATE %t/addmod.a" > %t/addmod.mri
7# RUN: echo "ADDMOD %t/f.o" >> %t/addmod.mri
8# RUN: echo "SAVE" >> %t/addmod.mri
9# RUN: llvm-ar -M < %t/addmod.mri
10# RUN: llvm-nm --print-armap %t/addmod.a | FileCheck %s
11
12# CHECK: f in f.o
13
14--- !ELF
15FileHeader:
16  Class:   ELFCLASS64
17  Data:    ELFDATA2LSB
18  Type:    ET_REL
19  Machine: EM_X86_64
20Sections:
21  - Name: .text
22    Type: SHT_PROGBITS
23Symbols:
24    - Name:    f
25      Binding: STB_GLOBAL
26      Section: .text
27...
28