1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

llvm-dwarfdump: Make -brief the default and add a -verbose option instead.

Differential Revision: https://reviews.llvm.org/D37717

llvm-svn: 312972
This commit is contained in:
Adrian Prantl 2017-09-11 23:05:20 +00:00
parent 3d80249809
commit 6927831e30
210 changed files with 301 additions and 298 deletions

View File

@ -1,4 +1,4 @@
; RUN: llc -arm-global-merge -global-merge-group-by-use=false -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -arm-global-merge -global-merge-group-by-use=false -filetype=obj < %s | llvm-dwarfdump -debug-info -v - | FileCheck %s
source_filename = "test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll" source_filename = "test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll"
target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32" target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32"

View File

@ -1,4 +1,4 @@
; RUN: llc -arm-global-merge -global-merge-group-by-use=false -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -arm-global-merge -global-merge-group-by-use=false -filetype=obj < %s | llvm-dwarfdump -debug-info -v - | FileCheck %s
; CHECK: DW_TAG_variable ; CHECK: DW_TAG_variable
; CHECK-NOT: DW_TAG ; CHECK-NOT: DW_TAG

View File

@ -1,4 +1,4 @@
; RUN: llc -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s ; RUN: llc -filetype=obj -O0 < %s | llvm-dwarfdump -v - | FileCheck %s
; debug_info content ; debug_info content
; CHECK: DW_AT_name {{.*}} "foobar_func_block_invoke_0" ; CHECK: DW_AT_name {{.*}} "foobar_func_block_invoke_0"

View File

@ -1,4 +1,4 @@
; RUN: llc -mtriple=i686-- -O0 < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s ; RUN: llc -mtriple=i686-- -O0 < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck %s
; CHECK-LABEL: .debug_info contents: ; CHECK-LABEL: .debug_info contents:

View File

@ -1,5 +1,5 @@
; RUN: llc < %s -filetype=obj | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v -debug-info - | FileCheck %s
; RUN: llc < %s -filetype=obj -regalloc=basic | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc < %s -filetype=obj -regalloc=basic | llvm-dwarfdump -v -debug-info - | 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 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-darwin10.0.0" target triple = "x86_64-apple-darwin10.0.0"

View File

@ -1,5 +1,5 @@
; RUN: llc -o - %s | FileCheck %s ; RUN: llc -o - %s | FileCheck %s
; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF ; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF
; This test checks that parameters on the stack pointer are correctly ; This test checks that parameters on the stack pointer are correctly
; referenced by debug info. ; referenced by debug info.
target triple = "x86_64--" target triple = "x86_64--"

View File

@ -1,18 +1,18 @@
; RUN: llc -dwarf-version=4 -generate-type-units \ ; RUN: llc -dwarf-version=4 -generate-type-units \
; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \ ; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \
; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=SINGLE-4 ; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SINGLE-4
; RUN: llc -split-dwarf-file=foo.dwo -dwarf-version=4 -generate-type-units \ ; RUN: llc -split-dwarf-file=foo.dwo -dwarf-version=4 -generate-type-units \
; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \ ; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \
; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=SPLIT-4 ; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SPLIT-4
; RUN: llc -dwarf-version=5 -generate-type-units \ ; RUN: llc -dwarf-version=5 -generate-type-units \
; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \ ; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \
; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=SINGLE-5 ; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SINGLE-5
; RUN: llc -split-dwarf-file=foo.dwo -dwarf-version=5 -generate-type-units \ ; RUN: llc -split-dwarf-file=foo.dwo -dwarf-version=5 -generate-type-units \
; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \ ; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \
; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=SPLIT-5 ; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SPLIT-5
; Looking for DWARF headers to be generated correctly. ; Looking for DWARF headers to be generated correctly.
; There are 7 variants: v4 CU, v4 TU, v5 (normal/skeleton/split) CU, ; There are 7 variants: v4 CU, v4 TU, v5 (normal/skeleton/split) CU,

View File

