diff options
Diffstat (limited to 'llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir')
-rw-r--r-- | llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir b/llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir index 8c9bce4044b..75d0f8a39c1 100644 --- a/llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir +++ b/llvm/test/CodeGen/MIR/X86/fixed-stack-memory-operands.mir @@ -26,16 +26,14 @@ fixedStack: - { id: 0, offset: 0, size: 4, alignment: 16, isImmutable: true } stack: - { id: 0, name: b, offset: -8, size: 4, alignment: 4 } -body: - - id: 0 - name: entry - instructions: - - 'frame-setup PUSH32r undef %eax, implicit-def %esp, implicit %esp' - - CFI_INSTRUCTION .cfi_def_cfa_offset 8 -# CHECK: name: test -# CHECK: %eax = MOV32rm %esp, 1, _, 8, _ :: (load 4 from %fixed-stack.0, align 16) - - '%eax = MOV32rm %esp, 1, _, 8, _ :: (load 4 from %fixed-stack.0, align 16)' - - 'MOV32mr %esp, 1, _, 0, _, %eax :: (store 4 into %ir.b)' - - '%edx = POP32r implicit-def %esp, implicit %esp' - - 'RETL %eax' +body: | + bb.0.entry: + frame-setup PUSH32r undef %eax, implicit-def %esp, implicit %esp + CFI_INSTRUCTION .cfi_def_cfa_offset 8 + ; CHECK: name: test + ; CHECK: %eax = MOV32rm %esp, 1, _, 8, _ :: (load 4 from %fixed-stack.0, align 16) + %eax = MOV32rm %esp, 1, _, 8, _ :: (load 4 from %fixed-stack.0, align 16) + MOV32mr %esp, 1, _, 0, _, %eax :: (store 4 into %ir.b) + %edx = POP32r implicit-def %esp, implicit %esp + RETL %eax ... |