Untitled
unknown
plain_text
7 months ago
375 B
1
Indexable
Never
"vsetvli t2, a0, e16 \n\t" // t2 = 8 "vle16.v v0,(%[p_x])\n\t" "li t1,8\n\t" // t1 = 8 "li %[flag],0\n\t" "loop:\n\t" "lh t3,14(%[p_x])\n\t" "vadd.vx v3,v0,%[target]\n\t" "vmseq.vx v1,v3,%[target]\n\t" "vfirst.m t2,v1\n\t" "bge t1,x0,flag_here\n\t" "addi t1,t1,-1\n\t" "bnez t1,loop\n\t" // exits the program "j end\n\t" "flag_here:\n\t" "li %[flag],1\n\t" "end:\n\t"