xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/ident-metadata.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; Verify that llvm.ident metadata is emitted as .ident
3*9880d681SAndroid Build Coastguard Worker; directives in assembly files, and in the .comment section in ELF object files.
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; CHECK: .ident  "clang version x.x"
6*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: .ident  "something else"
7*9880d681SAndroid Build Coastguard Worker!llvm.ident = !{!0, !1}
8*9880d681SAndroid Build Coastguard Worker!0 = !{!"clang version x.x"}
9*9880d681SAndroid Build Coastguard Worker!1 = !{!"something else"}
10