brintos

brintos / llvm-project-archived public Read only

0
0
Text · 822 B · 5124fd9 Raw
28 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        pushq %rax10        # CHECK: error: modified CFA register RSP but not changed CFA rule11        pushq %rax12        .cfi_def_cfa %rbp, -2413        pushq %rax14        .cfi_endproc15 16        .cfi_startproc17        pushq %rax18        # CHECK: error: modified CFA register RSP but not changed CFA rule19        pushq %rax20        .cfi_def_cfa %rbp, -2421        pushq %rax22        .cfi_endproc23 24        retq25 26.Lfunc_end0:27        .size   f, .Lfunc_end0-f28