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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [bfin/] [logical2.s] - Rev 304

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

 
.EXTERN MY_LABEL2;
.section .text;
 
//
//7 LOGICAL OPERATIONS
//
 
//Dreg = Dreg & Dreg ; /* (a) */
 
R7 = R7 & R7;
R7 = R7 & R0;
r7 = R7 & R1;
 
R1 = R7 & R7;
R2 = R7 & R0;
r3 = R7 & R1;
 
//Dreg = ~ Dreg ; /* (a)*/
 
R7 = ~R7;
R7 = ~R0;
R0 = ~R7;
R0 = ~R2;
 
//Dreg = Dreg | Dreg ; /* (a) */
 
R7 = R7 | R7;
R7 = R7 | R1;
R7 = R7 | R0;
 
R1 = R7 | R7;
R2 = R7 | R1;
R3 = R7 | R0;
 
//Dreg = Dreg ^ Dreg ; /* (a) */
 
R7 = R7 ^ R7;
R7 = R7 ^ R1;
R7 = R7 ^ R0;
 
R1 = R7 ^ R7;
R2 = R7 ^ R1;
R3 = R7 ^ R0;
 
//Dreg_lo = CC = BXORSHIFT ( A0, Dreg ) ; /* (b) */
R0.L = CC = BXORSHIFT(A0, R0);
R0.L = CC = BXORSHIFT(A0, R1);
 
R3.L = CC = BXORSHIFT(A0, R0);
R3.L = CC = BXORSHIFT(A0, R1);
 
//Dreg_lo = CC = BXOR ( A0, Dreg ) ; /* (b) */
R0.L = CC = BXOR(A0, R0);
R0.L = CC = BXOR(A0, R1);
 
R3.L = CC = BXOR(A0, R0);
R3.L = CC = BXOR(A0, R1);
 
//Dreg_lo = CC = BXOR ( A0, A1, CC ) ; /* (b) */
R0.L = CC = BXOR(A0, A1, CC);
R0.L = CC = BXOR(A0, A1, CC);
 
R3.L = CC = BXOR(A0, A1, CC);
R3.L = CC = BXOR(A0, A1, CC);
 
A0 = BXORSHIFT ( A0, A1, CC ) ; /* (b) */
 
 
 

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.