summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/compiler-ident.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2014-06-10 14:32:08 +0000
committerChad Rosier <mcrosier@codeaurora.org>2014-06-10 14:32:08 +0000
commitd863ae39d1c5f28a3d5c63a251e27e07baf7337f (patch)
treea68642cc2a3a16e2e38f2d7231b102e879474ad4 /llvm/test/CodeGen/AArch64/compiler-ident.ll
parent14f8ac04e3ecfe097653bda84b8cf4777fb91f17 (diff)
downloadbcm5719-llvm-d863ae39d1c5f28a3d5c63a251e27e07baf7337f.tar.gz
bcm5719-llvm-d863ae39d1c5f28a3d5c63a251e27e07baf7337f.zip
[AArch64] Emit .ident compiler version attribute.
Patch by Ana Pazos<apazos@codeaurora.org>! llvm-svn: 210535
Diffstat (limited to 'llvm/test/CodeGen/AArch64/compiler-ident.ll')
-rw-r--r--llvm/test/CodeGen/AArch64/compiler-ident.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/compiler-ident.ll b/llvm/test/CodeGen/AArch64/compiler-ident.ll
new file mode 100644
index 00000000000..035057194a0
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/compiler-ident.ll
@@ -0,0 +1,12 @@
+; RUN: llc -o - %s -mtriple=aarch64-linux-gnu | FileCheck %s
+
+; ModuleID = 'compiler-ident.c'
+target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
+target triple = "aarch64--linux-gnu"
+
+; CHECK: .ident "some LLVM version"
+
+!llvm.ident = !{!0}
+
+!0 = metadata !{metadata !"some LLVM version"}
+
OpenPOWER on IntegriCloud