summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/PGOProfile
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/PGOProfile')
-rw-r--r--llvm/test/Transforms/PGOProfile/macho.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Transforms/PGOProfile/macho.ll b/llvm/test/Transforms/PGOProfile/macho.ll
new file mode 100644
index 00000000000..314442cb981
--- /dev/null
+++ b/llvm/test/Transforms/PGOProfile/macho.ll
@@ -0,0 +1,9 @@
+; RUN: opt < %s -mtriple=x86_64-apple-macosx10.11.0 -pgo-instr-gen -instrprof -S | llc | FileCheck %s --check-prefix=MACHO-DIRECTIVE
+
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
+
+; MACHO-DIRECTIVE: .weak_definition ___llvm_profile_raw_version
+define i32 @test_macho(i32 %i) {
+entry:
+ ret i32 %i
+}
OpenPOWER on IntegriCloud