1 # RUN: llc -march=x86 -run-pass none -o - %s | FileCheck %s
2 # This test ensures that the MIR parser parses fixed stack memory operands
7 define i32 @test(i32 %a) #0 {
11 %c = load i32, i32* %b
15 attributes #0 = { "no-frame-pointer-elim"="false" }
21 tracksRegLiveness: true
26 - { id: 0, offset: 0, size: 4, alignment: 16, isImmutable: true }
28 - { id: 0, name: b, offset: -8, size: 4, alignment: 4 }
31 frame-setup PUSH32r undef $eax, implicit-def $esp, implicit $esp
32 CFI_INSTRUCTION def_cfa_offset 8
34 ; CHECK: $eax = MOV32rm $esp, 1, $noreg, 8, $noreg :: (load 4 from %fixed-stack.0, align 16)
35 $eax = MOV32rm $esp, 1, _, 8, _ :: (load 4 from %fixed-stack.0, align 16)
36 MOV32mr $esp, 1, _, 0, _, $eax :: (store 4 into %ir.b)
37 $edx = POP32r implicit-def $esp, implicit $esp