Home | History | Annotate | Line # | Download | only in cr16
      1 # cr16 testcase for loadm count
      2 # mach(): cr16
      3 
      4 	.include "testutils.inc"
      5 
      6 	start
      7 
      8 	.global loadm
      9 loadm:
     10 	movw $0x1000, r0
     11 	movw $0x12, r2
     12 	storw r2, 0x1000
     13 	movw $0x34, r3
     14 	storw r3, 0x1002
     15 	movw $0x56, r4
     16 	storw r4, 0x1004
     17 	movw $0x78, r5
     18 	storw r5, 0x1006
     19 
     20 	loadm $4
     21 
     22 	cmpw  $0x12,r2
     23 	beq ok1
     24 not_ok:
     25 	fail
     26 ok1:
     27 	cmpw $0x34,r3
     28 	beq ok2
     29 	br not_ok
     30 ok2:
     31 	cmpw $0x56,r4
     32 	beq ok3
     33 	br not_ok
     34 ok3:
     35 	cmpw $0x78,r5
     36 	beq ok4
     37 	br not_ok
     38 ok4:
     39 	pass
     40 	pass
     41 
     42