summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/sparc/pr4587.s
blob: a058c1d07a3874d4b8803d0f3d4464e92d3dbb9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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