【多选题】已知变量i、k对应寄存器$s0、$s2, 且i的初始值为0,save为字型数组,且首地址保存在寄存器$s3中,以下哪几个程序段可以实现以下C语言程序段功能( ) while (save[i]==k) i+=1;
A.
loop: sll $t1,$s0,2 add $t1,$t1,$s3 lw $t0,0($t1) bne $t0,$s2,exit addi $s0,$s0,1 j loop exit:
B.
loop: add $t1,$s0,$s3 lw $t0,0($t1) bne $t0,$s2,exit addi $s0,$s0,1 j loop exit:
C.
loop: add $t1,$s0,$s3 lw $t0,0($t1) bne $t0,$s2,exit addi $s0,$s0,4 j loop exit:
D.
loop: sll $t1,$s0,2 add $t1,$t1,$s3 lw $t0,0($t1) bne $t0,$s2,exit addi $s0,$s0,4 j loop exit: