summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb/constants.ll
Commit message (Collapse)AuthorAgeFilesLines
* [ARM] Materialise some boolean values to avoid a branchRoger Ferrer Ibanez2018-02-161-0/+17
| | | | | | | | | | | | | This patch combines some cases of ARMISD::CMOV for integers that arise in comparisons of the form a != b ? x : 0 a == b ? 0 : x and that currently (e.g. in Thumb1) are emitted as branches. Differential Revision: https://reviews.llvm.org/D34515 llvm-svn: 325323
* [Thumb] Fix off-by-one error in r272007James Molloy2016-06-141-0/+8
| | | | | | | | We can only generate immediates up to #510 with a MOV+ADD, not #511, because there's no such instruction as add #256. Found by Oliver Stannard and csmith! llvm-svn: 272665
* [Thumb-1] Add optimized constant materialization for integers [256..512)James Molloy2016-06-071-0/+11
We can materialize these integers using a MOV; ADDi8 pair. llvm-svn: 272007
OpenPOWER on IntegriCloud