ZHCUBL2K January 2018 – March 2024
C7000 主机仿真为访问器提供以下支持:
int2 my_new_vec = int2(my_int8_vec.x(), my_int8_vec.z()); // instead of my_vec.xz()
/* Swizzle accessor example workaround in Host Emulation code */
int16 ex = int16(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
// Desired, but illegal when using Host Emulation:
// int8 swizzle = ex.s048c159d()
// Potential workaround:
int8 swizzle = int8(ex.even().even(), ex.odd().even());