1# RUN: llc -march=x86 -run-pass none -o - %s | FileCheck %s 2# This test ensures that the MIR parser parses stack object machine operands 3# correctly. 4 5--- | 6 7 define i32 @test(i32 %a) { 8 entry: 9 %b = alloca i32 10 %0 = alloca i32 11 store i32 %a, i32* %b 12 store i32 2, i32* %0 13 %c = load i32, i32* %b 14 ret i32 %c 15 } 16 17... 18--- 19name: test 20tracksRegLiveness: true 21registers: 22 - { id: 0, class: gr32 } 23 - { id: 1, class: gr32 } 24frameInfo: 25 maxAlignment: 4 26fixedStack: 27 - { id: 0, offset: 0, size: 4, isImmutable: true, isAliased: false } 28stack: 29 - { id: 0, name: b, size: 4, alignment: 4 } 30 - { id: 1, size: 4, alignment: 4 } 31body: | 32 ; CHECK: bb.0.entry: 33 ; CHECK-NEXT: %0 = MOV32rm %fixed-stack.0, 1, _, 0, _ 34 ; CHECK-NEXT: MOV32mr %stack.0.b, 1, _, 0, _, %0 35 ; CHECK-NEXT: MOV32mi %stack.1, 1, _, 0, _, 2 36 ; CHECK-NEXT: %1 = MOV32rm %stack.0.b, 1, _, 0, _ 37 bb.0.entry: 38 %0 = MOV32rm %fixed-stack.0, 1, _, 0, _ 39 MOV32mr %stack.0.b, 1, _, 0, _, %0 40 MOV32mi %stack.1, 1, _, 0, _, 2 41 %1 = MOV32rm %stack.0, 1, _, 0, _ 42 %eax = COPY %1 43 RETL %eax 44... 45