1 # frv testcase for mrotri $FRinti,$s6,$FRintk
4 .include "testutils.inc"
10 set_fr_iimmed 0x8000,0x0000,fr8
11 mrotri fr8,0x20,fr8 ; Shift by 0
12 test_fr_iimmed 0x80000000,fr8
14 set_fr_iimmed 0x8000,0x0000,fr8
15 mrotri fr8,0,fr8 ; Shift by 0
16 test_fr_iimmed 0x80000000,fr8
18 set_fr_iimmed 0x8000,0x0000,fr8
19 mrotri fr8,1,fr8 ; Shift by 1
20 test_fr_iimmed 0x40000000,fr8
22 set_fr_iimmed 0x8000,0x0000,fr8
23 mrotri fr8,31,fr8 ; Shift by 31
26 set_fr_iimmed 0x4000,0x0000,fr8
27 mrotri fr8,31,fr8 ; max shift
28 test_fr_iimmed 0x80000000,fr8
30 set_fr_iimmed 0xdead,0xbeef,fr8
31 mrotri fr8,16,fr8 ; max shift
32 test_fr_iimmed 0xbeefdead,fr8