35 lines · plain
1# RUN: llc -mtriple=x86_64 -run-pass none -o - %s | FileCheck %s2# This test ensures that the MIR parser parses fixed stack objects correctly.3 4--- |5 6 define i32 @test(i32 %a) #0 {7 entry:8 %b = alloca i329 store i32 %a, ptr %b10 %c = load i32, ptr %b11 ret i32 %c12 }13 14 attributes #0 = { "frame-pointer"="none" }15 16...17---18name: test19frameInfo:20 maxAlignment: 421# CHECK: fixedStack:22# CHECK-NEXT: - { id: 0, type: spill-slot, offset: 0, size: 4, alignment: 4, stack-id: default,23# CHECK-NEXT: callee-saved-register: '', callee-saved-restored: true, debug-info-variable: '',24# CHECK-NEXT: debug-info-expression: '', debug-info-location: '' }25fixedStack:26 - { id: 0, type: spill-slot, offset: 0, size: 4, alignment: 4 }27stack:28 - { id: 0, offset: -12, size: 4, alignment: 4 }29body: |30 bb.0.entry:31 MOV32mr $rsp, 1, _, -4, _, $edi32 $eax = COPY $edi33 RET64 $eax34...35