mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 12:33:33 +02:00
3307a878a0
Reviewers: Duncan P. N. Exon Smith Differential Revision: http://reviews.llvm.org/D11005 llvm-svn: 241959
29 lines
627 B
YAML
29 lines
627 B
YAML
# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s
|
|
# This test ensures that the MIR parser reports an error when parsing a
|
|
# reference to an undefined virtual register.
|
|
|
|
--- |
|
|
|
|
define i32 @test(i32 %a) {
|
|
entry:
|
|
ret i32 %a
|
|
}
|
|
|
|
...
|
|
---
|
|
name: test
|
|
isSSA: true
|
|
tracksRegLiveness: true
|
|
registers:
|
|
- { id: 0, class: gr32 }
|
|
body:
|
|
- id: 0
|
|
name: entry
|
|
instructions:
|
|
- '%0 = COPY %edi'
|
|
# CHECK: [[@LINE+1]]:22: use of undefined virtual register '%10'
|
|
- '%eax = COPY %10'
|
|
- 'RETQ %eax'
|
|
...
|
|
|