brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 52eb6f8 Raw
32 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: .section4.pushsection A5f: 6.cfi_startproc7## TODO: Remove this line when the initial frame directives set the callee saved registers8.cfi_undefined %flags9addq $10, %rbp10# CHECK: error: changed register RBP, that register RBP's unwinding rule uses, but there is no CFI directives about it11nop12.cfi_undefined %rbp13 14.pushsection B15g: 16.cfi_startproc17## TODO: Remove this line when the initial frame directives set the callee saved registers18.cfi_undefined %flags19addq $10, %rbp20# CHECK: error: changed register RBP, that register RBP's unwinding rule uses, but there is no CFI directives about it21nop22.cfi_undefined %rsi23ret24.cfi_endproc25.popsection26 27addq $10, %rsi28# CHECK: error: changed register RSI, that register RSI's unwinding rule uses, but there is no CFI directives about it29ret30.cfi_endproc31.popsection32