]> granicus.if.org Git - llvm/commitdiff
Fix address sizes in the dwarfdump-debug-loc-error-cases test
authorPavel Labath <pavel@labath.sk>
Wed, 4 Sep 2019 11:47:20 +0000 (11:47 +0000)
committerPavel Labath <pavel@labath.sk>
Wed, 4 Sep 2019 11:47:20 +0000 (11:47 +0000)
the test is building a 64-bit executable, so the addresses should be
64-bit too. The test was still passing even with smaller address size,
but it was hitting the "unexpected end of data" error sooner than it
should.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370882 91177308-0d34-0410-b5e6-96231b3b80d8

test/DebugInfo/X86/dwarfdump-debug-loc-error-cases.s

index 092765d4fa3cbdd56ca915e7ebfb574584fa5662..78196bfecf46b278be5bfe66bc67ae7d3aaacea1 100644 (file)
   .byte  1                       # bogus
 .endif
 .ifdef CASE2
-  .long  0                       # starting offset
+  .quad  0                       # starting offset
 .endif
 .ifdef CASE3
-  .long  0                       # starting offset
-  .long  1                       # ending offset
+  .quad  0                       # starting offset
+  .quad  1                       # ending offset
 .endif
 .ifdef CASE4
-  .long  0                       # starting offset
-  .long  1                       # ending offset
+  .quad  0                       # starting offset
+  .quad  1                       # ending offset
   .word  0                       # Loc expr size
 .endif
 .ifdef CASE5
-  .long  0                       # starting offset
-  .long  1                       # ending offset
+  .quad  0                       # starting offset
+  .quad  1                       # ending offset
   .word  0                       # Loc expr size
-  .long  0                       # starting offset
+  .quad  0                       # starting offset
 .endif
 .ifdef CASE6
-  .long  0                       # starting offset
-  .long  1                       # ending offset
+  .quad  0                       # starting offset
+  .quad  1                       # ending offset
   .word  0xffff                  # Loc expr size
 .endif