test_fp_double.s
409 Bytes
# Test SPARC old FPU instructions for double precision
.text
# fmovd %f0, %f1
# fnegd %f0, %f1
# fabsd %f0, %f1
faddd %f0, %f2, %f4
fsubd %f0, %f2, %f4
fmuld %f0, %f2, %f4
fdivd %f0, %f2, %f4
fsqrtd %f0, %f2
fsmuld %f0, %f1, %f2
fdtoi %f0, %f2
fitod %f0, %f2
fstod %f0, %f2
fdtos %f2, %f0
fcmpd %f0, %f2
fcmped %f0, %f2