[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / AArch64 / commandline-metadata.ll
blob7c6e01763220d1aad856474e77d9a85a56c962ee
1 ; RUN: llc -mtriple=arm64-linux-gnu < %s | FileCheck %s
2 ; RUN: llc -mtriple=arm64-apple-darwin < %s | FileCheck %s --check-prefix=CHECK-MACHO
4 ; Verify that llvm.commandline metadata is emitted to the corresponding command line section.
6 ; CHECK:              .text
7 ; CHECK:              .section .GCC.command.line,"MS",@progbits,1
8 ; CHECK-NEXT:         .zero 1
9 ; CHECK-NEXT:         .ascii "clang -command1"
10 ; CHECK-NEXT:         .zero 1
11 ; CHECK-NEXT:         .ascii "clang -command2"
12 ; CHECK-NEXT:         .zero 1
14 ; CHECK-MACHO:        .section  __TEXT,__text,regular,pure_instructions
15 ; CHECK-MACHO-NEXT:   .section  __TEXT,__command_line
16 ; CHECK-MACHO-NEXT:   .space    1
17 ; CHECK-MACHO-NEXT:   .ascii    "clang -command1"
18 ; CHECK-MACHO-NEXT:   .space    1
19 ; CHECK-MACHO-NEXT:   .ascii    "clang -command2"
20 ; CHECK-MACHO-NEXT:   .space    1
22 !llvm.commandline = !{!0, !1}
23 !0 = !{!"clang -command1"}
24 !1 = !{!"clang -command2"}