1 # frv testcase for msrlhi $FRi,$s6,$FRk
4 .include "testutils.inc"
11 msrlhi fr8,0x20,fr8 ; Shift by 0
12 test_fr_limmed 2,2,fr8
15 msrlhi fr8,0,fr8 ; Shift by 0
16 test_fr_limmed 2,2,fr8
19 msrlhi fr8,1,fr8 ; Shift by 1
20 test_fr_limmed 1,1,fr8
22 set_fr_iimmed 0xffff,0x8000,fr8
23 msrlhi fr8,31,fr8 ; Shift by 15
24 test_fr_limmed 0x0001,0x0001,fr8
26 set_fr_iimmed 0xdead,0xbeef,fr8
28 test_fr_iimmed 0x00010001,fr8