summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/AArch64
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-07 18:04:24 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-07 18:04:24 +0000
commitd723f5186e3ea42dfd12dd3da1efe1a8af6e8246 (patch)
treeb7ff7028e27c42f31dd0a956b1b1b11430618988 /llvm/test/DebugInfo/AArch64
parent43b68bebe708fee758a3c93534118c853bb1b230 (diff)
downloadbcm5719-llvm-d723f5186e3ea42dfd12dd3da1efe1a8af6e8246.tar.gz
bcm5719-llvm-d723f5186e3ea42dfd12dd3da1efe1a8af6e8246.zip
DebugInfo: Restrict DW_AT_high_pc encoding as data4 offset to DWARF 4 as per spec
Code review feedback to r203187 from Oliver Stannard. Thanks! llvm-svn: 203256
Diffstat (limited to 'llvm/test/DebugInfo/AArch64')
-rw-r--r--llvm/test/DebugInfo/AArch64/dwarfdump.ll8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/AArch64/dwarfdump.ll b/llvm/test/DebugInfo/AArch64/dwarfdump.ll
index b30bd33ea3a..98e863dbb4b 100644
--- a/llvm/test/DebugInfo/AArch64/dwarfdump.ll
+++ b/llvm/test/DebugInfo/AArch64/dwarfdump.ll
@@ -1,4 +1,7 @@
-; RUN: llc -mtriple=aarch64-non-linux-gnu < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s
+; RUN: llc -mtriple=aarch64-non-linux-gnu -dwarf-version=4 < %s -filetype=obj \
+; RUN: | llvm-dwarfdump - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-4 %s
+; RUN: llc -mtriple=aarch64-non-linux-gnu -dwarf-version=3 < %s -filetype=obj \
+; RUN: | llvm-dwarfdump - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-3 %s
; We're mostly checking that relocations are applied correctly
; here. Currently R_AARCH64_ABS32 is used for references to debug data
@@ -12,7 +15,8 @@
; A couple of ABS64s similarly:
; CHECK: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
-; CHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000008)
+; CHECK-4: DW_AT_high_pc [DW_FORM_data4] (0x00000008)
+; CHECK-3: DW_AT_high_pc [DW_FORM_addr] (0x0000000000000008)
define i32 @main() nounwind {
ret i32 0, !dbg !8
OpenPOWER on IntegriCloud