@ -1,4 +1,4 @@
; RUN: llc -O0 -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s ; RUN: llc -O0 -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
; ;
; Derived from (clang -O0 -g -fsanitize=address -fobjc-arc) ; Derived from (clang -O0 -g -fsanitize=address -fobjc-arc)
; @protocol NSObject ; @protocol NSObject

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple aarch64_be-gnu-linux -O0 -filetype=obj -o %t_be.o %s ; RUN: llc -mtriple aarch64_be-gnu-linux -O0 -filetype=obj -o %t_be.o %s
; RUN: llvm-dwarfdump -debug-info %t_be.o | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t_be.o | FileCheck %s
; Produced at -O0 from: ; Produced at -O0 from:
; struct bitfield { ; struct bitfield {

View File

@ -1,7 +1,7 @@
; RUN: llc -mtriple=aarch64-non-linux-gnu -dwarf-version=4 < %s -filetype=obj \ ; 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: | llvm-dwarfdump -v - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-4 %s
; RUN: llc -mtriple=aarch64-non-linux-gnu -dwarf-version=3 < %s -filetype=obj \ ; 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 ; RUN: | llvm-dwarfdump -v - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-3 %s
; We're mostly checking that relocations are applied correctly ; We're mostly checking that relocations are applied correctly
; here. Currently R_AARCH64_ABS32 is used for references to debug data ; here. Currently R_AARCH64_ABS32 is used for references to debug data

View File

@ -1,4 +1,4 @@
; RUN: llc -disable-fp-elim -O0 -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s ; RUN: llc -disable-fp-elim -O0 -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s
; Test that a variable with multiple entries in the MMI table makes it into the ; Test that a variable with multiple entries in the MMI table makes it into the
; debug info. ; debug info.
; ;

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple=aarch64-none-linux -O0 -filetype=obj - < %S/../Inputs/line.ll | llvm-dwarfdump - | FileCheck %s ; RUN: llc -mtriple=aarch64-none-linux -O0 -filetype=obj - < %S/../Inputs/line.ll | llvm-dwarfdump -v - | FileCheck %s
; RUN: llc -mtriple=aarch64_be-none-linux -O0 -filetype=obj - < %S/../Inputs/line.ll | llvm-dwarfdump - | FileCheck %s ; RUN: llc -mtriple=aarch64_be-none-linux -O0 -filetype=obj - < %S/../Inputs/line.ll | llvm-dwarfdump -v - | FileCheck %s
; check line table length is correctly calculated for both big and little endian ; check line table length is correctly calculated for both big and little endian
CHECK-LABEL: .debug_line contents: CHECK-LABEL: .debug_line contents:

View File

@ -1,4 +1,4 @@
; RUN: llc -O0 -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump - 2>&1 | FileCheck %s ; RUN: llc -O0 -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -v - 2>&1 | FileCheck %s
; LLVM IR generated with the following command and OpenCL source: ; LLVM IR generated with the following command and OpenCL source:
; ;

View File

@ -1,4 +1,4 @@
; RUN: llc -O0 -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -O0 -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; LLVM IR generated with the following command and OpenCL source: ; LLVM IR generated with the following command and OpenCL source:
; ;

View File

@ -1,4 +1,4 @@
; RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; LLVM IR generated with the following command and OpenCL source: ; LLVM IR generated with the following command and OpenCL source:
; ;

View File

@ -1,4 +1,4 @@
; RUN: llc -filetype=obj -o - < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -filetype=obj -o - < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; ;
; Checks that we're creating two ranges, one that terminates immediately ; Checks that we're creating two ranges, one that terminates immediately
; and one that spans the rest of the function. This isn't necessarily the ; and one that spans the rest of the function. This isn't necessarily the

View File

@ -1,5 +1,5 @@
; RUN: llc -O0 -filetype=obj -mtriple=armeb-none-freebsd -debugger-tune=lldb %s -o - \ ; RUN: llc -O0 -filetype=obj -mtriple=armeb-none-freebsd -debugger-tune=lldb %s -o - \
; RUN: | llvm-dwarfdump --debug-info - | FileCheck %s ; RUN: | llvm-dwarfdump -v --debug-info - | FileCheck %s
; Generated from: ; Generated from:
; struct S { ; struct S {
; int j:5; ; int j:5;

View File

@ -1,5 +1,5 @@
; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s ; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s
; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s
; REQUIRES: object-emission ; REQUIRES: object-emission
; ;
; Generated from: ; Generated from:

View File

@ -1,4 +1,4 @@
; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s ; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump -v - | FileCheck %s
; This tests a fragment that partially covers subregister compositions. ; This tests a fragment that partially covers subregister compositions.
; ;
; Our fragment is 96 bits long and lies in a 128-bit register, which ; Our fragment is 96 bits long and lies in a 128-bit register, which

View File

@ -1,5 +1,5 @@
; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s ; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s
; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s
; REQUIRES: object-emission ; REQUIRES: object-emission
target datalayout = "e-m:o-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target datalayout = "e-m:o-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "thumbv7-apple-unknown-macho" target triple = "thumbv7-apple-unknown-macho"

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj -o - < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj -o - < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; Radar 7833483 ; Radar 7833483
; Do not emit a separate out-of-line definition DIE for the function-local 'foo' ; Do not emit a separate out-of-line definition DIE for the function-local 'foo'
; function (member of the function local 'A' type) ; function (member of the function local 'A' type)

View File

@ -3,7 +3,7 @@
; For some reason, the output when targetting sparc is not quite as expected. ; For some reason, the output when targetting sparc is not quite as expected.
; XFAIL: sparc ; XFAIL: sparc
; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; IR generated from clang -O0 with: ; IR generated from clang -O0 with:
; struct C { ; struct C {

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s
; Ensure that pointer constants are emitted as unsigned data. Alternatively, ; Ensure that pointer constants are emitted as unsigned data. Alternatively,
; these could be signless data (dataN). ; these could be signless data (dataN).

View File

@ -1,7 +1,7 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck -implicit-check-not=DW_TAG %s ; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck -implicit-check-not=DW_TAG %s
; RUN: %llc_dwarf -dwarf-accel-tables=Enable -dwarf-linkage-names=All -O0 -filetype=obj < %s | llvm-dwarfdump - | FileCheck --check-prefix=CHECK-ACCEL --check-prefix=CHECK %s ; RUN: %llc_dwarf -dwarf-accel-tables=Enable -dwarf-linkage-names=All -O0 -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck --check-prefix=CHECK-ACCEL --check-prefix=CHECK %s
; Build from source: ; Build from source:
; $ clang++ a.cpp b.cpp -g -c -emit-llvm ; $ clang++ a.cpp b.cpp -g -c -emit-llvm

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; Testing that two distinct (distinct by writing them in separate files, while ; Testing that two distinct (distinct by writing them in separate files, while
; still fulfilling C++'s ODR by having identical token sequences) functions, ; still fulfilling C++'s ODR by having identical token sequences) functions,

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; Built from source: ; Built from source:
; $ clang++ a.cpp b.cpp -g -c -emit-llvm ; $ clang++ a.cpp b.cpp -g -c -emit-llvm

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj %s -o %t ; RUN: %llc_dwarf -O0 -filetype=obj %s -o %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; Check that we emit ranges for this which has a non-traditional section and a normal section. ; Check that we emit ranges for this which has a non-traditional section and a normal section.

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; Built from the following source with clang -O1 ; Built from the following source with clang -O1
; struct S { int i; }; ; struct S { int i; };

View File

@ -14,7 +14,7 @@
; auto pr = &A::r; ; auto pr = &A::r;
; } ; }
; ;
; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s ; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -v - | FileCheck %s
; CHECK: DW_TAG_subroutine_type DW_CHILDREN_yes ; CHECK: DW_TAG_subroutine_type DW_CHILDREN_yes
; CHECK-NEXT: DW_AT_reference DW_FORM_flag_present ; CHECK-NEXT: DW_AT_reference DW_FORM_flag_present
; CHECK: DW_TAG_subroutine_type DW_CHILDREN_yes ; CHECK: DW_TAG_subroutine_type DW_CHILDREN_yes

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; ;
; RUN: %llc_dwarf -filetype=obj -O0 -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -filetype=obj -O0 -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; Make sure we can handle enums with the same identifier but in enum types of ; Make sure we can handle enums with the same identifier but in enum types of
; different compile units. ; different compile units.

View File

@ -1,7 +1,7 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; IR generated from the following code compiled with clang -g: ; IR generated from the following code compiled with clang -g:
; enum e1 { I, J = 0xffffffffU, K = 0xf000000000000000ULL } a; ; enum e1 { I, J = 0xffffffffU, K = 0xf000000000000000ULL } a;

View File

@ -1,5 +1,5 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %S/gmlt_profiling.ll | llvm-dwarfdump - | FileCheck %S/gmlt_profiling.ll ; RUN: %llc_dwarf -O0 -filetype=obj < %S/gmlt_profiling.ll | llvm-dwarfdump -v - | FileCheck %S/gmlt_profiling.ll
; CHECK: .debug_info ; CHECK: .debug_info
; CHECK: DW_TAG_subprogram ; CHECK: DW_TAG_subprogram

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck --implicit-check-not "{{DW_TAG|NULL}}" %s ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck --implicit-check-not "{{DW_TAG|NULL}}" %s
; Generated from the following source: ; Generated from the following source:
; namespace ns { ; namespace ns {

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O2 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O2 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; This is a test case that's as reduced as I can get it, though I haven't fully ; This is a test case that's as reduced as I can get it, though I haven't fully
; understood the mechanisms by which this bug occurs, so perhaps there's further ; understood the mechanisms by which this bug occurs, so perhaps there's further

View File

@ -1,8 +1,8 @@
; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=Abstract < %s | llvm-dwarfdump -debug-info - > %t ; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=Abstract < %s | llvm-dwarfdump -v -debug-info - > %t
; RUN: FileCheck %s -check-prefix=ONENAME < %t ; RUN: FileCheck %s -check-prefix=ONENAME < %t
; RUN: FileCheck %s -check-prefix=REF < %t ; RUN: FileCheck %s -check-prefix=REF < %t
; Verify tuning for SCE gets us Abstract only. ; Verify tuning for SCE gets us Abstract only.
; RUN: %llc_dwarf -O0 -filetype=obj -debugger-tune=sce < %s | llvm-dwarfdump -debug-info - > %t ; RUN: %llc_dwarf -O0 -filetype=obj -debugger-tune=sce < %s | llvm-dwarfdump -v -debug-info - > %t
; RUN: FileCheck %s -check-prefix=ONENAME < %t ; RUN: FileCheck %s -check-prefix=ONENAME < %t
; RUN: FileCheck %s -check-prefix=REF < %t ; RUN: FileCheck %s -check-prefix=REF < %t
; REQUIRES: object-emission ; REQUIRES: object-emission

View File

@ -1,7 +1,7 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; Make sure we're emitting DW_AT_main_subprogram. ; Make sure we're emitting DW_AT_main_subprogram.
; CHECK: DW_TAG_subprogram ; CHECK: DW_TAG_subprogram

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; generated by clang from: ; generated by clang from:
; struct foo { ; struct foo {

View File

@ -2,7 +2,7 @@
; XFAIL: hexagon ; XFAIL: hexagon
; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t ; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; CHECK: DW_TAG_ptr_to_member_type ; CHECK: DW_TAG_ptr_to_member_type
; CHECK: DW_TAG_ptr_to_member_type ; CHECK: DW_TAG_ptr_to_member_type
; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE:0x[0-9a-f]+]]}) ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE:0x[0-9a-f]+]]})

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; The formal parameter 'b' for Function 'x' when inlined within 'a' is lost on ; The formal parameter 'b' for Function 'x' when inlined within 'a' is lost on
; mips and powerpc64 (and on x86_64 at at least -O2). Presumably this is a ; mips and powerpc64 (and on x86_64 at at least -O2). Presumably this is a

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v - | FileCheck %s
; CHECK: debug_info contents ; CHECK: debug_info contents
; CHECK: DW_AT_name{{.*}}= [[F1:.*]]) ; CHECK: DW_AT_name{{.*}}= [[F1:.*]])
; CHECK: [[NS1:0x[0-9a-f]*]]:{{ *}}DW_TAG_namespace ; CHECK: [[NS1:0x[0-9a-f]*]]:{{ *}}DW_TAG_namespace

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; Generated from clang with the following source: ; Generated from clang with the following source:
; namespace ns { ; namespace ns {

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; Generate from clang with the following source. Note that the definition of ; Generate from clang with the following source. Note that the definition of
; the inline function follows its use to workaround another bug that should be ; the inline function follows its use to workaround another bug that should be

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s ; RUN: %llc_dwarf < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck %s
; Test that a nodebug function (a function not appearing in the debug info IR ; Test that a nodebug function (a function not appearing in the debug info IR
; metadata subprogram list) with DebugLocs on its IR doesn't cause crashes/does ; metadata subprogram list) with DebugLocs on its IR doesn't cause crashes/does

View File

@ -1,7 +1,7 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; Check that pointers and references get emitted without size information in ; Check that pointers and references get emitted without size information in
; DWARF, even if they are so specified in the IR ; DWARF, even if they are so specified in the IR

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; This isn't a very pretty test case - I imagine there might be other ways to ; This isn't a very pretty test case - I imagine there might be other ways to
; tickle the optimizers into producing the desired code, but I haven't found ; tickle the optimizers into producing the desired code, but I haven't found

View File

@ -1,7 +1,7 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -dwarf-version=2 -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=V2 %s ; RUN: %llc_dwarf -dwarf-version=2 -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=V2 %s
; RUN: %llc_dwarf -dwarf-version=3 -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=V3 %s ; RUN: %llc_dwarf -dwarf-version=3 -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=V3 %s
; CHECK: DW_AT_name {{.*}} "dst" ; CHECK: DW_AT_name {{.*}} "dst"
; V2: DW_AT_type {{.*}} {[[PTR:0x.*]]} ; V2: DW_AT_type {{.*}} {[[PTR:0x.*]]}

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s
; Use correct signedness when emitting constants of derived (sugared) types. ; Use correct signedness when emitting constants of derived (sugared) types.
; CHECK: DW_AT_const_value [DW_FORM_sdata] (42) ; CHECK: DW_AT_const_value [DW_FORM_sdata] (42)

View File

@ -1,7 +1,7 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; This was pulled from clang's debug-info-template-recursive.cpp test. ; This was pulled from clang's debug-info-template-recursive.cpp test.
; class base { }; ; class base { };

View File

@ -1,6 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; CHECK: DW_TAG_subprogram ; CHECK: DW_TAG_subprogram
; CHECK: DW_AT_name {{.*}} "f" ; CHECK: DW_AT_name {{.*}} "f"

View File

@ -1,7 +1,7 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t ; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; CHECK: [[TYPE:.*]]: DW_TAG_structure_type ; CHECK: [[TYPE:.*]]: DW_TAG_structure_type
; Make sure we correctly handle containing type of a struct being a type identifier. ; Make sure we correctly handle containing type of a struct being a type identifier.
; CHECK-NEXT: DW_AT_containing_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]}) ; CHECK-NEXT: DW_AT_containing_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]})

