summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/pr10420.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/pr10420.ll')
-rw-r--r--test/CodeGen/X86/pr10420.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr10420.ll b/test/CodeGen/X86/pr10420.ll
new file mode 100644
index 0000000000..3993f24954
--- /dev/null
+++ b/test/CodeGen/X86/pr10420.ll
@@ -0,0 +1,21 @@
+; RUN: llc < %s -mtriple=x86_64-apple-macosx -disable-cfi | FileCheck %s
+
+define private void @foo() {
+ ret void
+}
+
+define void @bar() {
+ call void @foo()
+ ret void;
+}
+
+; CHECK: _bar: ## @bar
+; CHECK-NEXT: Ltmp2:
+
+; CHECK: Ltmp12:
+; CHECK-NEXT: Ltmp13 = L_foo-Ltmp12 ## FDE initial location
+; CHECK-NEXT: .quad Ltmp13
+
+; CHECK: Ltmp19:
+; CHECK-NEXT: Ltmp20 = Ltmp2-Ltmp19 ## FDE initial location
+; CHECK-NEXT: .quad Ltmp20