OSDN Git Service

[PPC64] Fix SUBFC8 Defs list
authorKeno Fischer <kfischer@college.harvard.edu>
Wed, 1 Jun 2016 20:31:07 +0000 (20:31 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Wed, 1 Jun 2016 20:31:07 +0000 (20:31 +0000)
commitaec5010b2703cf394363930e129b80ea8df6852e
treea778b55efb49ba896ce81c4d51fb1b1565aa093d
parente81e8039ad03f6b098fd4c175b9fe0a66941bb89
[PPC64] Fix SUBFC8 Defs list

Fix PR27943 "Bad machine code: Using an undefined physical register".
SUBFC8 implicitly defines the CR0 register, but this was omitted in
the instruction definition.

Patch by Jameson Nash <jameson@juliacomputing.com>

Reviewers: hfinkel
Differential Revision: http://reviews.llvm.org/D20802

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271425 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstr64Bit.td
lib/Target/PowerPC/PPCInstrInfo.cpp
test/CodeGen/PowerPC/opt-sub-inst-cr0-live.mir [new file with mode: 0644]