1*4b169a6bSchristos# m32r testcase for addx $dr,$sr 2*4b169a6bSchristos# mach(): m32r m32rx 3*4b169a6bSchristos# timeout(): 42 4*4b169a6bSchristos 5*4b169a6bSchristos# timeout is set to test it 6*4b169a6bSchristos 7*4b169a6bSchristos .include "testutils.inc" 8*4b169a6bSchristos 9*4b169a6bSchristos start 10*4b169a6bSchristos 11*4b169a6bSchristos .global addx 12*4b169a6bSchristosaddx: 13*4b169a6bSchristos mvi_h_condbit 1 14*4b169a6bSchristos mvi_h_gr r4, 1 15*4b169a6bSchristos mvi_h_gr r5, 2 16*4b169a6bSchristos addx r4, r5 17*4b169a6bSchristos bc not_ok 18*4b169a6bSchristos test_h_gr r4, 4 19*4b169a6bSchristos 20*4b169a6bSchristos mvi_h_gr r4, 0xfffffffe 21*4b169a6bSchristos addx r4, r5 22*4b169a6bSchristos bnc not_ok 23*4b169a6bSchristos test_h_gr r4, 0 24*4b169a6bSchristos 25*4b169a6bSchristos mvi_h_gr r4, -1 26*4b169a6bSchristos mvi_h_gr r5, -1 27*4b169a6bSchristos mvi_h_condbit 1 28*4b169a6bSchristos addx r4,r5 29*4b169a6bSchristos bnc not_ok 30*4b169a6bSchristos test_h_gr r4, -1 31*4b169a6bSchristos 32*4b169a6bSchristos mvi_h_gr r4,-1 33*4b169a6bSchristos mvi_h_gr r5,0x7fffffff 34*4b169a6bSchristos mvi_h_condbit 1 35*4b169a6bSchristos addx r5,r4 36*4b169a6bSchristos bnc not_ok 37*4b169a6bSchristos test_h_gr r5,0x7fffffff 38*4b169a6bSchristos 39*4b169a6bSchristos pass 40*4b169a6bSchristos 41*4b169a6bSchristosnot_ok: 42*4b169a6bSchristos fail 43