This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add support for Cortex-R4/R4F in LLVM
ClosedPublic

Authored by javed.absar on Mar 30 2015, 4:24 AM.

Details

Reviewers
jmolloy
Summary

Currently, llvm (backend) doesn't know cortex-r4, even though it is the default target for armv7r. Using "--target=armv7r-arm-none-eabi" provokes
'cortex-r4' is not a recognized processor for this target (ignoring processor)' by llvm.

This patch adds support for cortex-r4 and, very closely related. r4f.

Diff Detail

Repository
rL LLVM

Event Timeline

javed.absar retitled this revision from to [ARM] Add support for Cortex-R4/R4F in LLVM.
javed.absar updated this object.
javed.absar edited the test plan for this revision. (Show Details)
javed.absar set the repository for this revision to rL LLVM.
javed.absar added a subscriber: Unknown Object (MLST).

Hi Javed,

This looks good, thanks for working on it. I have one part of the tests that I'd like clarification on however.

Cheers,

James

test/CodeGen/ARM/div.ll
9

Why are we expecting non-hardware division in ARM mode, but not in Thumb mode?

jmolloy accepted this revision.Mar 30 2015, 5:11 AM
jmolloy edited edge metadata.

Scratch that, I'm being stupid. HWDIV in ARM and Thumb modes are two different features, and R4 only has the thumb feature.

Approved!

This revision is now accepted and ready to land.Mar 30 2015, 5:11 AM
rengolin closed this revision.Jun 26 2015, 2:54 AM