Home | History | Annotate | Line # | Download | only in cr16
      1  1.1  christos # cr16 testcase for mulsb $imm4/imm16/reg, reg
      2  1.1  christos # mach(): cr16 
      3  1.1  christos 
      4  1.1  christos 	.include "testutils.inc"
      5  1.1  christos 
      6  1.1  christos 	start
      7  1.1  christos 
      8  1.1  christos 	.global mulsb
      9  1.1  christos mulsb:
     10  1.1  christos 	movw $-3,r4
     11  1.1  christos 	movw $7,r5
     12  1.1  christos 
     13  1.1  christos 	mulsb r4, r5
     14  1.1  christos 	cmpw $-21, r5
     15  1.1  christos 	beq ok1
     16  1.1  christos not_ok:
     17  1.1  christos 	fail
     18  1.1  christos 
     19  1.1  christos ok1:
     20  1.1  christos 	movw $3,r4
     21  1.1  christos 	mulw $7, r4
     22  1.1  christos 	test_h_gr r4, 21
     23  1.1  christos 
     24  1.1  christos 	pass
     25