Home | History | Annotate | Line # | Download | only in mcore
      1 # check that lsri works correctly
      2 # mach: mcore
      3 
      4 .include "testutils.inc"
      5 
      6 	start
      7 	# Construct -1
      8 	bmaski	r2, 32
      9 
     10 	# Clear a couple bits
     11 	bclri r2, 0
     12 	bclri r2, 1
     13 
     14 	# rotate by 16
     15 	rotli	r2, 16
     16 
     17 	# Construct 0xfffcffff
     18 	bmaski	r1, 32
     19 	bclri r1, 16
     20 	bclri r1, 17
     21 
     22 	# Compare them, they should be equal
     23 	cmpne	r2,r1
     24 	jbt	.L1
     25 	pass
     26 .L1:
     27 	fail
     28 
     29 
     30 
     31 
     32