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
Paths
| Differential D15653
Fix mapping of @llvm.arm.ssat/usat intrinsics to ssat/usat instructions for Thumb2 ClosedPublic Authored by weimingz on Dec 18 2015, 1:49 PM.
Details 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
Diff Detail
Event TimelineComment Actions Hi Weiming, Can you update the related out-of-range tests as well? as in http://reviews.llvm.org/rL250697? LGTM otherwise. rmaprath edited edge metadata. Comment ActionsLooks like you've missed usat-lower.ll and usat-upper.ll updates? Please update them before commit. LGTM. This revision is now accepted and ready to land.Dec 19 2015, 5:46 PM
Revision Contents
Diff 43318 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
|