[PATCH] D68976: [ARM] Add qadd lowering from a sadd_sat

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 15 02:40:38 PDT 2019


dmgreen created this revision.
dmgreen added reviewers: samparker, SjoerdMeijer, efriedma.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: LLVM.

This lowers a sadd_sat to a qadd by treating it as legal. Also adds qsub at the same time.

The qadd instruction sets the q flag, but we already have many cases where we do not model this explicitly.


https://reviews.llvm.org/D68976

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/lib/Target/ARM/ARMInstrInfo.td
  llvm/lib/Target/ARM/ARMInstrThumb2.td
  llvm/test/CodeGen/ARM/sadd_sat.ll
  llvm/test/CodeGen/ARM/sadd_sat_plus.ll
  llvm/test/CodeGen/ARM/ssub_sat.ll
  llvm/test/CodeGen/ARM/ssub_sat_plus.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68976.224977.patch
Type: text/x-patch
Size: 21999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191015/40bac93f/attachment-0001.bin>


More information about the llvm-commits mailing list