brintos

brintos / llvm-project-archived public Read only

0
0
Text · 881 B · e9ae5a2 Raw
26 lines · plain
1# RUN: not llvm-mc -triple x86_64-unknown-unknown %s --validate-cfi --filetype=null 2>&1 | FileCheck %s2# 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        ## TODO: Remove these lines when the initial frame directives set the callee saved registers11        .cfi_undefined %rax12        .cfi_undefined %flags13 14        .cfi_val_offset %rbp, -8 15 16        pushq   %rax17        # CHECK: error: modified CFA register RSP but not changed CFA rule18        19        addq    $10, %rax20        # CHECK: error: did not modify CFA register RSP but changed CFA rule21        .cfi_adjust_cfa_offset 822 23.Lfunc_end0:24        .size   f, .Lfunc_end0-f25        .cfi_endproc26