brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 3ef1745 Raw
33 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_same_value %rax11        .cfi_same_value %rbx12        .cfi_same_value %rcx13        .cfi_same_value %rdx14 15        movq $10, %rax16        # CHECK: error: changed register RAX, that register RAX's unwinding rule uses, but there is no CFI directives about it17 18        movq $10, %rbx19        # CHECK: error: changed register RBX, that register RBX's unwinding rule uses, but there is no CFI directives about it20 21        movq $10, %rcx22        # CHECK: error: changed register RCX, that register RCX's unwinding rule uses, but there is no CFI directives about it23 24        movq $10, %rdx25        # CHECK: error: changed register RDX, that register RDX's unwinding rule uses, but there is no CFI directives about it26 27        retq28 29.Lfunc_end0:30        .size   f, .Lfunc_end0-f31 32        .cfi_endproc33