These nodes need legalization for 3-element vectors. This commit
handles the legalization and adds tests for zext and sext.
This fixes PR30614.
Differential D25268
Handle *_EXTEND_VECTOR_INREG during Integer Legalization pirama on Oct 5 2016, 12:29 AM. Authored by
Details These nodes need legalization for 3-element vectors. This commit This fixes PR30614.
Diff Detail
Event Timeline
Comment Actions Removed direct reuse of promoted operand because it may not be extended properly. Update test commands and generate checks using update_llc_test_checks.py. Comment Actions That's some pretty ugly codegen, but at least it doesn't crash any more! One minor request but otherwise LGTM.
Comment Actions Thanks for the review Simon. I've added the x86_64 test and committed this in r283496. |
Are you sure we're correctly handling the extension in this case? Promotion tends to leave the upper bits as garbage - won't we still need to perform a SIGN_EXTEND_INREG/ZERO_EXTEND_INREG.