File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
llvm/test/DWARFCFIChecker/X86 Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments