1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=x86 -run-pass none -o - %s | FileCheck %s
3 # This test ensures that the MIR parser parses stack object machine operands
8 define i32 @test(i32 %a) {
14 %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-LABEL: name: test
35 ; CHECK: [[MOV32rm:%[0-9]+]]:gr32 = MOV32rm %fixed-stack.0, 1, $noreg, 0, $noreg
36 ; CHECK: MOV32mr %stack.0.b, 1, $noreg, 0, $noreg, [[MOV32rm]]
37 ; CHECK: MOV32mi %stack.1, 1, $noreg, 0, $noreg, 2
38 ; CHECK: [[MOV32rm1:%[0-9]+]]:gr32 = MOV32rm %stack.0.b, 1, $noreg, 0, $noreg
39 ; CHECK: $eax = COPY [[MOV32rm1]]
41 %0 = MOV32rm %fixed-stack.0, 1, _, 0, _
42 MOV32mr %stack.0.b, 1, _, 0, _, %0
43 MOV32mi %stack.1, 1, _, 0, _, 2
44 %1 = MOV32rm %stack.0, 1, _, 0, _