Renato Golin 608cb5def6 [ARM] Support and tests for transform of LDR rt, = to MOV
This change implements the transformation in processInstruction() for the
LDR rt, =expression to MOV rt, expression when the expression can be evaluated
and can fit into the immediate field of the MOV or a MVN.

Across the ARM and Thumb instruction sets there are several cases to consider,
each with a different range of representatble constants.

In ARM we have:
 * Modified immediate (All ARM architectures)
 * MOVW (v6t2 and above)

In Thumb we have:
 * Modified immediate (v6t2, v7m and v8m.mainline)
 * MOVW (v6t2, v7m, v8.mainline and v8m.baseline)
 * Narrow Thumb MOV that can be used in an IT block (non flag-setting)

If the immediate fits any of the available alternatives then we make the transformation.

Fixes 25722.

Patch by Peter Smith.

llvm-svn: 269354
2016-05-12 21:22:42 +00:00
..
2016-04-08 18:15:37 +00:00
2013-10-29 09:47:35 +00:00
2014-11-05 12:40:21 +00:00
2015-11-16 14:05:32 +00:00
2014-06-19 16:35:19 +00:00
2014-01-30 04:46:24 +00:00
2014-01-24 17:20:08 +00:00
2014-01-28 23:13:30 +00:00
2013-09-18 09:46:49 +00:00
2014-04-03 11:29:15 +00:00
2014-01-17 13:53:08 +00:00
2016-04-08 18:15:37 +00:00
2016-04-08 18:15:37 +00:00
2015-04-15 17:28:23 +00:00
2016-04-08 18:15:37 +00:00
2013-06-24 09:11:53 +00:00