mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
CodeGen: Default overflow operations to expand so we don't have to assume targets are lying
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: ab Differential Revision: http://reviews.llvm.org/D9265 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -804,6 +804,14 @@ void TargetLoweringBase::initActions() {
|
||||
setOperationAction(ISD::FMAXNUM, VT, Expand);
|
||||
setOperationAction(ISD::FMAD, VT, Expand);
|
||||
|
||||
// Overflow operations default to expand
|
||||
setOperationAction(ISD::SADDO, VT, Expand);
|
||||
setOperationAction(ISD::SSUBO, VT, Expand);
|
||||
setOperationAction(ISD::UADDO, VT, Expand);
|
||||
setOperationAction(ISD::USUBO, VT, Expand);
|
||||
setOperationAction(ISD::SMULO, VT, Expand);
|
||||
setOperationAction(ISD::UMULO, VT, Expand);
|
||||
|
||||
// These library functions default to expand.
|
||||
setOperationAction(ISD::FROUND, VT, Expand);
|
||||
|
||||
|
Reference in New Issue
Block a user