llvm/test/CodeGen/MIR/X86/expected-size-integer-after-memory-operation.mir
Alex Lorenz 3db44ce9a8 MIR Serialization: Initial serialization of the machine memory operands.
Reviewers: Duncan P. N. Exon Smith


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243915 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-03 23:08:19 +00:00

27 lines
566 B
YAML

# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
--- |
define i32 @test(i32* %a) {
entry:
%b = load i32, i32* %a
ret i32 %b
}
...
---
name: test
tracksRegLiveness: true
liveins:
- { reg: '%rdi' }
body:
- id: 0
name: entry
liveins: [ '%rdi' ]
instructions:
# CHECK: [[@LINE+1]]:58: expected the size integer literal after memory operation
- '%eax = MOV32rm killed %rdi, 1, _, 0, _ :: (load from %ir.a)'
- 'RETQ %eax'
...