**rdcycle s10**
vle32.v v0, (a3)
vrgather.vi v1, v0, 0
vrgather.vi v2, v0, 1
vrgather.vi v3, v0, 2
vrgather.vi v4, v0, 3
**rdcycle s11**
sub t0, s11, s10
sd t0, (a6)
当把rdcycle指令去掉可正常运行;
编译器:Xuantie-900-gcc-linux-6.6.0-glibc-x86_64-V3.0.1
编译命令:
Xuantie-900-gcc-linux-6.6.0-glibc-x86_64-V3.0.1/bin/riscv64-unknown-linux-gnu-as -march=rv64imafdgcv_zicntr_zihpm_xtheadc_ vrgather.S -o vrgather.o
Xuantie-900-gcc-linux-6.6.0-glibc-x86_64-V3.0.1/bin/riscv64-unknown-linux-gnu-gcc vrgather.o test.c -o correct_test
k230 canmv v1.1板子上的结果:
这是什么原因呀?怎么解决呢, 感谢!