1 .section .data 2 .align 4 3zero: .single 0.0 4 5 .section .text 6 .align 4 7 .global main 8main: 9 save %sp, -96, %sp 10 11 ! Zero-out the first FP register 12 set zero, %l0 13 ld [%l0], %f0 14 15 ! Compare it to itself 16 ! The third reg (%f0) will cause a segfault in as 17 ! fcmps only takes two regs... this should be illegal operand error 18 fcmps %f0, %f0, %f0 19 20 ! Return 0 21 ret 22 restore %g0, %g0, %o0 23