diff options
Diffstat (limited to 'gas/testsuite/gas/sparc/pr4587.s')
-rw-r--r-- | gas/testsuite/gas/sparc/pr4587.s | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gas/testsuite/gas/sparc/pr4587.s b/gas/testsuite/gas/sparc/pr4587.s new file mode 100644 index 000000000000..a058c1d07a38 --- /dev/null +++ b/gas/testsuite/gas/sparc/pr4587.s @@ -0,0 +1,22 @@ + .section .data + .align 4 +zero: .single 0.0 + + .section .text + .align 4 + .global main +main: + save %sp, -96, %sp + + ! Zero-out the first FP register + set zero, %l0 + ld [%l0], %f0 + + ! Compare it to itself + ! The third reg (%f0) will cause a segfault in as + ! fcmps only takes two regs... this should be illegal operand error + fcmps %f0, %f0, %f0 + + ! Return 0 + ret + restore %g0, %g0, %o0 |