1# mips r2 fpu tests 2# mach: mips32r2 mips64r2 3# as: -mabi=eabi 4# ld: -N -Ttext=0x80010000 5# output: *\\npass\\n 6 7 .include "testutils.inc" 8 9 setup 10 11 .set noreorder 12 13 .ent DIAG 14 15DIAG: 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 25 26 L1: 27 #TODO: More tests? 28 29 pass 30 31 .end DIAG 32