Commit d5cfde7
committed
[X86] Fix arithmetic error in extractVector
The computation of the element count for the result VT in extractVector
is incorrect when vector width does not divide VT.getSizeInBits(), which
can occur when the source vector element count is not a power of two,
e.g. extracting a vectorWidth 256b vector from a 384b source.
This rewrites the expression so the division is exact given that
vectorWidth is a multiple of the source element size.1 parent be51ef4 commit d5cfde7
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4066 | 4066 | | |
4067 | 4067 | | |
4068 | 4068 | | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
4069 | 4073 | | |
4070 | 4074 | | |
4071 | 4075 | | |
| |||
0 commit comments