summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/X86/dwarf-size-field-overflow.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/X86/dwarf-size-field-overflow.test')
-rw-r--r--llvm/test/MC/X86/dwarf-size-field-overflow.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/MC/X86/dwarf-size-field-overflow.test b/llvm/test/MC/X86/dwarf-size-field-overflow.test
index 72f3bd3a900..090255268e1 100644
--- a/llvm/test/MC/X86/dwarf-size-field-overflow.test
+++ b/llvm/test/MC/X86/dwarf-size-field-overflow.test
@@ -1,7 +1,7 @@
# This test generates too many debug location entries to fit into 65KB required
# by DWARF < 5. Check that the location is set to 0 instead of crashing.
#
-# RUN: %python %s 4000 | llc -mtriple=x86_64-apple-darwin -filetype=obj -o %t
+# RUN: %python %s 10000 | llc -mtriple=x86_64-apple-darwin -filetype=obj -o %t
# RUN: llvm-dwarfdump %t | FileCheck %s
#
# CHECK: 0x0000004d: DW_TAG_formal_parameter
@@ -39,11 +39,11 @@ attributes #0 = {{ nounwind readnone speculatable }}
!34 = !DILocation(line: 12, column: 8, scope: !24)
"""
-CALL = "call void @llvm.dbg.value(metadata i64 {0}, metadata !30, metadata !DIExpression(DW_OP_LLVM_fragment, {0}, 64)), !dbg !34"
+CALL = "call void @llvm.dbg.value(metadata i64 {0}, metadata !30, metadata !DIExpression(DW_OP_LLVM_fragment, {1}, 8)), !dbg !34"
if __name__ == '__main__':
N = int(sys.argv[1])
calls = []
for i in range(0, N):
- calls.append(CALL.format(i * 10**12))
+ calls.append(CALL.format(i * 10**12, i*8))
print(SKELETON.format('\n'.join(calls)))
OpenPOWER on IntegriCloud