View File

@ -1,7 +1,7 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t ; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; CHECK: DW_TAG_ptr_to_member_type ; CHECK: DW_TAG_ptr_to_member_type
; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE:0x[0-9a-f]+]]}) ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE:0x[0-9a-f]+]]})
; CHECK: [[TYPE]]: DW_TAG_base_type ; CHECK: [[TYPE]]: DW_TAG_base_type

View File

@ -2,7 +2,7 @@
; PR 19261 ; PR 19261
; RUN: %llc_dwarf -fast-isel=false -O0 -filetype=obj %s -o %t ; RUN: %llc_dwarf -fast-isel=false -O0 -filetype=obj %s -o %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; CHECK: {{0x[0-9a-f]+}} 1 0 1 0 0 is_stmt ; CHECK: {{0x[0-9a-f]+}} 1 0 1 0 0 is_stmt
; CHECK: {{0x[0-9a-f]+}} 2 0 1 0 0 is_stmt ; CHECK: {{0x[0-9a-f]+}} 2 0 1 0 0 is_stmt

View File

@ -1,5 +1,5 @@
; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s ; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s
; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s
; REQUIRES: object-emission ; REQUIRES: object-emission
; ;
; Test debug info for variadic function arguments. ; Test debug info for variadic function arguments.

View File

