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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [cris/] [rd-regprefix-1.s] - Rev 816

Compare with Previous | Blame | View Log

; Test (no_)register_prefixes a bit.  Register prefix may or may not be
; mandated when we get here.
 
start:
; Ambiguous.  Depends on default.
	move.d r5,$r5
	move r4,$ibr
	move.d $r4,[r10+1]
	jsr r10
	move.d [r0],$r7
 
; Non-ambiguous, with a prefix.
 
	push $srp
	move $irp,$r4
	move.d $r4,[$r0+$r10.b]
	move $ccr,[$pc+r16]
 
	.syntax no_register_prefix
 
; Some invalid with mandated register prefix; check that they pass.
 
	push srp
	move.d r4,[r0+r10.d]
	move $ccr,[$pc+r16]
 
; Ambiguity interpreted one way...
 
	move.d r5,$r5
	move r4,$ibr
	move.d $r4,[r10+1]
	jsr r10
 
	.syntax register_prefix
 
; Ambiguity interpreted the other way.
 
	move.d r5,$r5
	move r4,$ibr
	move.d $r4,[r10+1]
	jsr r10
 

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.