mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242204 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
591 B
YAML
26 lines
591 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 basic block liveins correctly.
|
|
|
|
--- |
|
|
|
|
define i32 @test(i32 %a, i32 %b) {
|
|
body:
|
|
%c = add i32 %a, %b
|
|
ret i32 %c
|
|
}
|
|
|
|
...
|
|
---
|
|
name: test
|
|
body:
|
|
# CHECK: name: body
|
|
# CHECK: liveins: [ '%edi', '%esi' ]
|
|
# CHECK-NEXT: instructions:
|
|
- id: 0
|
|
name: body
|
|
liveins: [ '%edi', '%esi' ]
|
|
instructions:
|
|
- '%eax = LEA64_32r killed %rdi, 1, killed %rsi, 0, _'
|
|
- 'RETQ %eax'
|
|
...
|