Add integer expansion for FLT_ROUNDS_ for targets where i32 is not a legal type.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Why don't we create it with i32 during SDAG building and then legalize the type later during type legalization (i.e. add handling in DAGTypeLegalizer::ExpandIntegerResult)?
Comment Actions
hfinkel, Yes I guess that's probably a better approach. I've updated the patch to add ExpandIntRes_FLT_ROUNDS to do this.
Comment Actions
LGTM.
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | ||
---|---|---|
2029 | Please add a comment here that you're sign-extending the high part because the value might be -1. |
Comment Actions
Added a comment, and re-add the msp430 test from the first patch.
If this is acceptable, is it okay for someone to commit this on my behalf.
Please add a comment here that you're sign-extending the high part because the value might be -1.