xref: /csrg-svn/sys/tahoe/align/Aor3.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  *	@(#)Aor3.c	7.1 (Berkeley) 12/06/90
11*45760Sbostic  */
1229624Ssam 
1345699Sbostic #include "align.h"
or3(infop)1429624Ssam or3 (infop)	process_info *infop;
1529624Ssam /*
1629624Ssam /*	Or , 3 operands.
1729624Ssam /*
1829624Ssam /****************************************/
1929624Ssam {
2029624Ssam 	register	long	Register_12;	/* Has to be first reg ! */
2129624Ssam 	register 	long	data0, data1, result;
2229624Ssam 
2329624Ssam 	data0 = operand(infop,0)->data;
2429624Ssam 	data1 = operand(infop,1)->data;
2529624Ssam 	Register_12=psl;
2629624Ssam 	Set_psl(r12);	/* restore the user psl */
2729624Ssam 	result = data0 | data1;		/* 32 bits of true result */
2829624Ssam 	asm ("	movpsl	r12");
2929624Ssam 	New_cc (Register_12);
3029624Ssam 	write_back (infop,result, operand(infop,2) );
3129624Ssam }
32