HomePhabricator

[ARM] Add support for mrrc/mrrc2 intrinsics.

Authored by rs on Jun 16 2016, 5:52 PM.

Description

[ARM] Add support for mrrc/mrrc2 intrinsics.

Reapplying patch as it was reverted when it was first
committed because of an assertion failure when the
mrrc2 intrinsic was called in ARM mode. The failure
was happening because the instruction was being built
in ARMISelDAGToDAG.cpp and the tablegen description for
mrrc2 instruction doesn't allow you to use a predicate.

The ARM architecture manuals do say that mrrc2 in ARM
mode can be predicated with AL in assembly but this has
no effect on the encoding of the instruction as the top
4 bits will always be 1111 not 1110 which is the encoding
for the condition AL.

Differential Revision: http://reviews.llvm.org/D21408

llvm-svn: 272982

Details

Committed
rsJun 16 2016, 5:52 PM
Differential Revision
D21408: [ARM] MRRC2 shouldn't allow predicates
Parents
rGa32448749396: [RS4GC] Pass CallSite by value instead of const ref; NFC
Branches
Unknown
Tags
Unknown