summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/version_directive.ll
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-01-13 01:18:13 +0000
committerMatthias Braun <matze@braunis.de>2016-01-13 01:18:13 +0000
commit4cc3421a24b567b94265d9a5c77f816fa3afb53b (patch)
treeb2e9a84c30373cb93359b4fb0951b12700c9ee36 /llvm/test/CodeGen/X86/version_directive.ll
parent3eaaf86397a6aee6336bdb101ddcd7bff3f4d37a (diff)
downloadbcm5719-llvm-4cc3421a24b567b94265d9a5c77f816fa3afb53b.tar.gz
bcm5719-llvm-4cc3421a24b567b94265d9a5c77f816fa3afb53b.zip
AsmPrinter: Fix wrong OS X versions being emitted for darwin triples
The version numbers of the darwin kernel are different from the version numbers of OS X, so we need adjustments if we had "*-*-darwin" triples. Use the existing utility functions in TargetTriple for this. Fixes rdar://22056966 Differential Revision: http://reviews.llvm.org/D14601 llvm-svn: 257555
Diffstat (limited to 'llvm/test/CodeGen/X86/version_directive.ll')
-rw-r--r--llvm/test/CodeGen/X86/version_directive.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/version_directive.ll b/llvm/test/CodeGen/X86/version_directive.ll
new file mode 100644
index 00000000000..8e4e6dc70e6
--- /dev/null
+++ b/llvm/test/CodeGen/X86/version_directive.ll
@@ -0,0 +1,4 @@
+; RUN: llc -mtriple x86_64-apple-darwin15.0.0 -o - /dev/null | FileCheck %s
+; RUN: llc -mtriple x86_64-apple-macosx10.11.0 -o - /dev/null | FileCheck %s
+
+; CHECK: .macosx_version_min 10, 11
OpenPOWER on IntegriCloud