1 # arm testcase for bic 2 # mach: all 3 4 # ??? Unfinished, more tests needed. 5 6 .include "testutils.inc" 7 8 start 9 10 # bic$cond${set-cc?} $rd,$rn,$imm12 11 12 .global bic_imm 13 bic_imm: 14 mvi_h_gr r4,1 15 mvi_h_cnvz 0,0,0,0 16 bic r5,r4,#0 17 test_h_cnvz 0,0,0,0 18 test_h_gr r5,1 19 20 # bic$cond${set-cc?} $rd,$rn,$rm,${operbic2-shifttype} ${operbic2-shiftimm} 21 22 .global bic_reg_imm_shift 23 bic_reg_imm_shift: 24 mvi_h_gr r4,7 25 mvi_h_gr r5,1 26 mvi_h_cnvz 0,0,0,0 27 bic r6,r4,r5,lsl #1 28 test_h_cnvz 0,0,0,0 29 test_h_gr r6,5 30 31 # bic$cond${set-cc?} $rd,$rn,$rm,${operbic2-shifttype} ${operbic2-shiftreg} 32 33 .global bic_reg_reg_shift 34 bic_reg_reg_shift: 35 mvi_h_gr r4,7 36 mvi_h_gr r5,1 37 mvi_h_gr r6,1 38 mvi_h_cnvz 0,0,0,0 39 bic r7,r4,r5,lsl r6 40 test_h_cnvz 0,0,0,0 41 test_h_gr r7,5 42 43 pass 44