(ty: Type, val: DataValue)
| 1616 | } |
| 1617 | |
| 1618 | fn splat(ty: Type, val: DataValue) -> ValueResult<DataValue> { |
| 1619 | let mut new_vector = SimdVec::new(); |
| 1620 | for _ in 0..ty.lane_count() { |
| 1621 | new_vector.push(val.clone()); |
| 1622 | } |
| 1623 | vectorizelanes(&new_vector, ty) |
| 1624 | } |
| 1625 | |
| 1626 | // Prepares the shift amount for a shift/rotate operation. |
| 1627 | // The shift amount must be the same type and have the same number of lanes as the vector. |
no test coverage detected