@ -1,7 +1,7 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; Generated from the following C++ source code: ; Generated from the following C++ source code:
; ;

View File

@ -1,5 +1,5 @@
# RUN: llc -start-after=livedebugvalues -filetype=obj -o - %s \ # RUN: llc -start-after=livedebugvalues -filetype=obj -o - %s \
# RUN: | llvm-dwarfdump - | FileCheck %s # RUN: | llvm-dwarfdump -v - | FileCheck %s
# This tests for a crash in DwarfDebug's singular DBG_VALUE range promotion when # This tests for a crash in DwarfDebug's singular DBG_VALUE range promotion when
# encountering an IMPLICIT_DEF in its own lexical scope. # encountering an IMPLICIT_DEF in its own lexical scope.

View File

@ -1,4 +1,4 @@
# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump --debug-info - | FileCheck %s # RUN: llc -filetype=obj -o - %s | llvm-dwarfdump -v --debug-info - | FileCheck %s
# CHECK: .debug_info contents: # CHECK: .debug_info contents:
# CHECK: DW_TAG_variable # CHECK: DW_TAG_variable
# CHECK-NEXT: DW_AT_location {{.*}} (DW_OP_reg1 RDX, DW_OP_bit_piece 0x8 0x8) # CHECK-NEXT: DW_AT_location {{.*}} (DW_OP_reg1 RDX, DW_OP_bit_piece 0x8 0x8)

View File

@ -1,4 +1,4 @@
# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s # RUN: llc -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
# #
# This testcase has an implicit def pseudo-iunstruction with a debug location. # This testcase has an implicit def pseudo-iunstruction with a debug location.
# #

View File

@ -1,4 +1,4 @@
; RUN: llc -filetype=obj -O0 -relocation-model=pic < %s -mtriple mips-unknown-linux-gnu | llvm-dwarfdump - | FileCheck %s ; RUN: llc -filetype=obj -O0 -relocation-model=pic < %s -mtriple mips-unknown-linux-gnu | llvm-dwarfdump -v - | FileCheck %s
; PR19815 ; PR19815
; Generated using clang -target mips-linux-gnu -g test.c -S -o - -flto|opt -sroa -S ; Generated using clang -target mips-linux-gnu -g test.c -S -o - -flto|opt -sroa -S

