[ARM] Add support for ORR and ORN instruction substitutions
authorJohn Brawn <john.brawn@arm.com>
Fri, 5 May 2017 11:31:25 +0000 (11:31 +0000)
committerJohn Brawn <john.brawn@arm.com>
Fri, 5 May 2017 11:31:25 +0000 (11:31 +0000)
commit1b74f8c51f7fb44d47336f7431b427326230d47e
tree6101f3705a6dce643242bf473df588575203013c
parent5c913e9973f40d5f49c126d873eceaef761aa169
[ARM] Add support for ORR and ORN instruction substitutions

Recently support was added for substituting one intruction for another by
negating or inverting the immediate, but ORR and ORN were missed so this patch
adds them.

This one is slightly different to the others in that ORN only exists in thumb,
so we only do the substitution in thumb.

Differential Revision: https://reviews.llvm.org/D32534

llvm-svn: 302224
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/test/MC/ARM/negative-immediates-fail.s
llvm/test/MC/ARM/negative-immediates-thumb1-fail.s
llvm/test/MC/ARM/negative-immediates.s