[Builtins] ARM: Fix msr assembly instruction use for Thumb2.
authorManoj Gupta <manojgupta@google.com>
Wed, 27 Sep 2017 09:29:57 +0000 (09:29 +0000)
committerManoj Gupta <manojgupta@google.com>
Wed, 27 Sep 2017 09:29:57 +0000 (09:29 +0000)
commit9c277321e3dcc9fe979e2407320a902a2b7cf513
treeef331f46ae9845d732a49c7ef4199b68865c9a55
parentaaf54714296a93334bd95d4b609a5176a8308f3b
[Builtins] ARM: Fix msr assembly instruction use for Thumb2.

Summary:
MSR instruction in Thumb2 does not support immediate operand.
Fix this by moving the condition for V7-M to Thumb2 since V7-M support
Thumb2 only. With this change, aeabi_cfcmp.s and aeabi_cdcmp.S files can
be assembled in Thumb2 mode. (This is split out from the review D38227).

Reviewers: compnerd, peter.smith, srhines, weimingz, rengolin, kristof.beyls

Reviewed By: compnerd

Subscribers: aemerson, javed.absar, llvm-commits

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

llvm-svn: 314284
compiler-rt/lib/builtins/arm/aeabi_cdcmp.S
compiler-rt/lib/builtins/arm/aeabi_cfcmp.S