# vec2/3/4
elif encmode.startswith("vec"):
subvl = decode_subvl(encmode[3:])
- # elwidth
- elif encmode.startswith("ew="):
+ # elwidth (both src and dest, like mask)
+ elif encmode.startswith("w="):
+ destwid = decode_elwidth(encmode[2:])
+ srcwid = decode_elwidth(encmode[2:])
+ # just dest width
+ elif encmode.startswith("dw="):
destwid = decode_elwidth(encmode[3:])
+ # just src width
elif encmode.startswith("sw="):
srcwid = decode_elwidth(encmode[3:])
# element-strided LD/ST
def test_11_elwidth(self):
expected = [
- "sv.add./ew=8 *3,*7,*11",
- "sv.add./ew=16 *3,*7,*11",
- "sv.add./ew=32 *3,*7,*11",
+ "sv.add./dw=8 *3,*7,*11",
+ "sv.add./dw=16 *3,*7,*11",
+ "sv.add./dw=32 *3,*7,*11",
"sv.add./sw=8 *3,*7,*11",
"sv.add./sw=16 *3,*7,*11",
"sv.add./sw=32 *3,*7,*11",
- "sv.add./ew=8/sw=16 *3,*7,*11",
- "sv.add./ew=16/sw=32 *3,*7,*11",
- "sv.add./ew=32/sw=8 *3,*7,*11",
+ "sv.add./dw=8/sw=16 *3,*7,*11",
+ "sv.add./dw=16/sw=32 *3,*7,*11",
+ "sv.add./dw=32/sw=8 *3,*7,*11",
+ "sv.add./w=32 *3,*7,*11",
+ "sv.add./w=8 *3,*7,*11",
+ "sv.add./w=16 *3,*7,*11",
]
self._do_tst(expected)