llvm.org GIT mirror llvm / ebd090b
[AVR] Re-enable expansion of ADDE/ADDC/SUBE/SUBC in ISel This was disabled in r333748, which broke four tests. In the future, these need to be updated to UADDO/ADDCARRY or USUBO/SUBCARRY. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338212 91177308-0d34-0410-b5e6-96231b3b80d8 Dylan McKay 2 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6161 }
6262
6363 setTruncStoreAction(MVT::i16, MVT::i8, Expand);
64
65 for (MVT VT : MVT::integer_valuetypes()) {
66 setOperationAction(ISD::ADDC, VT, Legal);
67 setOperationAction(ISD::SUBC, VT, Legal);
68 setOperationAction(ISD::ADDE, VT, Legal);
69 setOperationAction(ISD::SUBE, VT, Legal);
70 }
6471
6572 // sub (x, imm) gets canonicalized to add (x, -imm), so for illegal types
6673 // revert into a sub since we don't have an add with immediate instruction.