Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / nfdsqrts.cgs
blob1a906bb72799ec485e86a3a0757900a639851138
1 # frv testcase for nfdsqrts $FRj,$FRk
2 # mach: frv
4         .include "testutils.inc"
6         float_constants
7         start
8         load_float_constants
10         .global nfdsqrts
11 nfdsqrts:
12         set_fr_iimmed   0x4049,0x0fdb,fr45      ; 3.141592654
13         nfdsqrts                fr44,fr2                ; 9.0
14         test_fr_fr      fr2,fr36                ; 3.0
15         test_fr_iimmed  0x3fe2dfc5,fr3          ; 1.7724539
16         test_spr_immed  0,fner1
17         test_spr_immed  0,fner0
19         ; TODO test cases to set ne flags
21         pass