summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit8c4b6a307eb937faa134810c8cd2d68603713d4e (patch)
tree19454e93294fe3705e9f9dc3bac3668742b11874 /llvm/test/CodeGen/PowerPC
parent206cefe66c210b773d5e50aaefda6eddc102b493 (diff)
downloadbcm5719-llvm-8c4b6a307eb937faa134810c8cd2d68603713d4e.tar.gz
bcm5719-llvm-8c4b6a307eb937faa134810c8cd2d68603713d4e.zip
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. llvm-svn: 162778
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
-rw-r--r--llvm/test/CodeGen/PowerPC/pr13641.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/pr13641.ll b/llvm/test/CodeGen/PowerPC/pr13641.ll
new file mode 100644
index 00000000000..e80fbea36d6
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud