Skip to content

Commit b0cc777

Browse files
author
Amirhossein Pashaeehir
committed
Make the tests more restrict
1 parent 62f3d02 commit b0cc777

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

llvm/test/DWARFCFIChecker/X86/empty-section.s

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# RUN: llvm-mc %s --validate-cfi --filetype=null 2>&1
1+
# RUN: llvm-mc %s --validate-cfi --filetype=null 2>&1 \
2+
# RUN: | FileCheck %s --allow-empty
3+
# CHECK-NOT: warning:
24
.text
35
.globl f
46
.type f, @function

llvm/test/DWARFCFIChecker/X86/single-func.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# RUN: llvm-mc %s --validate-cfi --filetype=null
1+
# RUN: llvm-mc %s --validate-cfi --filetype=null 2>&1 \
2+
# RUN: | FileCheck %s
23
.text
34
.globl f
45
.type f,@function

llvm/test/DWARFCFIChecker/X86/spill-two-reg.s

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# RUN: llvm-mc %s --validate-cfi --filetype=null
2+
# TODO: Should check no warnings are emitted but for now, the tool is naive and emiting warnings for evey change.
23
.text
34
.type _start,@function
45
.globl _start
@@ -10,28 +11,34 @@ _start:
1011
.cfi_same_value %rsi
1112

1213
pushq %rbp
14+
# CHECK: warning: unknown change happened to register RBP unwinding rule structure
1315
.cfi_adjust_cfa_offset 8
1416
.cfi_offset %rbp, -16
1517

1618
movq %rsp, %rbp
1719

1820
pushq %rdi
21+
# CHECK: warning: unknown change happened to register RDI unwinding rule structure
1922
.cfi_adjust_cfa_offset 8
2023
.cfi_rel_offset %rdi, 0
2124

2225
pushq %rsi
26+
# CHECK: warning: unknown change happened to register RSI unwinding rule structure
2327
.cfi_adjust_cfa_offset 8
2428
.cfi_rel_offset %rsi, 0
2529

2630
popq %rsi
31+
# CHECK: warning: unknown change happened to register RSI unwinding rule structure
2732
.cfi_adjust_cfa_offset -8
2833
.cfi_same_value %rsi
2934

3035
popq %rdi
36+
# CHECK: warning: unknown change happened to register RDI unwinding rule structure
3137
.cfi_adjust_cfa_offset -8
3238
.cfi_same_value %rdi
3339

3440
popq %rbp
41+
# CHECK: warning: unknown change happened to register RBP unwinding rule structure
3542
.cfi_adjust_cfa_offset -8
3643
.cfi_same_value %rbp
3744

0 commit comments

Comments
 (0)