brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · b36aa54 Raw
47 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        .type   _start,@function6        .globl  _start7        .hidden _start8_start:9        .cfi_startproc10 11        .cfi_same_value %rdi12        .cfi_same_value %rsi13 14        pushq   %rbp15        .cfi_adjust_cfa_offset 816        .cfi_offset %rbp, -1617 18        movq    %rsp, %rbp19 20        pushq   %rdi21        .cfi_adjust_cfa_offset 822        .cfi_rel_offset %rdi, 023 24        pushq   %rsi25        .cfi_adjust_cfa_offset 826        .cfi_rel_offset %rsi, 027        28        popq    %rsi29        .cfi_adjust_cfa_offset -830        .cfi_same_value %rdi31 32        popq    %rdi33        # CHECK: error: changed register RDI, that register RDI's unwinding rule uses, but there is no CFI directives about it34        .cfi_adjust_cfa_offset -835        .cfi_same_value %rsi36 37        popq    %rbp38        .cfi_adjust_cfa_offset -839        .cfi_same_value %rbp40 41        retq42 43        .cfi_endproc44.Ltmp0:45        .size   _start, .Ltmp0-_start46        .text47