1 # sh testcase for fipr $fvm, $fvn
3 # as(sh): -defsym sim_cpu=0
5 .include "testutils.inc"
32 # Result will be in fr11.
37 assert_fpreg_x
0xa5a5a5a5, fr4
38 assert_fpreg_x
0xa5a5a5a5, fr5
39 assert_fpreg_x
0xa5a5a5a5, fr6
40 assert_fpreg_x
0xa5a5a5a5, fr7
43 assert_fpreg_i
1, fr10
44 assert_fpreg_i
5, fr11
45 assert_fpreg_x
0xa5a5a5a5, fr12
46 assert_fpreg_x
0xa5a5a5a5, fr13
47 assert_fpreg_x
0xa5a5a5a5, fr14
48 assert_fpreg_x
0xa5a5a5a5, fr15
52 # Test positive infinity
58 # fr11 should be plus infinity
59 assert_fpreg_x
0x7f800000, fr11
61 # Test negitive infinity
67 # fr11 should be plus infinity
68 assert_fpreg_x
0xff800000, fr11
76 # fr11 should be plus qnan (or greater)
90 # fr11 should be plus snan (or greater)
98 # Handling of nan and inf not implemented yet.
100 # Test negantive qnan
106 # fr11 should be minus qnan (or less)
120 # fr11 should be minus snan (or less)
132 qnanp
: .long 0x7f800001
133 qnanm
: .long 0xff800001
134 snanp
: .long 0x7fc00000
135 snanm
: .long 0xffc00000
136 infp
: .long 0x7f800000
137 infm
: .long 0xff800000