summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/rsp/vmov.h
blob: 59e02e8b11856baa527b354703b4c08462e905de (plain) (blame)
1
2
3
4
5
6
7
8
9
// license:BSD-3-Clause
// copyright-holders:Tyler J. Stachecki,Ryan Holtz

inline rsp_vec_t vec_vmov(uint32_t src, uint32_t e, uint32_t dest, uint32_t de)
{
	// Get the element from VT and write out the upper part of the result.
	m_v[dest].s[de & 0x7] = m_v[src].s[e & 0x7];
	return vec_load_unshuffled_operand(m_v[dest].s);
}