View File

@ -1,5 +1,5 @@
; RUN: llc -march=mips -mcpu=mips32r2 -O1 -filetype=obj -relocation-model=pic <%s | \ ; RUN: llc -march=mips -mcpu=mips32r2 -O1 -filetype=obj -relocation-model=pic <%s | \
; RUN: llvm-dwarfdump -all - | FileCheck %s ; RUN: llvm-dwarfdump -v -all - | FileCheck %s
; void foo(int *); ; void foo(int *);
; ;

View File

@ -1,5 +1,5 @@
; RUN: llc -march=mips -mcpu=mips32r2 -O0 -filetype=obj -fast-isel=0 <%s | \ ; RUN: llc -march=mips -mcpu=mips32r2 -O0 -filetype=obj -fast-isel=0 <%s | \
; RUN: llvm-dwarfdump -all - | FileCheck %s ; RUN: llvm-dwarfdump -v -all - | FileCheck %s
declare void @llvm.dbg.declare(metadata, metadata, metadata) declare void @llvm.dbg.declare(metadata, metadata, metadata)

View File

@ -1,5 +1,5 @@
; RUN: llc -filetype=obj -O0 < %s -mtriple sparc64-unknown-linux-gnu | llvm-dwarfdump - | FileCheck %s --check-prefix=SPARC64 ; RUN: llc -filetype=obj -O0 < %s -mtriple sparc64-unknown-linux-gnu | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SPARC64
; RUN: llc -filetype=obj -O0 < %s -mtriple sparc-unknown-linux-gnu | llvm-dwarfdump - | FileCheck %s --check-prefix=SPARC32 ; RUN: llc -filetype=obj -O0 < %s -mtriple sparc-unknown-linux-gnu | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SPARC32
; Check for DW_CFA_GNU_Window_save in debug_frame. Also, Ensure that relocations ; Check for DW_CFA_GNU_Window_save in debug_frame. Also, Ensure that relocations
; are performed correctly in debug_info. ; are performed correctly in debug_info.

View File

@ -1,6 +1,6 @@
; RUN: llc -mtriple=s390x-linux-gnu -disable-fp-elim < %s | FileCheck %s ; RUN: llc -mtriple=s390x-linux-gnu -disable-fp-elim < %s | FileCheck %s
; RUN: llc -mtriple=s390x-linux-gnu -disable-fp-elim -filetype=obj < %s \ ; RUN: llc -mtriple=s390x-linux-gnu -disable-fp-elim -filetype=obj < %s \
; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=DEBUG %s ; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=DEBUG %s
; ;
; This is a regression test making sure the location of variables is correct in ; This is a regression test making sure the location of variables is correct in
; debugging information, even if they're addressed via the frame pointer. ; debugging information, even if they're addressed via the frame pointer.

View File

@ -1,4 +1,4 @@
# RUN: llvm-mc < %s -triple=s390x-linux-gnu -filetype=obj | llvm-dwarfdump - | FileCheck %s # RUN: llvm-mc < %s -triple=s390x-linux-gnu -filetype=obj | llvm-dwarfdump -v - | FileCheck %s
# #
# We use both R_390_32 and R_390_64 to encode the dwarf information. # We use both R_390_32 and R_390_64 to encode the dwarf information.
# Test that they are used correctly. This uses the assembly output # Test that they are used correctly. This uses the assembly output

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple=x86_64-pc-linux-gnu %s -o %t -filetype=obj ; RUN: llc -mtriple=x86_64-pc-linux-gnu %s -o %t -filetype=obj
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; ModuleID = 'test.c' ; ModuleID = 'test.c'

View File

