plctlab / plct-spike

Spike, a RISC-V ISA Simulator
Other
9 stars 4 forks source link

@mengls666@nihui #10

Open EASPORTS14 opened 1 year ago

EASPORTS14 commented 1 year ago
    @nihui 
#include <stdio.h>

int main()
{
        fprintf(stderr, "hello\n");
            asm volatile("vsetvli t0,a2,e8,m8,ta,ma,d1"); 
            asm volatile("vle8.v v0, (a1)");
            fprintf(stderr, "moew\n");

            return 0;
}

这个第一条指令在gnu编译的时候就通不过,咋整?大佬们