aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCDisassembler/Disassembler.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-09-02 06:23:54 +0000
committerHal Finkel <hfinkel@anl.gov>2014-09-02 06:23:54 +0000
commit51b3fd1e28a4cbf9fb6fa6453fa6f30134d9288d (patch)
tree239762c592a2123089acbcb9c4ba4825ce739f0c /llvm/lib/MC/MCDisassembler/Disassembler.cpp
parentd1a4ed6a7c333d102ea537a227dc72c6ba90b1df (diff)
downloadllvm-51b3fd1e28a4cbf9fb6fa6453fa6f30134d9288d.zip
llvm-51b3fd1e28a4cbf9fb6fa6453fa6f30134d9288d.tar.gz
llvm-51b3fd1e28a4cbf9fb6fa6453fa6f30134d9288d.tar.bz2
[PowerPC] Guard against illegal selection of add for TargetConstant operands
r208640 was reverted because it caused a self-hosting failure on ppc64. The underlying cause was the formation of ISD::ADD nodes with ISD::TargetConstant operands. Because we have no patterns for 'add' taking 'timm' nodes, these are selected as r+r add instructions (which is a miscompile). Guard against this kind of behavior in the future by making the backend crash should this occur (instead of silently generating invalid output). llvm-svn: 216897
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions