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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [ia64/] [dv-mutex.s] - Rev 38

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

//	
// Test mutex relation handling	
//	
.text
start:	
// user annotation	
	.pred.rel.mutex p1, p2, p3
(p1)	mov r4 = 2
(p2)	mov r4 = 5
(p3)	mov r4 = 7
	rfi
 
// non-predicated compares generate a mutex
	cmp.eq	p1, p2 = r1, r2;;
(p1)	mov r4 = 2
(p2)	mov r4 = 4
	rfi
 
// unconditional compares generate a mutex
(p3)	cmp.eq.unc p1, p2 = r1, r2;;
(p1)	mov r4 = 2
(p2)	mov r4 = 4
	rfi
 
// non-predicated compares don't remove mutex
	cmp.eq p1, p2 = r1, r2;;
(p1)	mov r4 = 2
(p2)	mov r4 = 4
	rfi
 
// predicated compares don't remove mutex
(p3)	cmp.eq p1, p2 = r1, r2;;
(p1)	mov r4 = 2
(p2)	mov r4 = 4
	rfi
L:	
 

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.