1 # The test verifies that correct DWARF directives are emitted when
2 # assembly files are instrumented.
4 # RUN: llvm-mc %s -triple=i386-unknown-linux-gnu -asm-instrumentation=address -asan-instrument-assembly | FileCheck %s
6 # CHECK-LABEL: swap_cfa_rbp
8 # CHECK-NOT: .cfi_adjust_cfa_offset 8
9 # CHECK: movl %ebp, %ebp
10 # CHECK: .cfi_remember_state
11 # CHECK: .cfi_def_cfa_register %ebp
13 # CHECK: .cfi_restore_state
14 # CHECK-NOT: .cfi_adjust_cfa_offset -8
19 .type swap_cfa_rbp,@function
20 swap_cfa_rbp: # @swap_cfa_rbp
26 .cfi_def_cfa_register %ebp
35 # CHECK-LABEL: swap_cfa_rsp
37 # CHECK: .cfi_adjust_cfa_offset 4
38 # CHECK: movl %esp, %ebp
39 # CHECK: .cfi_remember_state
40 # CHECK: .cfi_def_cfa_register %ebp
42 # CHECK: .cfi_restore_state
46 .type swap_cfa_rsp,@function
47 swap_cfa_rsp: # @swap_cfa_rsp