summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-08-28 19:06:55 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-08-28 19:06:55 +0000
commitc6c2ced38411215e5bf46ded787c23810160dfa7 (patch)
tree4361f01a9682f0e2516684cd88b2dff52a0e2505 /test/CodeGen/PowerPC
parent4fb08317af55c97f421047f0bdbfdd320ac76936 (diff)
downloadllvm-c6c2ced38411215e5bf46ded787c23810160dfa7.tar.gz
llvm-c6c2ced38411215e5bf46ded787c23810160dfa7.tar.bz2
llvm-c6c2ced38411215e5bf46ded787c23810160dfa7.tar.xz
Emit word of zeroes after the last instruction as a start of the mandatory
traceback table on PowerPC64. This helps gdb handle exceptions. The other mandatory fields are ignored by gdb and harder to implement so just add there a FIXME. Patch by Bill Schmidt. PR13641. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC')
-rw-r--r--test/CodeGen/PowerPC/pr13641.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/pr13641.ll b/test/CodeGen/PowerPC/pr13641.ll
new file mode 100644
index 0000000000..e80fbea36d
--- /dev/null
+++ b/test/CodeGen/PowerPC/pr13641.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s | FileCheck %s
+target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
+target triple = "powerpc64-unknown-linux-gnu"
+
+define void @foo() nounwind {
+ ret void
+}
+
+; CHECK: blr
+; CHECK-NEXT: .long 0