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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [arc/] [warn.s] - Rev 824

Go to most recent revision | Compare with Previous | Blame | View Log

; Test ARC specific assembler warnings
;
; { dg-do assemble { target arc-*-* } }
 
	b.d foo
	mov r0,256	; { dg-warning "8 byte instruction in delay slot" "8 byte instruction in delay slot" }
 
	j.d foo		; { dg-warning "8 byte jump instruction with delay slot" "8 byte jump instruction with delay slot" }
	mov r0,r1
 
foo:
.extCoreRegister roscreg,45,r,can_shortcut
.extCoreRegister woscreg,46,w,can_shortcut
        .section .text
         add    r0,woscreg,r1   ; { dg-warning "Error: attempt to read writeonly register" }
         add    roscreg,r1,r2   ; { dg-warning "Error: attempt to set readonly register" }
 

Go to most recent revision | 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.