1*4b169a6bSchristos# frv testcase for nldshi @($GRi,$d12),$GRk 2*4b169a6bSchristos# mach: frv 3*4b169a6bSchristos 4*4b169a6bSchristos .include "testutils.inc" 5*4b169a6bSchristos 6*4b169a6bSchristos start 7*4b169a6bSchristos 8*4b169a6bSchristos .global nldshi 9*4b169a6bSchristosnldshi: 10*4b169a6bSchristos set_mem_limmed 0xdead,0xbeef,sp 11*4b169a6bSchristos set_gr_limmed 0xbeef,0xdead,gr8 12*4b169a6bSchristos 13*4b169a6bSchristos set_gr_gr sp,gr20 14*4b169a6bSchristos nldshi @(sp,0),gr8 15*4b169a6bSchristos test_gr_limmed 0xffff,0xdead,gr8 16*4b169a6bSchristos test_spr_limmed 0x8860,0x0001,nesr0 17*4b169a6bSchristos test_spr_gr neear0,gr20 18*4b169a6bSchristos test_spr_limmed 0x0000,0x0000,gner1 19*4b169a6bSchristos test_spr_limmed 0x0000,0x0000,gner0 20*4b169a6bSchristos 21*4b169a6bSchristos inc_gr_immed 2,gr20 22*4b169a6bSchristos nldshi @(sp,2),gr8 23*4b169a6bSchristos test_gr_limmed 0xffff,0xbeef,gr8 24*4b169a6bSchristos test_spr_limmed 0x8860,0x0401,nesr1 25*4b169a6bSchristos test_spr_gr neear1,gr20 26*4b169a6bSchristos test_spr_limmed 0x0000,0x0000,gner1 27*4b169a6bSchristos test_spr_limmed 0x0000,0x0000,gner0 28*4b169a6bSchristos 29*4b169a6bSchristos set_mem_limmed 0xffff,0x0000,sp 30*4b169a6bSchristos inc_gr_immed 4,sp 31*4b169a6bSchristos nldshi @(sp,-2),gr8 32*4b169a6bSchristos test_gr_immed 0,gr8 33*4b169a6bSchristos test_spr_limmed 0x8860,0x0801,nesr2 34*4b169a6bSchristos test_spr_gr neear2,gr20 35*4b169a6bSchristos test_spr_limmed 0x0000,0x0000,gner1 36*4b169a6bSchristos test_spr_limmed 0x0000,0x0000,gner0 37*4b169a6bSchristos 38*4b169a6bSchristos pass 39