Files
clang-p2996/llvm/test/CodeGen/X86/verifier-phi.mir
Puyan Lotfi 43e94b15ea Followup on Proposal to move MIR physical register namespace to '$' sigil.
Discussed here:

http://lists.llvm.org/pipermail/llvm-dev/2018-January/120320.html

In preparation for adding support for named vregs we are changing the sigil for
physical registers in MIR to '$' from '%'. This will prevent name clashes of
named physical register with named vregs.

llvm-svn: 323922
2018-01-31 22:04:26 +00:00

35 lines
733 B
YAML

# RUN: llc -o - %s -mtriple=x86_64-- -verify-machineinstrs -run-pass=none | FileCheck %s
# This should cleanly pass the machine verifier
---
# CHECK-LABEL: name: func0
# CHECK: %0:gr32 = PHI undef %1:gr32, %bb.0, undef %1:gr32, %bb.1
name: func0
tracksRegLiveness: true
body: |
bb.0:
JE_1 %bb.1, implicit undef $eflags
JMP_1 %bb.2
bb.1:
bb.2:
%0 : gr32 = PHI undef %1 : gr32, %bb.0, undef %1 : gr32, %bb.1
...
---
# CHECK-LABEL: name: func1
# CHECK: %2:gr32 = PHI %0, %bb.0, %1, %bb.1
name: func1
tracksRegLiveness: true
body: |
bb.0:
%0 : gr32 = IMPLICIT_DEF
JE_1 %bb.1, implicit undef $eflags
JMP_1 %bb.2
bb.1:
%1 : gr32 = IMPLICIT_DEF
bb.2:
%2 : gr32 = PHI %0, %bb.0, %1, %bb.1
...