view test/CodeGen/MIR/X86/cfi-def-cfa-offset.mir @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 1172e4bd9c6f
children
line wrap: on
line source

# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
# This test ensures that the MIR parser parses the cfi offset operands
# correctly.

--- |

  define void @test() {
  entry:
    %tmp = alloca [4168 x i8], align 4
    ret void
  }

...
---
name:            test
tracksRegLiveness: true
frameInfo:
  stackSize:       4040
stack:
  - { id: 0, name: tmp, offset: -4176, size: 4168, alignment: 4 }
body: |
  bb.0.entry:
    %rsp = SUB64ri32 %rsp, 4040, implicit-def dead %eflags
    ; CHECK: CFI_INSTRUCTION def_cfa_offset 4048
    CFI_INSTRUCTION def_cfa_offset 4048
    %rsp = ADD64ri32 %rsp, 4040, implicit-def dead %eflags
    RETQ
...