Now this is interesting. Add this at the beginning of the program : li $a0, 0xf80 ctc1 $a0, $28 // FENR -> enable all traps
Then all instructions that may send a trap will result in a SIGFPE, as expected, *except* for madd.d 0, 0, qnan which still result in a SIGILL. -- You received this message because you are subscribed to the Google Groups "loongson-dev" group. To post to this group, send email to loongson-dev@googlegroups.com. To unsubscribe from this group, send email to loongson-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/loongson-dev?hl=en.