1 # RUN: llc -march=x86 -start-after machine-sink -stop-after machine-sink -o /dev/null %s | FileCheck %s
2 # This test ensures that the MIR parser parses stack object machine operands
7 define i32 @test(i32 %a) {
13 %c = load i32, i32* %b
21 tracksRegLiveness: true
23 - { id: 0, class: gr32 }
24 - { id: 1, class: gr32 }
28 - { id: 0, offset: 0, size: 4, isImmutable: true, isAliased: false }
30 - { id: 0, name: b, size: 4, alignment: 4 }
31 - { id: 1, size: 4, alignment: 4 }
34 # CHECK: instructions:
35 # CHECK-NEXT: - '%0 = MOV32rm %fixed-stack.0, 1, _, 0, _'
36 # CHECK-NEXT: - 'MOV32mr %stack.0.b, 1, _, 0, _, %0'
37 # CHECK-NEXT: - 'MOV32mi %stack.1, 1, _, 0, _, 2'
38 # CHECK-NEXT: - '%1 = MOV32rm %stack.0.b, 1, _, 0, _'
42 - '%0 = MOV32rm %fixed-stack.0, 1, _, 0, _'
43 - 'MOV32mr %stack.0.b, 1, _, 0, _, %0'
44 - 'MOV32mi %stack.1, 1, _, 0, _, 2'
45 - '%1 = MOV32rm %stack.0, 1, _, 0, _'