Home | History | Annotate | Line # | Download | only in cr16
      1  1.1  christos # cr16 testcase for cmpw_i $imm16, 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 cmpw_i
      9  1.1  christos cmpw_i:
     10  1.1  christos 	mvi_h_condbit 0
     11  1.1  christos 	movw $0x1234, r4
     12  1.1  christos 	cmpw $0x1234, r4
     13  1.1  christos 	beq ok
     14  1.1  christos not_ok:
     15  1.1  christos 	fail
     16  1.1  christos ok:
     17  1.1  christos 	mvi_h_condbit 1
     18  1.1  christos 	cmpw $0x2222, r4
     19  1.1  christos 	beq not_ok
     20  1.1  christos 
     21  1.1  christos 	pass
     22