- generate subfic instruction for subtracting a value in a GPR from a 16-bit immediate (e.g. x = 64 - y); currently LLVM generates two instructions (load immediate + subtract) for this purpose
- add a unit test to confirm that subfic is used if possible
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Please upload the patch with full context (see http://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface).
test/CodeGen/PowerPC/subtract_from_imm.ll | ||
---|---|---|
3 ↗ | (On Diff #86604) | Please remove this metadata and add -mtriple to the run line (also add a run line for ppc64le). |