OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [sparc/] [pr4587.s] - Rev 205

Compare with Previous | Blame | View Log

	.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
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.