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.
7 ; CHECK: .section .GCC.command.line,"MS",@progbits,1
9 ; CHECK-NEXT: .ascii "clang -command1"
11 ; CHECK-NEXT: .ascii "clang -command2"
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"}