summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86/dbg-const-int.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-27 23:49:04 +0000
committerEric Christopher <echristo@gmail.com>2013-08-27 23:49:04 +0000
commit9d1daa87e71c57a1730b9e554275a11e750632a4 (patch)
tree5d9b3d85e0634f817ade1c30efd6fbf8443ea7d5 /llvm/test/DebugInfo/X86/dbg-const-int.ll
parent63eaed0341029825e2a4c90bde969a163961412e (diff)
downloadbcm5719-llvm-9d1daa87e71c57a1730b9e554275a11e750632a4.tar.gz
bcm5719-llvm-9d1daa87e71c57a1730b9e554275a11e750632a4.zip
Use DW_FORM_sdata for signed constant values and udata on occasion
when we can. Migrate from using blocks when we're adding just a single attribute and floating point values are an unsigned, not signed, bag of bits. Update all test cases accordingly. llvm-svn: 189419
Diffstat (limited to 'llvm/test/DebugInfo/X86/dbg-const-int.ll')
-rw-r--r--llvm/test/DebugInfo/X86/dbg-const-int.ll8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/X86/dbg-const-int.ll b/llvm/test/DebugInfo/X86/dbg-const-int.ll
index 4ff0301bc17..7b6c40cc0a3 100644
--- a/llvm/test/DebugInfo/X86/dbg-const-int.ll
+++ b/llvm/test/DebugInfo/X86/dbg-const-int.ll
@@ -1,9 +1,13 @@
-; RUN: llc < %s - | FileCheck %s
+; RUN: llc -mtriple=x86_64-apple-darwin12 -filetype=obj %s -o %t
+; RUN: llvm-dwarfdump %t | 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-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-apple-macosx10.6.7"
; Radar 9511391
-;CHECK: .byte 4 ## DW_AT_const_value
+; CHECK: DW_TAG_variable
+; CHECK: "i"
+; CHECK: DW_AT_const_value [DW_FORM_sdata] (42)
+
define i32 @foo() nounwind uwtable readnone optsize ssp {
entry:
tail call void @llvm.dbg.value(metadata !8, i64 0, metadata !6), !dbg !9
OpenPOWER on IntegriCloud