@ -1,5 +1,5 @@
; RUN: llc < %s -filetype=obj -o %t ; RUN: llc < %s -filetype=obj -o %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; C++ source to regenerate: ; C++ source to regenerate:
; $ cat t.cpp ; $ cat t.cpp

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple=x86_64-apple-macosx %s -o %t -filetype=obj ; RUN: llc -mtriple=x86_64-apple-macosx %s -o %t -filetype=obj
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; ;
; struct A { ; struct A {
; A(int i); ; A(int i);

View File

@ -1,8 +1,8 @@
; RUN: llc -O1 -filetype=obj -mtriple=x86_64-apple-darwin < %s > %t ; RUN: llc -O1 -filetype=obj -mtriple=x86_64-apple-darwin < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; RUN: llvm-objdump -r %t | FileCheck -check-prefix=DARWIN %s ; RUN: llvm-objdump -r %t | FileCheck -check-prefix=DARWIN %s
; RUN: llc -O1 -filetype=obj -mtriple=x86_64-pc-linux-gnu < %s > %t ; RUN: llc -O1 -filetype=obj -mtriple=x86_64-pc-linux-gnu < %s > %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; RUN: llvm-objdump -r %t | FileCheck -check-prefix=LINUX %s ; RUN: llvm-objdump -r %t | FileCheck -check-prefix=LINUX %s
; PR9493 ; PR9493

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; CHECK: DW_TAG_formal_parameter [ ; CHECK: DW_TAG_formal_parameter [
; CHECK-NOT: "" ; CHECK-NOT: ""

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; test that the DW_AT_specification is a back edge in the file. ; test that the DW_AT_specification is a back edge in the file.

View File

@ -1,7 +1,7 @@
; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj %s ; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj %s
; RUN: llvm-dwarfdump -all %t | FileCheck %s ; RUN: llvm-dwarfdump -v -all %t | FileCheck %s
; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj -dwarf-version=3 %s ; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj -dwarf-version=3 %s
; RUN: llvm-dwarfdump -all %t | FileCheck %s -check-prefix=DWARF3 ; RUN: llvm-dwarfdump -v -all %t | FileCheck %s -check-prefix=DWARF3
; CHECK: DW_AT_stmt_list [DW_FORM_sec_offset] ; CHECK: DW_AT_stmt_list [DW_FORM_sec_offset]
; DWARF3: DW_AT_stmt_list [DW_FORM_data4] ; DWARF3: DW_AT_stmt_list [DW_FORM_data4]

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; Check that the friend tag is there and is followed by a DW_AT_friend that has a reference back. ; Check that the friend tag is there and is followed by a DW_AT_friend that has a reference back.

View File

@ -1,6 +1,6 @@
; PR31381: An assertion in the DWARF backend when fragments in MMI slots are ; PR31381: An assertion in the DWARF backend when fragments in MMI slots are
; sorted by largest offset first. ; sorted by largest offset first.
; RUN: llc -mtriple=x86_64-apple-darwin -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -mtriple=x86_64-apple-darwin -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; CHECK: DW_TAG_formal_parameter ; CHECK: DW_TAG_formal_parameter
; CHECK: DW_TAG_formal_parameter ; CHECK: DW_TAG_formal_parameter
; CHECK-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_fbreg -8, DW_OP_piece 0x3, DW_OP_piece 0x6, DW_OP_fbreg -3, DW_OP_piece 0x3) ; CHECK-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_fbreg -8, DW_OP_piece 0x3, DW_OP_piece 0x6, DW_OP_fbreg -3, DW_OP_piece 0x3)

View File

@ -13,7 +13,7 @@
; } ; }
; ;
; RUN: llc -filetype=asm %s -o - | FileCheck %s ; RUN: llc -filetype=asm %s -o - | FileCheck %s
; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump - ---debug-info | FileCheck %s --check-prefix=DWARF ; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump -v - ---debug-info | FileCheck %s --check-prefix=DWARF
; CHECK-LABEL: _main: ; CHECK-LABEL: _main:
; CHECK: movaps {{.*}}, (%rsp) ; CHECK: movaps {{.*}}, (%rsp)

View File

