mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
9982d6f7ee
This commit introduces functionality that's used to serialize machine operands. Only the physical register operands are serialized by this commit. Reviewers: Duncan P. N. Exon Smith Differential Revision: http://reviews.llvm.org/D10525 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240425 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
449 B
YAML
23 lines
449 B
YAML
# RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
|
|
# This test ensures that the MIR parser parses X86 registers correctly.
|
|
|
|
--- |
|
|
|
|
define i32 @foo() {
|
|
entry:
|
|
ret i32 0
|
|
}
|
|
|
|
...
|
|
---
|
|
# CHECK: name: foo
|
|
name: foo
|
|
body:
|
|
- name: entry
|
|
instructions:
|
|
# CHECK: - '%eax = MOV32r0
|
|
# CHECK-NEXT: - 'RETQ %eax
|
|
- '%eax = MOV32r0'
|
|
- 'RETQ %eax'
|
|
...
|