xref: /aosp_15_r20/external/llvm/test/CodeGen/MIR/X86/expected-offset-after-cfi-operand.mir (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker--- |
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker  define void @test() {
6*9880d681SAndroid Build Coastguard Worker  entry:
7*9880d681SAndroid Build Coastguard Worker    %tmp = alloca [4168 x i8], align 4
8*9880d681SAndroid Build Coastguard Worker    ret void
9*9880d681SAndroid Build Coastguard Worker  }
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker...
12*9880d681SAndroid Build Coastguard Worker---
13*9880d681SAndroid Build Coastguard Workername:            test
14*9880d681SAndroid Build Coastguard WorkertracksRegLiveness: true
15*9880d681SAndroid Build Coastguard WorkerframeInfo:
16*9880d681SAndroid Build Coastguard Worker  stackSize:       4040
17*9880d681SAndroid Build Coastguard Workerstack:
18*9880d681SAndroid Build Coastguard Worker  - { id: 0, name: tmp, offset: -4176, size: 4168, alignment: 4 }
19*9880d681SAndroid Build Coastguard Workerbody: |
20*9880d681SAndroid Build Coastguard Worker  bb.0.entry:
21*9880d681SAndroid Build Coastguard Worker    %rsp = SUB64ri32 %rsp, 4040, implicit-def dead %eflags
22*9880d681SAndroid Build Coastguard Worker    ; CHECK: [[@LINE+1]]:41: expected a cfi offset
23*9880d681SAndroid Build Coastguard Worker    CFI_INSTRUCTION .cfi_def_cfa_offset _
24*9880d681SAndroid Build Coastguard Worker    %rsp = ADD64ri32 %rsp, 4040, implicit-def dead %eflags
25*9880d681SAndroid Build Coastguard Worker    RETQ
26*9880d681SAndroid Build Coastguard Worker...
27*9880d681SAndroid Build Coastguard Worker
28