void set_VSR_element(el_reg_t* el, int gpr, int elt, int width) {
check_num_elements(elt, width);
switch (width) {
- case 64: VSR_regfile[gpr].dwords[elt] = el->dwords[0];
+ case 64: VSR_regfile[gpr].dwords[1-elt] = el->dwords[0];
case 32: VSR_regfile[gpr].words[3-elt] = el->words[0];
case 16: VSR_regfile[gpr].hwords[7-elt] = el->hwords[0];
case 8 : VSR_regfile[gpr].bytes[15-elt] = el->bytes[0];
}
```
-For VSX Registers one key difference is that the overlay of different element
+For VSR Registers one key difference is that the overlay of different element
widths is clearly a *bounded static quantity*, whereas for Simple-V the
elements are
unrestrained and permitted to flow into *successive underlying Scalar registers*.