Home | History | Annotate | Line # | Download | only in m32r
      1 # m32r testcase for ld $dr,@$sr+
      2 # mach(): m32r m32rx
      3 
      4 	.include "testutils.inc"
      5 
      6 	start
      7 
      8 	.global ld_plus
      9 ld_plus:
     10 	mvaddr_h_gr r4, data_loc
     11 	mvi_h_gr    r5, 0
     12 
     13 	ld r5, @r4+
     14 
     15 	test_h_gr r5, 0x12345678
     16 
     17 	mvaddr_h_gr r5, data_loc2
     18 	bne r4, r5, not_ok
     19 
     20 	pass
     21 not_ok:
     22 	fail
     23 
     24 data_loc:
     25 	.word 0x12345678
     26 data_loc2:
     27 	.word 0x11223344
     28 
     29