xref: /csrg-svn/sys/tahoe/align/Acmp.c (revision 45760)
1*45760Sbostic /*-
2*45760Sbostic  * Copyright (c) 1986 The Regents of the University of California.
3*45760Sbostic  * All rights reserved.
4*45760Sbostic  *
5*45760Sbostic  * This code is derived from software contributed to Berkeley by
6*45760Sbostic  * Computer Consoles Inc.
7*45760Sbostic  *
8*45760Sbostic  * %sccs.include.redist.c%
9*45760Sbostic  *
10*45760Sbostic  *	@(#)Acmp.c	7.1 (Berkeley) 12/06/90
11*45760Sbostic  */
1229595Ssam 
1345699Sbostic #include "align.h"
cmp(infop)1429595Ssam cmp(infop)	process_info *infop;
1529595Ssam /*
1629595Ssam /*	Arithmetic comparison
1729595Ssam /*
1829595Ssam /**************************************************/
1929595Ssam {
2029595Ssam 	register long	Register_12;	/* Has to be first reg ! */
2129595Ssam 	register long	Register_11;
2229595Ssam 	register long	Register_10;
2329595Ssam 
2429595Ssam 	Register_12 = operand(infop,0)->data;
2529595Ssam 	Register_11 = operand(infop,1)->data;
2629595Ssam 	Register_10=psl;
2729595Ssam 	Set_psl(r10);	/* restore the user psl */
2829595Ssam 	asm ("	cmpl	r12,r11");
2929595Ssam 	asm ("	movpsl	r12");
3029595Ssam 	New_cc (Register_12);
3129595Ssam }
32