Home | History | Annotate | Download | only in mips
      1 # Source code used to test the LUI instruction with some expressions.
      2 
      3 	.text
      4 foo:
      5 0:
      6 	lui	$2, 0
      7 	lui	$2, 65535
      8 1:
      9 	lui	$2, 1b - 0b
     10 bar:
     11 	lui	$2, 2f - 1b
     12 2:
     13 	lui	$2, bar - foo
     14 	lui	$2, baz - bar
     15 baz:
     16 	lui	$2, bar
     17 	lui	$2, ext
     18 3:
     19 	lui	$2, 3b
     20 	lui	$2, 4f
     21 4:
     22 	lui	$2, min + 1
     23 	lui	$2, max - 1
     24 	.eqv	min, -1
     25 	.eqv	max, 65536
     26 
     27 # Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
     28 	.align	4, 0
     29 	.space	16
     30