Commit b7dd2e4
committed
x86: Fix ix86_expand_vector_init for V*TImode [PR100887]
We have vec_initv4tiv2ti and vec_initv2titi patterns which call
ix86_expand_vector_init and assume it works for those modes. For the
case of construction from two half-sized vectors, the code assumes it
will always succeed, but we have only insn patterns with SImode and DImode
element types. QImode and HImode element types are already handled
by performing it with same sized vectors with SImode elements and the
following patch extends that to V*TImode vectors.
2021-06-04 Jakub Jelinek <[email protected]>
PR target/100887
* config/i386/i386-expand.c (ix86_expand_vector_init): Handle
concatenation from half-sized modes with TImode elements.
* gcc.target/i386/pr100887.c: New test.1 parent 3011f10 commit b7dd2e4
File tree
2 files changed
+20
-3
lines changed- gcc
- config/i386
- testsuite/gcc.target/i386
2 files changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14610 | 14610 | | |
14611 | 14611 | | |
14612 | 14612 | | |
14613 | | - | |
| 14613 | + | |
| 14614 | + | |
| 14615 | + | |
14614 | 14616 | | |
14615 | 14617 | | |
14616 | | - | |
14617 | | - | |
| 14618 | + | |
| 14619 | + | |
| 14620 | + | |
| 14621 | + | |
14618 | 14622 | | |
14619 | 14623 | | |
14620 | 14624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments