Added support for sw (had to add RT_out to EX_MEM). Added several test cases.