@ -1,7 +1,7 @@
; RUN: llc -mtriple x86_64-apple-macosx -O0 -filetype=obj -o - %s \ ; RUN: llc -mtriple x86_64-apple-macosx -O0 -filetype=obj -o - %s \
; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s
; RUN: llc -mtriple x86_64-gnu-linux -O0 -filetype=obj -o - %s \ ; RUN: llc -mtriple x86_64-gnu-linux -O0 -filetype=obj -o - %s \
; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s --check-prefix=LINUX ; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s --check-prefix=LINUX
; LINUX-NOT: DW_AT_data_bit_offset ; LINUX-NOT: DW_AT_data_bit_offset
; ;
; Generated from: ; Generated from:

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple x86_64-apple-macosx -O0 -filetype=obj -o %t_le.o %s ; RUN: llc -mtriple x86_64-apple-macosx -O0 -filetype=obj -o %t_le.o %s
; RUN: llvm-dwarfdump -debug-info %t_le.o | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t_le.o | FileCheck %s
; Produced at -O0 from: ; Produced at -O0 from:
; struct bitfield { ; struct bitfield {

View File

@ -1,5 +1,5 @@
; RUN: llc %s -o %t -filetype=obj ; RUN: llc %s -o %t -filetype=obj
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; Checks that we emit debug info for the block variable declare. ; Checks that we emit debug info for the block variable declare.
; CHECK: DW_TAG_subprogram ; CHECK: DW_TAG_subprogram

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple=x86_64-apple-macosx10.8.0 -O0 -filetype=obj -o %t %s ; RUN: llc -mtriple=x86_64-apple-macosx10.8.0 -O0 -filetype=obj -o %t %s
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
; Test that we generate debug info for by-value struct args that are not used. ; Test that we generate debug info for by-value struct args that are not used.
; ;
; CHECK: DW_TAG_formal_parameter ; CHECK: DW_TAG_formal_parameter

View File

@ -1,4 +1,4 @@
; RUN: llc -mtriple=x86_64-linux < %s -filetype=obj | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -mtriple=x86_64-linux < %s -filetype=obj | llvm-dwarfdump -v -debug-info - | FileCheck %s
; test that we add DW_AT_inline even when we only have concrete out of line ; test that we add DW_AT_inline even when we only have concrete out of line
; instances. ; instances.

View File

@ -1,5 +1,5 @@
; RUN: llc %s -filetype=obj -o %t.o ; RUN: llc %s -filetype=obj -o %t.o
; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s
; Test emitting a constant for an aggregate type. ; Test emitting a constant for an aggregate type.
; ;
; clang -S -O1 -emit-llvm ; clang -S -O1 -emit-llvm

View File

@ -1,4 +1,4 @@
; RUN: %llc_dwarf -filetype=obj %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: %llc_dwarf -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s
; A hand-written testcase to check 64-bit constant handling in location lists. ; A hand-written testcase to check 64-bit constant handling in location lists.

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple=x86_64-linux -O0 -o - -filetype=obj < %s | llvm-dwarfdump -debug-info -| FileCheck %s ; RUN: llc -mtriple=x86_64-linux -O0 -o - -filetype=obj < %s | llvm-dwarfdump -v -debug-info -| FileCheck %s
; RUN: llc -mtriple=x86_64-linux -dwarf-version=2 -O0 -o - -filetype=obj < %s | llvm-dwarfdump -debug-info -| FileCheck -check-prefix=DWARF2 %s ; RUN: llc -mtriple=x86_64-linux -dwarf-version=2 -O0 -o - -filetype=obj < %s | llvm-dwarfdump -v -debug-info -| FileCheck -check-prefix=DWARF2 %s
; Generated from Clang with the following source: ; Generated from Clang with the following source:
; ;

View File

@ -1,4 +1,4 @@
; RUN: llc < %s -filetype=obj | llvm-dwarfdump - --debug-info | FileCheck %s ; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - --debug-info | FileCheck %s
; ;
; IR module created as follows: ; IR module created as follows:
; clang -emit-llvm -S db-abs-1.cpp -o db-abs-1.ll -g ; clang -emit-llvm -S db-abs-1.cpp -o db-abs-1.ll -g

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple=x86_64-apple-darwin12 -filetype=obj < %s \ ; RUN: llc -mtriple=x86_64-apple-darwin12 -filetype=obj < %s \
; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: | llvm-dwarfdump -v -debug-info - | 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 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" target triple = "x86_64-apple-macosx10.6.7"
; Radar 9511391 ; Radar 9511391

View File

@ -1,5 +1,5 @@
; RUN: llc < %s | FileCheck %s ; RUN: llc < %s | FileCheck %s
; RUN: llc < %s -filetype=obj | llvm-dwarfdump - --debug-info | FileCheck %s --check-prefix=DWARF ; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - --debug-info | FileCheck %s --check-prefix=DWARF
; This should use the frame index side table for allocas, not DBG_VALUE ; This should use the frame index side table for allocas, not DBG_VALUE
; instructions. For SDAG ISel, this test would see an SDNode materializing the ; instructions. For SDAG ISel, this test would see an SDNode materializing the

View File

@ -1,4 +1,4 @@
; RUN: llc -O0 -fast-isel=true -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s ; RUN: llc -O0 -fast-isel=true -filetype=obj -o - %s | llvm-dwarfdump -v - | 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 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" target triple = "x86_64-apple-macosx10.6.7"
; rdar://problem/9321650 ; rdar://problem/9321650

View File

@ -1,6 +1,6 @@
; RUN: llc < %s -O0 -mtriple x86_64-apple-darwin | FileCheck %s ; RUN: llc < %s -O0 -mtriple x86_64-apple-darwin | FileCheck %s
; RUN: llc < %s -O0 -mtriple x86_64-apple-darwin -filetype=obj \ ; RUN: llc < %s -O0 -mtriple x86_64-apple-darwin -filetype=obj \
; RUN: | llvm-dwarfdump - --debug-info | FileCheck %s --check-prefix=DWARF ; RUN: | llvm-dwarfdump -v - --debug-info | FileCheck %s --check-prefix=DWARF
; <rdar://problem/11134152> ; <rdar://problem/11134152>
; CHECK-LABEL: _foo: ; CHECK-LABEL: _foo:

View File

@ -1,6 +1,6 @@
; RUN: llc -mtriple=x86_64-unknown-unknown -o - %s | FileCheck %s ; RUN: llc -mtriple=x86_64-unknown-unknown -o - %s | FileCheck %s
; RUN: llc -mtriple=x86_64-unknown-unknown -filetype=obj < %s \ ; RUN: llc -mtriple=x86_64-unknown-unknown -filetype=obj < %s \
; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF ; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF
define i1 @test() !dbg !4 { define i1 @test() !dbg !4 {
entry: entry:

View File

@ -1,4 +1,4 @@
; RUN: llc < %s -filetype=obj | llvm-dwarfdump - --debug-info | FileCheck %s ; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - --debug-info | FileCheck %s
; ;
; IR module created as follows: ; IR module created as follows:
; clang -emit-llvm -S -O2 foo.cpp -o foo.ll -g ; clang -emit-llvm -S -O2 foo.cpp -o foo.ll -g

View File

@ -1,9 +1,9 @@
; RUN: llc -mtriple=x86_64-apple-darwin < %s -filetype=obj \ ; RUN: llc -mtriple=x86_64-apple-darwin < %s -filetype=obj \
; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %s ; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %s
; RUN: llc -mtriple=x86_64-linux-gnu < %s -filetype=obj \ ; RUN: llc -mtriple=x86_64-linux-gnu < %s -filetype=obj \
; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=LINUX %s ; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=LINUX %s
; RUN: llc -mtriple=x86_64-apple-darwin < %s -filetype=obj -regalloc=basic \ ; RUN: llc -mtriple=x86_64-apple-darwin < %s -filetype=obj -regalloc=basic \
; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %s ; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %s
; CHECK: DW_TAG_subprogram ; CHECK: DW_TAG_subprogram
; CHECK: DW_AT_abstract_origin {{.*}} "foo" ; CHECK: DW_AT_abstract_origin {{.*}} "foo"

View File

@ -1,5 +1,5 @@
; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s
; RUN: llc -filetype=obj %s -regalloc=basic -o - | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -filetype=obj %s -regalloc=basic -o - | llvm-dwarfdump -v -debug-info - | 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 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-darwin10.0.0" target triple = "x86_64-apple-darwin10.0.0"
; Test that the type for the formal parameter "var" makes it into the debug info. ; Test that the type for the formal parameter "var" makes it into the debug info.

View File

@ -1,5 +1,5 @@
; RUN: llc < %s | FileCheck %s --check-prefix=ASM ; RUN: llc < %s | FileCheck %s --check-prefix=ASM
; RUN: llc < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF ; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF
; Values in registers should be clobbered by calls, which use a regmask instead ; Values in registers should be clobbered by calls, which use a regmask instead
; of individual register def operands. ; of individual register def operands.

View File

@ -1,5 +1,5 @@
; RUN: llc -mtriple x86_64-apple-darwin -filetype=obj -o %t.o < %s ; RUN: llc -mtriple x86_64-apple-darwin -filetype=obj -o %t.o < %s
; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s
; Generated from llvm/tools/clang/test/CodeGenObjC/debug-info-blocks.m ; Generated from llvm/tools/clang/test/CodeGenObjC/debug-info-blocks.m
; rdar://problem/9279956 ; rdar://problem/9279956

View File

@ -4,7 +4,7 @@ source_filename = "test/DebugInfo/X86/debug-info-packed-struct.ll"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-darwin" target triple = "x86_64-apple-darwin"
; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s ; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s
; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s ; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s
; REQUIRES: object-emission ; REQUIRES: object-emission
; // --------------------------------------------------------------------- ; // ---------------------------------------------------------------------

View File

@ -1,9 +1,9 @@
; RUN: llc %s -o %t -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu -dwarf-version=4 ; RUN: llc %s -o %t -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu -dwarf-version=4
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s -check-prefix=PRESENT ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s -check-prefix=PRESENT
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s -check-prefix=ABSENT ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s -check-prefix=ABSENT
; RUN: llc %s -o %t -filetype=obj -O0 -mtriple=x86_64-apple-darwin -dwarf-version=4 ; RUN: llc %s -o %t -filetype=obj -O0 -mtriple=x86_64-apple-darwin -dwarf-version=4
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s -check-prefix=DARWINP ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s -check-prefix=DARWINP
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s -check-prefix=DARWINA ; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s -check-prefix=DARWINA
; Verify that attributes we do want are PRESENT; ; Verify that attributes we do want are PRESENT;
; verify that attributes we don't want are ABSENT. ; verify that attributes we don't want are ABSENT.
; It's a lot easier to do this in two passes than in one. ; It's a lot easier to do this in two passes than in one.

View File

@ -4,7 +4,7 @@
; for the stack location directly instead of generating a register+offset indirection. ; for the stack location directly instead of generating a register+offset indirection.
; RUN: llc -O2 -filetype=obj -disable-post-ra -mtriple=x86_64-unknown-linux-gnu < %s \ ; RUN: llc -O2 -filetype=obj -disable-post-ra -mtriple=x86_64-unknown-linux-gnu < %s \
; RUN: | llvm-dwarfdump - | FileCheck %s ; RUN: | llvm-dwarfdump -v - | FileCheck %s
; ;
; int data = 17; ; int data = 17;
; int sum = 0; ; int sum = 0;

View File

@ -1,5 +1,5 @@
; RUN: llc %s -filetype=obj -O0 -mtriple=i386-unknown-linux-gnu -dwarf-version=4 -o %t ; RUN: llc %s -filetype=obj -O0 -mtriple=i386-unknown-linux-gnu -dwarf-version=4 -o %t
; RUN: llvm-dwarfdump %t | FileCheck %s ; RUN: llvm-dwarfdump -v %t | FileCheck %s
; From the code: ; From the code:

View File

@ -1,4 +1,4 @@
; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s
; CHECK-LABEL: .debug_info contents: ; CHECK-LABEL: .debug_info contents:

View File

@ -1,8 +1,8 @@
; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -dwarf-version 4 \ ; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -dwarf-version 4 \
; RUN: -o - < %s | llvm-dwarfdump - --debug-info \ ; RUN: -o - < %s | llvm-dwarfdump -v - --debug-info \
; RUN: | FileCheck %s -check-prefixes=CHECK,DWARF4 ; RUN: | FileCheck %s -check-prefixes=CHECK,DWARF4
; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -dwarf-version 5 \ ; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -dwarf-version 5 \
; RUN: -o - < %s | llvm-dwarfdump - --debug-info \ ; RUN: -o - < %s | llvm-dwarfdump -v - --debug-info \
; RUN: | FileCheck %s -check-prefixes=CHECK,DWARF5 ; RUN: | FileCheck %s -check-prefixes=CHECK,DWARF5
; Check that we can omit default array lower-bounds. ; Check that we can omit default array lower-bounds.

View File

@ -1,4 +1,4 @@
; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -o - < %s | llvm-dwarfdump -debug-info - | FileCheck %s ; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -o - < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s
; PR33157. Don't crash on duplicate dbg.declare. ; PR33157. Don't crash on duplicate dbg.declare.
; CHECK: DW_TAG_formal_parameter ; CHECK: DW_TAG_formal_parameter
; CHECK: DW_AT_location [DW_FORM_exprloc] ; CHECK: DW_AT_location [DW_FORM_exprloc]

View File

@ -1,8 +1,8 @@
; Test dwarf codegen of DW_OP_minus. ; Test dwarf codegen of DW_OP_minus.
; RUN: llc -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s ; RUN: llc -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s
; RUN: llc -dwarf-version=2 -filetype=obj < %s | llvm-dwarfdump - \ ; RUN: llc -dwarf-version=2 -filetype=obj < %s | llvm-dwarfdump -v - \
; RUN: | FileCheck %s --check-prefix=DWARF2 ; RUN: | FileCheck %s --check-prefix=DWARF2
; RUN: llc -dwarf-version=3 -filetype=obj < %s | llvm-dwarfdump - \ ; RUN: llc -dwarf-version=3 -filetype=obj < %s | llvm-dwarfdump -v - \
; RUN: | FileCheck %s --check-prefix=DWARF2 ; RUN: | FileCheck %s --check-prefix=DWARF2
; This was derived manually from: ; This was derived manually from:

Some files were not shown because too many files have changed in this diff Show More