1 # RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
2 # This test ensures that the MIR parser parses variable sized stack objects
7 define i32 @test(i32 %a) {
11 %y = alloca i32, i32 %a
14 %c = load i32, i32* %b
27 # CHECK-NEXT: - { id: 0, offset: -20, size: 4, alignment: 4 }
28 # CHECK-NEXT: - { id: 1, offset: -32, size: 8, alignment: 8 }
29 # CHECK-NEXT: - { id: 2, type: variable-sized, offset: -32, alignment: 1 }
31 - { id: 0, offset: -20, size: 4, alignment: 4 }
32 - { id: 1, offset: -32, size: 8, alignment: 8 }
33 - { id: 2, type: variable-sized, offset: -32, alignment: 1 }
38 - 'MOV32mr %rsp, 1, _, -4, _, %edi'
39 - 'MOV64mi32 %rsp, 1, _, -16, _, 2'
40 - '%eax = MOV32rm %rsp, 1, _, -4, _'