brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 292b66e Raw
35 lines · plain
1# RUN: not llvm-mc -triple x86_64-unknown-unknown %s --validate-cfi --filetype=null 2>&1 | FileCheck %s 2# RUN: llvm-mc -triple x86_64-unknown-unknown %s --filetype=asm 2>&1 | FileCheck %s -check-prefix=ASSEMBLER --implicit-check-not warning: --implicit-check-not error:3# ASSEMBLER: .text4        .text5        .globl  f6        .type   f,@function7f:8        .cfi_startproc9        10        .cfi_undefined %rax11        12        pushq   %rbp13        .cfi_def_cfa_offset 1614        15        movq    %rsp, %rbp16        # CHECK: error: changed register RBP, that register RBP's unwinding rule uses, but there is no CFI directives about it17        .cfi_def_cfa_register %rbp18        19        movl    %edi, -4(%rbp)20        21        movl    -4(%rbp), %eax22        23        addl    $10, %eax24        25        popq    %rbp26        # CHECK: error: changed register RBP, that register RBP's unwinding rule uses, but there is no CFI directives about it27        .cfi_def_cfa %rsp, 828        29        retq30 31.Lfunc_end0:32        .size   f, .Lfunc_end0-f33 34        .cfi_endproc35