summaryrefslogtreecommitdiff
path: root/test/DebugInfo/SystemZ/eh_frame.s
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-05-06 16:18:29 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-05-06 16:18:29 +0000
commit25cf4ebd50ca150468ef51697ea3587cacb87460 (patch)
treeb8b7c6361e23d6fb59023ee9b8fd46a917cc68ed /test/DebugInfo/SystemZ/eh_frame.s
parentb503b49b5105b6aad7d2a015468b84b0f64dfe8e (diff)
downloadllvm-25cf4ebd50ca150468ef51697ea3587cacb87460.tar.gz
llvm-25cf4ebd50ca150468ef51697ea3587cacb87460.tar.bz2
llvm-25cf4ebd50ca150468ef51697ea3587cacb87460.tar.xz
[SystemZ] Add DebugInfo test cases
This adds all DebugInfo tests for the SystemZ target. This version of the patch incorporates feedback from reviews by Eric Christopher and Rafael Espindola. Thanks to all reviewers! Patch by Richard Sandiford. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/SystemZ/eh_frame.s')
-rw-r--r--test/DebugInfo/SystemZ/eh_frame.s54
1 files changed, 54 insertions, 0 deletions
diff --git a/test/DebugInfo/SystemZ/eh_frame.s b/test/DebugInfo/SystemZ/eh_frame.s
new file mode 100644
index 0000000000..4e7afd56e9
--- /dev/null
+++ b/test/DebugInfo/SystemZ/eh_frame.s
@@ -0,0 +1,54 @@
+# RUN: llvm-mc -triple=s390x-linux-gnu -filetype=obj %s -o %t
+# RUN: llvm-objdump -s %t | FileCheck %s
+
+ .text
+ .globl check_largest_class
+ .align 4
+ .type check_largest_class,@function
+check_largest_class:
+ .cfi_startproc
+ stmg %r13, %r15, 104(%r15)
+ .cfi_offset %r13, -56
+ .cfi_offset %r14, -48
+ .cfi_offset %r15, -40
+ aghi %r15, -160
+ .cfi_def_cfa_offset 320
+ lmg %r13, %r15, 264(%r15)
+ br %r14
+ .size check_largest_class, .-check_largest_class
+ .cfi_endproc
+
+# The readelf rendering is:
+#
+# Contents of the .eh_frame section:
+#
+# 00000000 0000001c 00000000 CIE
+# Version: 1
+# Augmentation: "zR"
+# Code alignment factor: 1
+# Data alignment factor: -8
+# Return address column: 14
+# Augmentation data: 1b
+#
+# DW_CFA_def_cfa: r15 ofs 160
+# DW_CFA_nop
+# DW_CFA_nop
+# DW_CFA_nop
+#
+# 00000020 0000001c 00000024 FDE cie=00000000 pc=00000000..00000012
+# DW_CFA_advance_loc: 6 to 00000006
+# DW_CFA_offset: r13 at cfa-56
+# DW_CFA_offset: r14 at cfa-48
+# DW_CFA_offset: r15 at cfa-40
+# DW_CFA_advance_loc: 4 to 0000000a
+# DW_CFA_def_cfa_offset: 320
+# DW_CFA_nop
+# DW_CFA_nop
+# DW_CFA_nop
+# DW_CFA_nop
+#
+# CHECK: Contents of section .eh_frame:
+# CHECK-NEXT: 0000 00000014 00000000 017a5200 01780e01 .........zR..x..
+# CHECK-NEXT: 0010 1b0c0fa0 01000000 0000001c 0000001c ................
+# CHECK-NEXT: 0020 00000000 00000012 00468d07 8e068f05 .........F......
+# CHECK-NEXT: 0030 440ec002 00000000 D.......