Fix mapping of @llvm.arm.ssat/usat intrinsics to ssat/usat instructions for Thumb2
authorWeiming Zhao <weimingz@codeaurora.org>
Sun, 20 Dec 2015 06:41:44 +0000 (06:41 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Sun, 20 Dec 2015 06:41:44 +0000 (06:41 +0000)
commit116cc72ed46500eab12fa8e0833d9bb194fcdc2b
treeca19389c04866994b75b731bcb1a25f915e8da97
parentcfbaf11a0d56eb76a83ffb4ae334a37a49ea2776
Fix mapping of @llvm.arm.ssat/usat intrinsics to ssat/usat instructions for Thumb2

Summary:
r250697 fixed the mapping for ARM mode. We have to do the same for Thumb2 otherwise the same llvm.arm.ssat() will generate different saturating amount for ARM and Thumb.

r250697: http://reviews.llvm.org/rL250697

Reviewers: rmaprath

Subscribers: aemerson, llvm-commits, rengolin

Differential Revision: http://reviews.llvm.org/D15653

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256115 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb2.td
test/CodeGen/ARM/sat-arith.ll
test/CodeGen/ARM/ssat-lower.ll
test/CodeGen/ARM/ssat-upper.ll
test/CodeGen/ARM/usat-lower.ll
test/CodeGen/ARM/usat-upper.ll