Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / mips / r2-fpu.s
blob1001f933c97398cfaea5b7ebf942dee7d9e664e5
1 # mips r2 fpu tests
2 # mach: mips32r2 mips64r2
3 # as: -mabi=eabi
4 # ld: -N -Ttext=0x80010000
5 # output: *\\npass\\n
7 .include "testutils.inc"
9 setup
11 .set noreorder
13 .ent DIAG
15 DIAG:
16 writemsg "[1] Test qNaN format is 754-1985"
17 li $6, 0x7fbfffff
18 mtc1 $0, $f2
19 mtc1 $0, $f4
20 div.s $f6, $f2, $f4
21 mfc1 $8, $f6
22 beq $8, $6, L1
23 nop
24 fail
26 L1:
27 #TODO: More tests?
29 pass
31 .end DIAG